cvs: php4 /main main.c
| From: | Jani Taskinen | Date: | Mon, 01 Jul 2002 09:00:02 +0000 |
| Subject: | cvs: php4 /main main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12647@lists.php.net to get a copy of this message | ||
sniper Mon Jul 1 05:00:02 2002 EDT
Modified files:
/php4/main main.c
Log:
Fix win32 build.
Index: php4/main/main.c
diff -u php4/main/main.c:1.462 php4/main/main.c:1.463
--- php4/main/main.c:1.462 Sun Jun 30 09:38:16 2002
+++ php4/main/main.c Mon Jul 1 05:00:00 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.462 2002/06/30 13:38:16 sander Exp $ */
+/* $Id: main.c,v 1.463 2002/07/01 09:00:00 sniper Exp $ */
/* {{{ includes
*/
@@ -1357,13 +1357,11 @@
}
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]) {