#41530 [NEW]: Apache stops printing php statements after looping through the array
| From: | ukirfan at yahoo dot com | Date: | Tue, 29 May 2007 18:17:39 +0000 |
| Subject: | #41530 [NEW]: Apache stops printing php statements after looping through the array | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-113159@lists.php.net to get a copy of this message | ||
From: ukirfan at yahoo dot com
Operating system: xp and linux
PHP version: 4.4.7
PHP Bug Type: Apache2 related
Bug description: Apache stops printing php statements after looping through the array
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
--
Edit bug report at http://bugs.php.net/?id=41530&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41530&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41530&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41530&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41530&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41530&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41530&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41530&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41530&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41530&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41530&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41530&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41530&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41530&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41530&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41530&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41530&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41530&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41530&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41530&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41530&r=mysqlcfg