]> granicus.if.org Git - php/commitdiff
Set filename even on recursive include
authorStanislav Malyshev <stas@php.net>
Sun, 17 Sep 2000 08:58:39 +0000 (08:58 +0000)
committerStanislav Malyshev <stas@php.net>
Sun, 17 Sep 2000 08:58:39 +0000 (08:58 +0000)
Zend/zend_compile.c

index 8a35037e2d4b7ba78f80b52d5b16639313be339e..605980f7c395b21fbdff8d391bc5c7f6e1d9aca0 100644 (file)
@@ -113,6 +113,7 @@ ZEND_API char *zend_set_compiled_filename(char *new_compiled_filename)
        CLS_FETCH();
 
        if (zend_hash_find(&CG(filenames_table), new_compiled_filename, length+1, (void **) &pp)==SUCCESS) {
+               CG(compiled_filename) = *pp;
                return *pp;
        }
        p = estrndup(new_compiled_filename, length);