ID: 26771 Comment by: fredrik at demomusic dot nu Reported By: info at tphnet dot com Status: Verified Bug Type: Apache2 related Operating System: * (ZTS only!) PHP Version: 5CVS, 4CVS (2005-06-17) New Comment:
It is no longer an Apache-bug: Comment From jorton at redhat dot com 2005-08-10 14:19 It's a PHP thread-safety issue, it's not Windows-specific, it breaks on Unixes with threaded MPMs too. Previous Comments: ------------------------------------------------------------------------ [2005-08-10 14:10:20] fredrik at demomusic dot nu I also reported this to Apache (as it most likely is a bug in the phpXapacheX.dll binaries that are bundled with Apache): http://issues.apache.org/bugzilla/show_bug.cgi?id=36118. This can also be voted upon: http://issues.apache.org/bugzilla/votes.cgi?action=show_user&bug_id=36118, in order to get the Apache-delevopers attention. ------------------------------------------------------------------------ [2005-08-10 13:24:23] fredrik at demomusic dot nu Some last information: solace at ezmail dot ru (http://bugs.php.net/bug.php?id=28567) has made an excellent php-profiler class, available on www.phpclasses.org. I have rewritten that profiler to side-kick as a debug-logger, an invaluable tool that I use a lot in my dev work. As soon as I am finished, it will be available for everyone, as solace's stuff is GPL. Both uses ticks. My point here is that the use of ticks on Windows is of great value, and therefore this matter should not preferably only lead to a change in the documentation (as some have suggested), but to the state where ticks work when running php as a module under apache! solace's makes an important comment in his own bugreport on this matter (marked as bogus for some reason): ""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..." Also, this bug-report's name should preferable be "Ticks crashed Apache when running php as a module". More accurate, I believe. That's all for now... ------------------------------------------------------------------------ [2005-08-10 13:03:38] fredrik at demomusic dot nu Unless Zend is automatically disabled when running as cgi? I couldn't find any Zend-configurations in httpd.conf, and so I presumed that this was not the case. If I am mistaken, and this is solely a Zend-problem, please inform me and I will be posting a bug report to the Zend-team. Thank you! ------------------------------------------------------------------------ [2005-08-10 13:01:39] fredrik at demomusic dot nu What is with the "* (ZTS only!)"? Does it stand for Zend Thread Safety?? I am not familiar with ZTS, but shouldn't this be marked as an Windows-issue? It certainly should, is my opinion. As it works nicely when running PHP as CGI, same compile-options, same php.ini, I don't see how this could be a Zend Engine-problem... It is clearly a Windows Apache+PHP as module combination problem. Please update this report. ------------------------------------------------------------------------ [2005-08-10 12:54:14] fredrik at demomusic dot nu Previous bug-reports that address the exact same issue are as follows: 29 May 2004 - #28567 (Status: Bogus) Ticks crash Apache SAPI (http://bugs.php.net/bug.php?id=28567) [solace at ezmail dot ru] 28 Jan 2002 - #15267 (Status: Closed) "declare" makes apacke crashes under Windows (http://bugs.php.net/bug.php?id=) [ferguson at becon dot org] 16 May 2002 - #17283 (Status:No Feedback) register_tick_function(); [sendidmax at yahoo dot com dot cn] 18 Nov 2002 - #20486 (Status: No Feedback) register_tick_function crashes apache [junkie at overdoos dot org] 4 Aug 2004 - #29519 (Status: No Feedback) PHP5.0.0 call to declare(ticks=1) crashes apache 1.3.31 [peter dot belt at gmail dot com] Here is a short summary of those reports as well as extra info (my own). The above mentioned should be marked as Duplicates or such, and this report (#26771) should be the official bug-report of this particular problem. Please prioritize this problem, PHP-developers, as it has existed in release after release, year after year, regardless of Apache-version! Systems reported having this problem: Windows Unspec. - PHP 4.3.6 - Apache Unspec. Windows 2000 - PHP 4.0.6 - Apache 1.3.20 Windows 2000 - PHP 4.1.1 - Apache 1.3.22 Windows 2000 - PHP 4.2.3 - Apache 1.3.22 Windows XP Pro - PHP 4.2.2 - Apache Unspec. Windows Unspec. - PHP 4.2.4-dev - Apache Unspec. Windows 2000 - PHP 4.2.1 - Apache 1.3.24 Windows Unspec. - PHP 4.3.4 - Apache 2.0.48 Windows 2000 - PHP 4.2.2 - Apache 1.3.22 Windows 2000 - PHP 4.2.3 - Apache 1.3.22 Windows 2000 - PHP 4.4.0-dev - Apache 1.3.22 Windows 2000 - PHP 4.4.0-dev - Apache 2.0.43 Windows XP - PHP 5.0.0b3 - Apache 2.0.48 Windows Unspec. - PHP 5.0.0 - Apache 1.3.31 Windows XP Pro - PHP 5.0.4 - Apache 2.0.50 Windows XP Pro - PHP 5.0.4 - Apache 2.0.54 (The latest stable versions as of this comment) Variant: Windows 2000 - PHP 4.0.6 - Apache 1.3.22 - No crash, but internal server error Probably a bug with php4apache2.dll and php5apache2.dll, ey? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/26771 -- Edit this bug report at http://bugs.php.net/?id=26771&edit=1
