Edit report at https://bugs.php.net/bug.php?id=28567&edit=1

 ID:                 28567
 Comment by:         halmai at sol dot cc dot u-szeged dot hu
 Reported by:        solace at ezmail dot ru
 Summary:            Ticks crash Apache SAPI
 Status:             Bogus
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   Win*
 PHP Version:        4.3.6
 Block user comment: N
 Private report:     N

 New Comment:

The bug still exists. Code is:

<?php
declare(ticks=1);
register_tick_function('tick_handler');
die();
?>

apache access log is empty, error log is the following:

httpd.exe: Could not reliably determine the server's fully qualified domain 
name, using 192.168.0.5 for ServerName
[Fri Jan 13 02:19:27 2012] [notice] Apache/2.2.21 (Win32) PHP/5.2.17 configured 
-- resuming normal operations
[Fri Jan 13 02:19:27 2012] [notice] Server built: Sep  9 2011 10:26:10
[Fri Jan 13 02:19:27 2012] [notice] Parent: Created child process 5196
httpd.exe: Could not reliably determine the server's fully qualified domain 
name, using 192.168.0.5 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain 
name, using 192.168.0.5 for ServerName
[Fri Jan 13 02:19:27 2012] [notice] Child 5196: Child process is running
[Fri Jan 13 02:19:27 2012] [notice] Child 5196: Acquired the start mutex.
[Fri Jan 13 02:19:27 2012] [notice] Child 5196: Starting 64 worker threads.
[Fri Jan 13 02:19:27 2012] [notice] Child 5196: Starting thread to listen on 
port 80.
[Fri Jan 13 02:19:36 2012] [notice] Parent: child process exited with status 
3221225477 -- Restarting.
httpd.exe: Could not reliably determine the server's fully qualified domain 
name, using 192.168.0.5 for ServerName
[Fri Jan 13 02:19:36 2012] [notice] Apache/2.2.21 (Win32) PHP/5.2.17 configured 
-- resuming normal operations
[Fri Jan 13 02:19:36 2012] [notice] Server built: Sep  9 2011 10:26:10
[Fri Jan 13 02:19:36 2012] [notice] Parent: Created child process 5880
httpd.exe: Could not reliably determine the server's fully qualified domain 
name, using 192.168.0.5 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain 
name, using 192.168.0.5 for ServerName
[Fri Jan 13 02:19:36 2012] [notice] Child 5880: Child process is running
[Fri Jan 13 02:19:36 2012] [notice] Child 5880: Acquired the start mutex.
[Fri Jan 13 02:19:36 2012] [notice] Child 5880: Starting 64 worker threads.
[Fri Jan 13 02:19:36 2012] [notice] Child 5880: Starting thread to listen on 
port 80.

Software versions: 
PHP Version 5.2.17
Apache Version: Apache/2.2.21 (Win32) PHP/5.2.17 
OS: Windows XP Home Edition 2002 SP3


Previous Comments:
------------------------------------------------------------------------
[2004-07-06 01:40:42] sni...@php.net

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

(Can't find the existing report right now, too slow connection, but try with 
"ticks crash")


------------------------------------------------------------------------
[2004-05-31 16:40:31] solace at ezmail dot ru

"How to generate a backtrace" page is for *nix platforms, but this bug appears 
ONLY on Windows. All I have is event in system log "Application error 
Apache.exe at address x00000000". Even Apache doesn't report it in error.log or 
access.log, like bug script wasn't accessed at all (Apache 1.3.27). But Windows 
wants to send report to Microsoft twice.
And I'm not alone with this bug...

------------------------------------------------------------------------
[2004-05-31 12:07:04] der...@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Works for me...

------------------------------------------------------------------------
[2004-05-29 10:18:34] solace at ezmail dot ru

Description:
------------
This bug was reported some time ago, was closed, but still exists. I wrote 
profiler class and posted on phpclasses. And people all over the world start to 
ask me why their apache crashes.
At least if you can't fix it, then mention in documention that ticks are only 
for non-windows platforms and console php (works fine from command line, 
crashes only sapi).


Reproduce code:
---------------
<?
register_tick_function("doesn't matter");
declare(ticks=1);
?>


Actual result:
--------------
crash


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=28567&edit=1

Reply via email to