mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Fix win32 build.
This commit is contained in:
parent
4a52b98835
commit
4b321b0430
@ -1357,13 +1357,11 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)
|
||||
}
|
||||
|
||||
if(primary_file->filename) {
|
||||
char *realfile;
|
||||
char realfile[MAXPATHLEN];
|
||||
int dummy = 1;
|
||||
realfile = emalloc(PATH_MAX);
|
||||
if(realpath(primary_file->filename, realfile)) {
|
||||
if(VCWD_REALPATH(primary_file->filename, realfile)) {
|
||||
zend_hash_add(&EG(included_files), realfile, strlen(realfile)+1, (void *)&dummy, sizeof(int), NULL);
|
||||
}
|
||||
efree(realfile);
|
||||
}
|
||||
|
||||
if (PG(auto_prepend_file) && PG(auto_prepend_file)[0]) {
|
||||
|
Loading…
Reference in New Issue
Block a user