| Patch errorMessage for Unknown/Other Function Bug #70931Patch version 2015-11-17 20:54 UTCReturn 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. ");
 		}
 	}
 
 |