diff options
author | Marcus Boerger <helly@php.net> | 2002-08-25 18:45:02 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-08-25 18:45:02 +0000 |
commit | a1f7bb12f1cd3ba6bb50e1b749537095813d38b2 (patch) | |
tree | 2bb94edcc989a6658b96b691dc34615b6cc7aa89 /main/safe_mode.c | |
parent | 4bbe4c703cd7b6070d7eddf5197b05b8ee0ab0f8 (diff) | |
download | php-git-a1f7bb12f1cd3ba6bb50e1b749537095813d38b2.tar.gz |
use php_error_docref()
Diffstat (limited to 'main/safe_mode.c')
-rw-r--r-- | main/safe_mode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/safe_mode.c b/main/safe_mode.c index b56976ab44..7693da5d69 100644 --- a/main/safe_mode.c +++ b/main/safe_mode.c @@ -86,10 +86,10 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode) ret = VCWD_STAT(path, &sb); if (ret < 0) { if (mode == CHECKUID_DISALLOW_FILE_NOT_EXISTS) { - php_error(E_WARNING, "Unable to access %s", filename); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename); return 0; } else if (mode == CHECKUID_ALLOW_FILE_NOT_EXISTS) { - php_error(E_WARNING, "Unable to access %s", filename); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename); return 1; } nofile = 1; @@ -130,7 +130,7 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode) /* check directory */ ret = VCWD_STAT(path, &sb); if (ret < 0) { - php_error(E_WARNING, "Unable to access %s", filename); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename); return 0; } duid = sb.st_uid; @@ -165,9 +165,9 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode) } if (PG(safe_mode_gid)) { - php_error(E_WARNING, "SAFE MODE Restriction in effect. The script whose uid/gid is %ld/%ld is not allowed to access %s owned by uid/gid %ld/%ld", php_getuid(), php_getgid(), filename, uid, gid); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SAFE MODE Restriction in effect. The script whose uid/gid is %ld/%ld is not allowed to access %s owned by uid/gid %ld/%ld", php_getuid(), php_getgid(), filename, uid, gid); } else { - php_error(E_WARNING, "SAFE MODE Restriction in effect. The script whose uid is %ld is not allowed to access %s owned by uid %ld", php_getuid(), filename, uid); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "SAFE MODE Restriction in effect. The script whose uid is %ld is not allowed to access %s owned by uid %ld", php_getuid(), filename, uid); } return 0; } |