Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_language_scanner.l

From: Date: Sat, 02 Nov 2002 13:51:48 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_language_scanner.l
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-544@lists.php.net to get a copy of this message
Are you sure you don't need to set file_handle.free_filename? I'm not sure as I don't have time to check out the code right now but it does matter where filename->value.str.val comes from. Andi At 05:43 AM 11/2/2002 +0000, Ilia Alshanetsky wrote:
iliaa           Sat Nov  2 00:43:13 2002 EDT
Modified files:
    /Zend       zend_language_scanner.l
Log: Fixed bug #20214. The remotly included files now are being stored in the included files hash table. Index: Zend/zend_language_scanner.l diff -u Zend/zend_language_scanner.l:1.49 Zend/zend_language_scanner.l:1.50 --- Zend/zend_language_scanner.l:1.49 Wed Aug 14 20:22:38 2002
+++ Zend/zend_language_scanner.l        Sat Nov  2 00:43:12 2002
@@ -397,8 +397,13 @@
        retval = zend_compile_file(&file_handle, type TSRMLS_CC);
-       if (retval && file_handle.opened_path) {
+       if (retval && file_handle.handle.fp) {
                int dummy = 1;
+
+               if (!file_handle.opened_path) {
+                       file_handle.opened_path = filename->value.str.val;
+               }
+
                zend_hash_add(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path)+1, (void *)&dummy, sizeof(int), NULL);
        }
        zend_destroy_file_handle(&file_handle TSRMLS_CC);
-- Zend Engine CVS Mailing List (http://cvs.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.zend-engine.cvs (#544) next »