mirror of
https://github.com/php/php-src.git
synced 2025-01-22 19:54:13 +08:00
fixed: last commit had debug code in it
This commit is contained in:
parent
229e7769f4
commit
77b5d80081
@ -227,16 +227,14 @@ PHP_FUNCTION(filepro)
|
||||
FP_GLOBAL(fp_keysize) = -1;
|
||||
|
||||
snprintf(workbuf, sizeof(workbuf), "%s/map", Z_STRVAL_P(dir));
|
||||
fp=fopen("/tmp/filepro","a+");if(fp){fprintf(fp,"workbuf:%s\n",workbuf);fclose(fp);}
|
||||
|
||||
if (PG(safe_mode) && (!php_checkuid(workbuf, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
fp=fopen("/tmp/filepro","a+");if(fp){fprintf(fp,"2workbuf:%s\n",workbuf);fclose(fp);}
|
||||
|
||||
if (php_check_open_basedir(workbuf TSRMLS_CC)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
fp=fopen("/tmp/filepro","a+");if(fp){fprintf(fp,"3workbuf:%s\n",workbuf);fclose(fp);}
|
||||
|
||||
if (!(fp = VCWD_FOPEN(workbuf, "r"))) {
|
||||
php_error(E_WARNING, "filePro: cannot open map: [%d] %s",
|
||||
|
Loading…
Reference in New Issue
Block a user