// this software the author can not be responsible.
// The use of this software is at the risk of the user.
//
-// --------------------------------------------------------------------------------
-// $Id: pclzip.php 19990 2012-11-03 12:57:57Z eric@smellup.net $
-// --------------------------------------------------------------------------------
+
+ // personnalisations spip
+ if (!defined('PCLZIP_TEMPORARY_DIR')) {
+ define('PCLZIP_TEMPORARY_DIR', _DIR_TMP);
+ }
+ if (!function_exists('gzopen') && function_exists('gzopen64')) {
+ function gzopen($filename, $mode, $use_include_path = 0) {
+ return gzopen64($filename, $mode, $use_include_path);
+ }
+ }
+ // fin personnalisations spip
// ----- Constants
if (!defined('PCLZIP_READ_BLOCK_SIZE')) {
// define( 'PCLZIP_TEMPORARY_DIR', '/temp/' );
// define( 'PCLZIP_TEMPORARY_DIR', 'C:/Temp/' );
if (!defined('PCLZIP_TEMPORARY_DIR')) {
- define( 'PCLZIP_TEMPORARY_DIR', _DIR_TMP );
+ define( 'PCLZIP_TEMPORARY_DIR', '' );
}
// ----- Optional threshold ratio for use of temporary files