Bug #76501 [NEW]: Funny message with fatal error

From: Date: Tue, 19 Jun 2018 15:52:11 +0000
Subject: Bug #76501 [NEW]: Funny message with fatal error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215790@lists.php.net to get a copy of this message
From: dams Operating system: Any PHP version: 7.3.0alpha1 Package: Unknown/Other Function Bug Type: Bug Bug description:Funny message with fatal error 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 bug report at https://bugs.php.net/bug.php?id=76501&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76501&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76501&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76501&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76501&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76501&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76501&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76501&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76501&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76501&r=support Expected behavior: https://bugs.php.net/fix.php?id=76501&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76501&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76501&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76501&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76501&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76501&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76501&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76501&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76501&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76501&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76501&r=mysqlcfg

« previous php.bugs (#215790) next »