From: Ilia Alshanetsky Date: Fri, 16 Aug 2002 12:47:56 +0000 (+0000) Subject: Added a handler for php -r '' for SAFE_MODE X-Git-Tag: php-4.3.0dev_zend2_alpha3~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f11c3a409558f6159d88b5c876976064f51fc469;p=php Added a handler for php -r '' for SAFE_MODE --- diff --git a/ext/standard/pageinfo.c b/ext/standard/pageinfo.c index e1ea9c54f2..13d500bef7 100644 --- a/ext/standard/pageinfo.c +++ b/ext/standard/pageinfo.c @@ -35,6 +35,7 @@ #include #endif #include +#include #ifdef PHP_WIN32 #include #endif @@ -56,6 +57,10 @@ PHPAPI void php_statpage(TSRMLS_D) BG(page_inode) = pstat->st_ino; BG(page_mtime) = pstat->st_mtime; } + else { /* handler for situations where there is no source file, ex. php -r */ + BG(page_uid) = getuid(); + BG(page_gid) = getgid(); + } } } /* }}} */