|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-30 09:43 UTC] sander@php.net
[2002-10-01 01:58 UTC] phpbugs at realplain dot com
[2002-10-01 02:25 UTC] sniper@php.net
[2002-10-01 02:50 UTC] phpbugs at realplain dot com
[2002-10-01 05:23 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 11:00:01 2025 UTC |
System: Win2000 SP3 (dual CPU if it matters), Apache 1.3.26 (default setup), and PHP 4.2.3 as a module (default setup) Problem: When I use ob_start('callback') and "callback" takes $var as its parameter, Apache crashes if you modify $var and reassign it to $var. Code: <?php ob_start('test'); echo 'This is a test!'; function test($output) { $output = strtoupper($output); return $output; // Use this instead of the above and it works $test = strtoupper($output); return $test; } ?> It seems that an Apache child thread can process the script once before it crashes the child process. e.g. Refresh within KeepAliveTimeout seconds and it will crash; or with KeepAlive Off, it crashes after ThreadsPerChild requests. The "Apache.exe has generated errors..." box pops up. The only thing in Apache's error log is [info] master_main: Child processed exited prematurely. Restarting the child process. I have the "Dr. Watson" crash log file that was generated if it's of any use: http://www.realplain.com/phpcrash.txt BTW, that's weird; I just closed some apps that I usually have running so their processes wouldn't show up in that log and now I can't get the above script to crash every time (or at all!) like I could a few mins ago. Hmm... So don't know if you can reproduce it. However, the script where I originally noticed it is still crashing consistently as before. Thanks for your time.