php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54804
Patch bug_54804_with_test.diff revision 2011-05-19 11:04 UTC by pierrick@php.net
Patch bug_54804 revision 2011-05-19 10:46 UTC by pierrick@php.net

Patch bug_54804 for Scripting Engine problem Bug #54804

Patch version 2011-05-19 10:46 UTC

Return to Bug #54804 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: pierrick@php.net

Index: 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);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 02:01:29 2024 UTC