php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch bug_54804 for Scripting Engine problem Bug #54804Patch version 2011-05-19 10:46 UTC Return to Bug #54804 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: pierrick@php.netIndex: Zend/zend_compile.c =================================================================== --- Zend/zend_compile.c (revision 311143) +++ Zend/zend_compile.c (working copy) @@ -3746,6 +3746,9 @@ int len, clen; cfilename = zend_get_compiled_filename(TSRMLS_C); clen = strlen(cfilename); + if (CG(in_namespace) && !CG(has_bracketed_namespaces)) { + zend_do_end_namespace(TSRMLS_C); + } zend_mangle_property_name(&name, &len, haltoff, sizeof(haltoff) - 1, cfilename, clen, 0); zend_register_long_constant(name, len+1, zend_get_scanned_file_offset(TSRMLS_C), CONST_CS, 0 TSRMLS_CC); pefree(name, 0); |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Sat Dec 07 02:01:29 2024 UTC |