|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-05-29 18:25 UTC] tony2001@php.net
[2007-06-04 05:22 UTC] ukirfan at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 22:00:01 2025 UTC |
Description: ------------ Hi, Apache stops printing php statements after looping through the array, and does not reach a point where I print "hello there !" message. i need to output beyound the print statements in array, to execute javascript in client browser. Please help ! try catch messages are not showing any error ! Note : all my pages work perfectly even with huge outputs, only this multi-dimensional array output is the problem Thanks Irfan Ahmed Reproduce code: --------------- here is the code below <?php try{ while( $localcount < $localcountfinal ) { if(($completeTreeLocal[$localcount]["node"]+0) != 50000 ){ print $completeTreeLocal[$localcount]["routePath"]; } $localcount++; } $_SESSION['completeTreeStruct'] = serialize( $completeTreeLocal); } catch (Exception $e) { echo ' Caught exception: ', $e->getMessage(), "\n"; } print "hello there !"; ?> Expected result: ---------------- after printing strings from multidimensional array loops, must print any other statement after loop, example "hello there" d.add( 1, 0,'RDD','mileStoneschangeEvent.php?MSTONE=RDD&node=1&parentIs=0&arrayIndex=0'); d.add( 2, 0,'','mileStoneschangeEvent.php?MSTONE=&node=2&parentIs=0&arrayIndex=1'); d.add( 3, 0,'Design Approval','mileStoneschangeEvent.php?MSTONE=Design Approval&node=3&parentIs=0&arrayIndex=2'); d.add( 4, 0,'Commercials Approval','mileStoneschangeEvent.php?MSTONE=Commercials Approval&node=4&parentIs=0&arrayIndex=3'); . . . . . d.add( 20, 0,'Commercials Approval','mileStoneschangeEvent.php?MSTONE=Commercials Approval&node=4&parentIs=0&arrayIndex=19'); <---- stops here Actual result: -------------- d.add( 1, 0,'RDD','mileStoneschangeEvent.php?MSTONE=RDD&node=1&parentIs=0&arrayIndex=0'); d.add( 2, 0,'','mileStoneschangeEvent.php?MSTONE=&node=2&parentIs=0&arrayIndex=1'); d.add( 3, 0,'Design Approval','mileStoneschangeEvent.php?MSTONE=Design Approval&node=3&parentIs=0&arrayIndex=2'); d.add( 4, 0,'Commercials Approval','mileStoneschangeEvent.php?MSTONE=Commercials Approval&node=4&parentIs=0&arrayIndex=3'); . . . . . . . . n times and then print "hello there". or whatever print statement occurs later