php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #70931
Patch errorMessage revision 2015-11-17 20:54 UTC by damien dot seguy at gmail dot com

Patch errorMessage for Unknown/Other Function Bug #70931

Patch version 2015-11-17 20:54 UTC

Return to Bug #70931 | Download this patch
Patch Revisions:

Developer: damien.seguy@gmail.com

diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index a987dce..921a56b 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -5825,7 +5825,7 @@ void zend_compile_namespace(zend_ast *ast) /* {{{ */
 		}
 		if (num > 0) {
 			zend_error_noreturn(E_COMPILE_ERROR, "Namespace declaration statement has to be "
-				"the very first statement in the script");
+				"the very first statement in the script or the second after a declare call. ");
 		}
 	}
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 06:01:29 2024 UTC