Bug #70931 [Fbk->NoF]: Two errors messages are in conflict

From: Date: Sun, 29 Nov 2015 04:22:16 +0000
Subject: Bug #70931 [Fbk->NoF]: Two errors messages are in conflict
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197484@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70931&edit=1

 ID:               70931
 Updated by:       php-bugs@lists.php.net
 Reported by:      dams@php.net
 Summary:          Two errors messages are in conflict
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          Unknown/Other Function
 Operating System: Any
 PHP Version:      7.0.0RC7
 Private report:   N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2015-11-19 11:01:34] dams@php.net

New suggestion : 

" or after any declare call"

------------------------------------------------------------------------
[2015-11-19 03:21:48] laruence@php.net

I am not sure what message will be best, but " or the second after a declare call" seems
not very good. like:

declare()...
declare()...
namespace?

------------------------------------------------------------------------
[2015-11-17 20:52:50] dams@php.net

Description:
------------
It is possible to have the following errors : 

"Encoding declaration pragma must be the very first statement in the script"
And Then : 
"Namespace declaration statement has to be the very first statement in the script"


Is is also possible to have the following, in place of the first statement :
"strict_types declaration must be the very first statement in the script"

In fact, namespace declaration should happen in first in the script, but AFTER
encoding or strict_types declare calls. 



Expected result:
----------------
All C code is in Zend/zend_compile.c file.

Line 4498 for "Encoding declaration pragma "
Line 4505 for "strict_types declaration pragma "

line 5827 for "Namespace declaration statement "

I suggest the second error message is updated and mention the 'declare' (see patch)



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70931&edit=1


Thread (7 messages)

« previous php.bugs (#197484) next »