ID:               36017
 Updated by:       [EMAIL PROTECTED]
 Reported By:      Brian dot White at foxfire74 dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Apache2 related
 Operating System: Windows XP SP2
 PHP Version:      4.4.2
 New Comment:

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 for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

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.

We don't really support threaded webservers either...


Previous Comments:
------------------------------------------------------------------------

[2006-01-15 08:32:38] Brian dot White at foxfire74 dot com

The original assumption was bogus.  The crash is independent of MySQL. 
There were differences between my test and production systems that I did
not detect at first.

The problem is actually an issue with fopen().

Here is some code to reproduce:

<?php
$url="http://www.php.net";;

$xhtml = '';
if($filehandle = @fopen($url, 'rb')) {
        $xhtml = fread($filehandle, 4096);
        fclose($filehandle);

        echo "$xhtml";
}
?>

This can be run either from the command line or as a webpage.  In both
cases, PHP crashes.

Everthing works as expected when using the latest version of PHP5.

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

[2006-01-15 02:41:29] Brian dot White at foxfire74 dot com

The latest version of PHP5 did not exhibit the problem.  
Unfortunately, I have web sites that are not PHP5 compatible.  The ones
that are compatible with PHP5 worked fine.

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

[2006-01-15 01:54:37] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip



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

[2006-01-15 01:48:53] Brian dot White at foxfire74 dot com

Description:
------------
Apache2 crashes after upgrading to PHP 4.4.2.  THe following is found
in the Apache's error log.

[Sat Jan 14 12:15:11 2006] [notice] Parent: child process exited with
status 3221225477 -- Restarting.
[Sat Jan 14 12:15:12 2006] [notice] Apache/2.0.55 (Win32) PHP/4.4.2
configured -- resuming normal operations
[Sat Jan 14 12:15:12 2006] [notice] Server built: Oct  9 2005 19:16:56
[Sat Jan 14 12:15:12 2006] [notice] Parent: Created child process 3700
[Sat Jan 14 12:15:14 2006] [notice] Child 3700: Child process is
running
[Sat Jan 14 12:15:14 2006] [notice] Child 3700: Acquired the start
mutex.
[Sat Jan 14 12:15:14 2006] [notice] Child 3700: Starting 250 worker
threads.

This only happens on my production system where MySQL is also
installed.  Everything works as expected on the test machine (which
connects  to the production database server).

Reproduce code:
---------------
All of my PHP apps crash.  Unfortunately, the index.php files are quite
large.  I have not yet isolated the offending code but I wanted to enter
a bug report since before others upgrade since 4.4.2 is a new release.

Expected result:
----------------
Page returned as expected without Apache2 crashing.

Actual result:
--------------
Browser shows the entire page but is still waiting for additional
input.


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


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

Reply via email to