diff options
author | Sara Golemon <pollita@php.net> | 2003-01-09 21:57:45 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2003-01-09 21:57:45 +0000 |
commit | 4d789b593fafde0968b3a7cc282661018caf7594 (patch) | |
tree | 15b0b1d8d2324ab8a5eaa7e0d1d522d9e00298a7 /main/safe_mode.h | |
parent | 82c6d54517cff2f96140f08c8c8bbab77d3bf219 (diff) | |
download | php-git-4d789b593fafde0968b3a7cc282661018caf7594.tar.gz |
Bug #21531 file_exists() and other filestat functions throw errors when in safe mode and file/directory does not exist.
Extended php_checkuid function to add "flags" field via rename to php_checkuid_ex with alias for BC in functions that do want safe mode errors thrown.
Diffstat (limited to 'main/safe_mode.h')
-rw-r--r-- | main/safe_mode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/safe_mode.h b/main/safe_mode.h index 307c557078..d6330accd5 100644 --- a/main/safe_mode.h +++ b/main/safe_mode.h @@ -9,7 +9,11 @@ #define CHECKUID_CHECK_MODE_PARAM 4 #define CHECKUID_ALLOW_ONLY_FILE 5 +/* flags for php_checkuid_ex() */ +#define CHECKUID_NO_ERRORS 0x01 + extern PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode); +extern PHPAPI int php_checkuid_ex(const char *filename, char *fopen_mode, int mode, int flags); extern PHPAPI char *php_get_current_user(void); #endif |