mirror of
https://github.com/php/php-src.git
synced 2025-01-18 09:43:36 +08:00
Added a handler for php -r '' for SAFE_MODE
This commit is contained in:
parent
2e4b6ef181
commit
f11c3a4095
@ -35,6 +35,7 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef PHP_WIN32
|
||||
#include <process.h>
|
||||
#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();
|
||||
}
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user