Doc #76673 [NEW]: each is deprecated,shoul be removed from the page
| From: | bocance_alexandru_cristofor at yahoo dot com | Date: | Fri, 27 Jul 2018 08:56:41 +0000 |
| Subject: | Doc #76673 [NEW]: each is deprecated,shoul be removed from the page | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-15931@lists.php.net to get a copy of this message | ||
From: bocance_alexandru_cristofor at yahoo dot com
Operating system:
PHP version: 7.2.8
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:each is deprecated,shoul be removed from the page
Description:
------------
---
From manual page: http://php.net/manual/en/control-structures.break.php
Test script:
---------------
$arr = array('one', 'two', 'three', 'four',
'stop', 'five');
while (list(, $val) = each($arr)) {
if ($val == 'stop') {
break; /* You could also write 'break 1;' here. */
}
echo "$val<br />\n";
}
Actual result:
--------------
<br />
<b>Deprecated</b>: The each() function is deprecated. This message will
be suppressed on further calls in <b>[...][...]</b> on line <b>3</b><br
/>
one<br />
two<br />
three<br />
four<br />
--
Edit bug report at https://bugs.php.net/bug.php?id=76673&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76673&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76673&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76673&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76673&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76673&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76673&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76673&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76673&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76673&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76673&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76673&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76673&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76673&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76673&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76673&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76673&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76673&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76673&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76673&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76673&r=mysqlcfg