#21812 [Opn]: Apache crashes when require_once has array in directory name

From: Date: Wed, 22 Jan 2003 01:38:21 +0000
Subject: #21812 [Opn]: Apache crashes when require_once has array in directory name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30886@lists.php.net to get a copy of this message
ID: 21812 Updated by: moriyoshi@php.net Reported By: pmoulding@tedis.com.au Status: Open Bug Type: Reproducible crash Operating System: Win2000 PHP Version: 4.3.0 New Comment: Sorry, I just mistook the platform is *nix. As I can't reproduce this on my Linux box, this problem is likely to be Windows specific. Does Apache segfault when giving a non-existent file name to require_once() rather than an array? Previous Comments: ------------------------------------------------------------------------ [2003-01-21 19:24:28] pmoulding@tedis.com.au I looked at the instructions for backtrace. They do not translate to Win2000. I will install Cygwin and see if the instructions work with Win2000 Cygwin. Our Unix systems have old releases of PHP and Apache so it might be a while before I can reproduce the test on Unix. ------------------------------------------------------------------------ [2003-01-21 19:10:21] moriyoshi@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. ------------------------------------------------------------------------ [2003-01-21 19:03:46] pmoulding@tedis.com.au I had $common = 'common/'; at the top of the script and require_once($common . 'x.html'); in the middle of the script and it worked. Later I accidentally set $common to a multidimentinal array prior to it's use in require_once. Apache 2.0.43 crashed when I used the script. PHP did not produce an error message. Apache is not producing any other errors. Everything else in my scripts work including Sablotron. 4.3.0 is stable with Apache 2 on both my NT and Win2000 systems. I have not tried this script error on Apache 1. A search of the bug database found some old entries from the year 2000 marked "Fixed in CVS" so I guess they are not refering to PHP 4.3.0. The Apache log contained the following entry. The status code of 3221225477 is listed on web pages against a dozen different errors. [Wed Jan 22 11:31:36 2003] [notice] Parent: Created child process 2128 [Wed Jan 22 11:31:36 2003] [notice] Child 2128: Child process is running [Wed Jan 22 11:31:36 2003] [notice] Child 2128: Acquired the start mutex. [Wed Jan 22 11:31:36 2003] [notice] Child 2128: Starting 250 worker threads. [Wed Jan 22 11:32:02 2003] [notice] Parent: child process exited with status 3221225477 -- Restarting. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21812&edit=1

« previous php.bugs (#30886) next »