From: brandonnimon at comcast dot net Operating system: Windows XP/Linux :: Fedora/Unix PHP version: 4.3.5 PHP Bug Type: Unknown/Other Function Bug description: Page stops creating in middle of page and many php.exe started
Description: ------------ When programming on complicated sites, I have run into a problem a few times. I'll add some code (sometimes it could be something as simple as a few lines like this: echo "<table><tr><td>Table 1</td></tr>"; But seems to better replicated with large complex arrays, just 'cause they are larger, there is a greater chance. When I have run into this problem, I transfer my code to my Linux machine, and a Unix webhosting server. They all do the same thing. I've also had it stop in the middle of a php function such as print_r(). It will suddenly just stop. I've seen it print_r($array); and stop like this: Array ( [0] => Array ( [user] => admin [0] => Array ( [album] => 1 [0] => Array ( [date] => 1080354398 [name] => 105blaster_s9969041.jpg [number] => 0 ) [1] => Array ( [date] => 1080460914 [name] => ballot7784410.jpg [num ..just stops in the middle of the dump. Also, every time a page like this is opened, an execution of php.exe is started. And after 30 or so open there is an "internal server error". I'm not sure of how the PHP client works, but my guess is that php.exe is crashing partially, and it tries to start another, and I just end up with a bunch of the same program. I also think it may have something to do with error reporting. Because to a point, I was able to supress the bug by adding @ signs to certain lines of code, ones which could potentially return an error but don't (I did this just as some debugging attempts, and was suprised that it worked -- but I could only do it to so many relevent lines before I ran out, and the problem persisted after I added something else). And I checked my apache error log and no "Segmentation Fault" errors are in there. Currently I am using a GD2 extension, but I have run into the problem when I was using all default settings. Reproduce code: --------------- I can't seem to reproduce the error on Linux with this code, but I know with some other code I have. I don't know exactly what part is causeing it, so I am using all of it. If you see some inconsistancies, it is probably because I was trying to debug. http://24.127.21.245/prod_error/source.zip Expected result: ---------------- The page to be displayed fully. And no php.exe's to start. Actual result: -------------- Currently the output is stopping for no apearent reason (see description for an example). The output will just stop at some character, and the browser continually tries to get the rest. Everytime a page like this is opened, an execution of php.exe is started. -- Edit bug report at http://bugs.php.net/?id=27820&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27820&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27820&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27820&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27820&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27820&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27820&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27820&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27820&r=support Expected behavior: http://bugs.php.net/fix.php?id=27820&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27820&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27820&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27820&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27820&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27820&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27820&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27820&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27820&r=float