Bug #69597 [NEW]: 'break' not in the 'loop' or 'switch' context

From: Date: Thu, 07 May 2015 18:10:26 +0000
Subject: Bug #69597 [NEW]: 'break' not in the 'loop' or 'switch' context
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192553@lists.php.net to get a copy of this message
From: benjamin dot balet at gmail dot com Operating system: All PHP version: master-Git-2015-05-07 (Git) Package: Scripting Engine problem Bug Type: Bug Bug description:'break' not in the 'loop' or 'switch' context Description: ------------ Hi, I've found a bug in PHP7-dev that I can reproduce on Ubuntu/amd64 and Win64/amd64 (but I think it is not OS specific). The bug occurs in - at least - the 10 latest nighly builds. I've discovered it while trying to build an xlsx file with PHPExcel, it displays : 'break' not in the 'loop' or 'switch' context in PHPExcel/Calculation/Functions.php on line 581 I tried to search before submitting this bug and I hope it is not a duplicate. Benjamin Test script: --------------- You can reproduce the bug on my demo: - use bbalet/bbalet to login - Menu "Request", "List of Leave Request" - Button "Export this list" at the bottom of the page. PHP7 (fail): http://php7.jorani.org/ PHP 5.5.12 (pass) : http://demo.jorani.org/ HHVM (pass) : http://hhvm.jorani.org/ The full source of the project is on Github https://github.com/bbalet/jorani And PHPExcel lib: https://github.com/PHPOffice/PHPExcel -- Edit bug report at https://bugs.php.net/bug.php?id=69597&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69597&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69597&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69597&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69597&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69597&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69597&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69597&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69597&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69597&r=support Expected behavior: https://bugs.php.net/fix.php?id=69597&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69597&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69597&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69597&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69597&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69597&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69597&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69597&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69597&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69597&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69597&r=mysqlcfg

« previous php.bugs (#192553) next »