fixed: last commit had debug code in it

This commit is contained in:
Stefan Esser 2002-03-14 11:26:10 +00:00
parent 229e7769f4
commit 77b5d80081

View File

@ -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",