iliaa           Sat Sep 28 16:13:28 2002 EDT

  Modified files:              
    /php4/main  main.c 
  Log:
  Fixed bug #13936
  
  
Index: php4/main/main.c
diff -u php4/main/main.c:1.491 php4/main/main.c:1.492
--- php4/main/main.c:1.491      Wed Sep 25 12:11:31 2002
+++ php4/main/main.c    Sat Sep 28 16:13:28 2002
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: main.c,v 1.491 2002/09/25 16:11:31 sas Exp $ */
+/* $Id: main.c,v 1.492 2002/09/28 20:13:28 iliaa Exp $ */
 
 /* {{{ includes
  */
@@ -1507,9 +1507,14 @@
 
                if(primary_file->filename) {                    
                        char realfile[MAXPATHLEN];
+                       int realfile_len;
                        int dummy = 1;
                        if(VCWD_REALPATH(primary_file->filename, realfile)) {
-                               zend_hash_add(&EG(included_files), realfile, 
strlen(realfile)+1, (void *)&dummy, sizeof(int), NULL);
+                               realfile_len =  strlen(realfile);
+                               zend_hash_add(&EG(included_files), realfile, 
+realfile_len+1, (void *)&dummy, sizeof(int), NULL);
+                               primary_file->opened_path = emalloc(realfile_len+1);
+                               memcpy(primary_file->opened_path, realfile, 
+realfile_len);
+                               primary_file->opened_path[realfile_len] = '\0';
                        }
                }
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to