php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28567 Ticks crash Apache SAPI
Submitted: 2004-05-29 10:18 UTC Modified: 2004-07-06 01:40 UTC
From: solace at ezmail dot ru Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.6 OS: Win*
Private report: No CVE-ID: None
 [2004-05-29 10:18 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-31 12:07 UTC] derick@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-31 16:40 UTC] 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-07-06 01:40 UTC] sniper@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")

 [2012-01-13 01:25 UTC] halmai at sol dot cc dot u-szeged dot hu
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 13:01:30 2024 UTC