Bug #76501 [Opn->Csd]: Funny message with fatal error
| From: | kalle@php.net | Date: | Wed, 04 Jul 2018 01:04:37 +0000 |
| Subject: | Bug #76501 [Opn->Csd]: Funny message with fatal error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216123@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76501&edit=1
ID: 76501
Updated by: kalle@php.net
Reported by: dams@php.net
Summary: Funny message with fatal error
-Status: Open
+Status: Closed
Type: Bug
Package: Unknown/Other Function
Operating System: Any
PHP Version: 7.3.0alpha1
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c49f0fd9ac4253c959cb90cb8c470c2aadc3ae7b
Log: Fixed bug #76501 (Funny message with fatal error)
Previous Comments:
------------------------------------------------------------------------
[2018-06-19 15:52:10] dams@php.net
Description:
------------
Here are two examples of Fatal error, that bears a funny error message.
<?php break 1.0;
PHP Fatal error: 'break' operator accepts only positive numbers
<?php break true;
'break' operator with non-constant operand is no longer supported
Test script:
---------------
<?php break 1.0;
Those are two separate scripts.
<?php break true;
<?php const A=1; break A;
PHP Fatal error: 'break' operator with non-constant operand is no longer supported
Expected result:
----------------
"only positive numbers" is misleading, and should mention 'only positive
integers'.
That would work for "true", and "A" too : "non-constant operand" is
misleading too.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76501&edit=1