From: info at tphnet dot com
Operating system: Windows XP SP1
PHP version: 4.3.4
PHP Bug Type: Apache2 related
Bug description: register_tick_funtions crashes apache2 child process
Description:
------------
While searching the bug database I found some similar problems, but all
were suspended. I wasn't sure if it was useful to reply to one of those
(Most recent one: http://bugs.php.net/bug.php?id=26286). Well anyways,
here goes:
The problem is very simple. I just copy and paste the 'tick' example from
the php manual into a new php file an try to execute it on my apache2
server.
The apache child process crashes, restarts, crashes, restarts and
eventually just stops restarting. When I comment out the line
'register_tick_function', everyting works just fine.
Also, when I start the file from the CLI version of PHP it is executed
without any problems.
I'm using PHP 4.3.4 and Apache 2.0.48 (in conjunction with
php4apache2.dll).
Reproduce code:
---------------
http://nl.php.net/manual/en/control-structures.declare.php
See Example 11-1
Actual result:
--------------
[Sat Jan 03 01:11:04 2004] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
[Sat Jan 03 01:11:04 2004] [notice] Parent: Created child process 3036
[Sat Jan 03 01:11:04 2004] [notice] Child 3036: Child process is running
[Sat Jan 03 01:11:04 2004] [notice] Child 3036: Acquired the start mutex.
[Sat Jan 03 01:11:04 2004] [notice] Child 3036: Starting 250 worker
threads.
Small snippit from my apache2 error.log. It's filled with the above lines,
the status code is the same for every restart.
--
Edit bug report at http://bugs.php.net/?id=26771&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26771&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26771&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26771&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26771&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26771&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26771&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26771&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26771&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26771&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26771&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26771&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26771&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26771&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26771&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26771&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26771&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26771&r=float