]> granicus.if.org Git - php/commitdiff
MFZE1
authorAndi Gutmans <andi@php.net>
Sat, 17 Aug 2002 20:20:36 +0000 (20:20 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 17 Aug 2002 20:20:36 +0000 (20:20 +0000)
Zend/zend_execute.c

index 5bdbaa230e3ba0c7ed15825d6e390d0b74a93f9a..15ee053f8529760ff3e95ca05d961f09bf1ff4fb 100644 (file)
@@ -2674,7 +2674,7 @@ send_by_ref:
 
                                                                if (file_handle.handle.fp) {
                                                                        if( !opened_path ) {
-                                                                               opened_path = file_handle.opened_path = estrdup(inc_filename->value.str.val);
+                                                                               opened_path = file_handle.opened_path = estrndup(inc_filename->value.str.val, inc_filename->value.str.len);
                                                                        }       
                                                                
                                                                        if (zend_hash_add(&EG(included_files), opened_path, strlen(opened_path)+1, (void *)&dummy, sizeof(int), NULL)==SUCCESS) {