|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-06-09 17:22 UTC] zeev at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 09:00:01 2025 UTC |
var_dump() should not touch the cursors in arrays, it should work with a copy of this arrays, it should not manipulate them directly, performance is not needed using var_dump() - I think. One has to reset() every array after using var_dump(), it this is expected behaviour, it should be documented. Expected result: ab[dumped stuff]c Current result: ab[dumped stuff] <?php $t=array('a','b','c','d'); print reset($t); print next($t); var_dump($t); print next($t); ?>