CVS update: php31/ext/zlib
| From: | sr | Date: | Sat, 15 Aug 1998 20:45:47 +0000 |
| Subject: | CVS update: php31/ext/zlib | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-266@lists.php.net to get a copy of this message | ||
Date: Saturday August 15, 1998 @ 16:45
Author: sr
Update of /repository/php31/ext/zlib
In directory asf:/tmp/cvs-serv13999/ext/zlib
Modified Files:
zlib.c
Log Message:
Added realpath support to zlib module.
Index: php31/ext/zlib/zlib.c
diff -c php31/ext/zlib/zlib.c:2.0 php31/ext/zlib/zlib.c:2.1
*** php31/ext/zlib/zlib.c:2.0 Fri Jul 3 09:16:18 1998
--- php31/ext/zlib/zlib.c Sat Aug 15 16:45:46 1998
***************
*** 22,28 ****
| Stefan Röhrich <sr@linux.de> |
+----------------------------------------------------------------------+
*/
! /* $Id: zlib.c,v 2.0 1998/07/03 13:16:18 rasmus Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
--- 22,28 ----
| Stefan Röhrich <sr@linux.de> |
+----------------------------------------------------------------------+
*/
! /* $Id: zlib.c,v 2.1 1998/08/15 20:45:46 sr Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
***************
*** 204,209 ****
--- 204,210 ----
php3_error(E_WARNING,"SAFE MODE Restriction in effect. Invalid owner of file to be
read.");
return NULL;
}
+ if (_php3_check_fopen_basedir(path)) return NULL;
return gzopen(path, mode);
}
}
***************
*** 229,234 ****
--- 230,236 ----
php3_error(E_WARNING,"SAFE MODE Restriction in effect. Invalid owner.");
return(NULL);
}
+ if (_php3_check_fopen_basedir(filename)) return NULL;
zp = gzopen(filename, mode);
if (zp && opened_path) {
*opened_path = expand_filepath(filename);
***************
*** 248,259 ****
--- 250,263 ----
php3_error(E_WARNING,"SAFE MODE Restriction in effect. Invalid owner.");
return(NULL);
}
+ if (_php3_check_fopen_basedir(trypath)) return NULL;
zp = gzopen(trypath, mode);
if (zp && opened_path) {
*opened_path = expand_filepath(trypath);
}
return zp;
} else {
+ if (_php3_check_fopen_basedir(filename)) return NULL;
return gzopen(filename, mode);
}
}
***************
*** 263,268 ****
--- 267,273 ----
php3_error(E_WARNING,"SAFE MODE Restriction in effect. Invalid owner.");
return(NULL);
}
+ if (_php3_check_fopen_basedir(filename)) return NULL;
zp = gzopen(filename, mode);
if (zp && opened_path) {
*opened_path = strdup(filename);
***************
*** 293,298 ****
--- 298,308 ----
}
}
if ((zp = gzopen(trypath, mode)) != NULL) {
+ if (_php3_check_fopen_basedir(trypath)) {
+ gzclose(zp);
+ efree(pathbuf);
+ return NULL;
+ }
if (opened_path) {
*opened_path = expand_filepath(trypath);
}
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net