Doc #62222 [NEW]: Continue 0; is invalid
| From: | maik at phpkuh dot de | Date: | Mon, 04 Jun 2012 09:14:06 +0000 |
| Subject: | Doc #62222 [NEW]: Continue 0; is invalid | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-8418@lists.php.net to get a copy of this message | ||
From: maik at phpkuh dot de
Operating system: Ubuntu 12.04
PHP version: 5.4.3
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Continue 0; is invalid
Description:
------------
---
From manual page: http://www.php.net/control-structures.continue
---
Using continue 0; will fail under PHP 5.4:
Same is true for break 0; but documentation is wrong only for continue and
incomplete for http://php.net/manual/en/migration54.incompatible.php
(not
sure, but can't see other statements affected).
Did not check translations.
Test script:
---------------
<?php
do {
continue 0;
} while(false);
echo 'passed';
Expected result:
----------------
passed
Actual result:
--------------
PHP Fatal error: 'continue' operator accepts only positive numbers
--
Edit bug report at https://bugs.php.net/bug.php?id=62222&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62222&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62222&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62222&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62222&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62222&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62222&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62222&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62222&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62222&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62222&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62222&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62222&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62222&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62222&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62222&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62222&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62222&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62222&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62222&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62222&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62222&r=mysqlcfg