|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-06-14 15:22 UTC] webmaster at gleitgeb dot at
Description:
------------
I tested on 2 Systems:
Both Windows 2000 Professional SP4
Apache 2.0.54
PHP 5.0.4
With the following code below Apache crashes reproducibly
Depending Apache-Errorlog-entrys:
[Mon Jun 13 23:32:42 2005] [notice] Apache/2.0.54 (Win32) DAV/2 PHP/5.0.5-dev mod_jk/1.2.8 configured -- resuming normal operations
[Mon Jun 13 23:32:42 2005] [notice] Server built: Apr 16 2005 14:25:31
[Mon Jun 13 23:32:42 2005] [notice] Parent: Created child process 4116
[Mon Jun 13 23:32:42 2005] [notice] Disabled use of AcceptEx() WinSock2 API
[Mon Jun 13 23:32:43 2005] [notice] Child 4116: Child process is running
[Mon Jun 13 23:32:43 2005] [notice] Child 4116: Acquired the start mutex.
[Mon Jun 13 23:32:43 2005] [notice] Child 4116: Starting 250 worker threads.
[Mon Jun 13 23:32:43 2005] [notice] Child 4116: Listening on port 80.
>>>>[Tue Jun 14 00:29:46 2005] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Tue Jun 14 00:29:47 2005] [notice] Apache/2.0.54 (Win32) DAV/2 PHP/5.0.5-dev mod_jk/1.2.8 configured -- resuming normal operations
[Tue Jun 14 00:29:47 2005] [notice] Server built: Apr 16 2005 14:25:31
[Tue Jun 14 00:29:47 2005] [notice] Parent: Created child process 4220
[Tue Jun 14 00:29:48 2005] [notice] Disabled use of AcceptEx() WinSock2 API
[Tue Jun 14 00:29:49 2005] [notice] Child 4220: Child process is running
[Tue Jun 14 00:29:49 2005] [notice] Child 4220: Acquired the start mutex.
[Tue Jun 14 00:29:49 2005] [notice] Child 4220: Starting 250 worker threads.
[Tue Jun 14 00:29:49 2005] [notice] Child 4220: Listening on port 80.
I have register_globals=On.
But otherwise nothing special.
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
extension=php_mysql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
extension=php_sockets.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_yaz.dll
;extension=php_zip.dll
Reproduce code:
---------------
<?php
$GLOBAL['x'] =0;
function schreibe() {
print "
<table border=\"2\"><tr><td>blah";
if($GLOBAL['x'] < 10) { $GLOBAL['x']++; schreibe(); }
print "
</td></tr></table>"; }
schreibe();
?>
Expected result:
----------------
Script should stop after some time
Actual result:
--------------
Apache2 crashes
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
That's because with typo you end up with endless loop. The very same result you'll get with this code: <?php function f() { $x=1; f(); } f(); ?>