Ask a Question related to PHP Development, Design and Development.
-
akinder at technology-x dot com #1
#25782 [NEW]: require( 'require.php' ) crashing Apache 1.3.28
From: akinder at technology-x dot com
Operating system: Linux RedHat 9
PHP version: 5.0.0b1 (beta1)
PHP Bug Type: Apache related
Bug description: require( 'require.php' ) crashing Apache 1.3.28
Description:
------------
When developing, I normally require or include all necessary files in one
file top level, so that each script can require just one single file.
Normally this works fine, but starting last night, I found that if I store
all these includes/requires in my typical "require.php" file and require
it from my index.php, it crashes Apache. If I delete the require.php from
the directory, it works fine. Also, if I rename the file to something
like "global_includes.php" it works fine. It only crashes if I put
"require( 'require.php' );"
My other projects that use require.php still work fine, its just this one
(under directory /whi7/).
Also of note, regardless to what file I require within my index.php, as
long as require.php exists in the directory, it crashes Apache. httpd -l
shows mod_php5
Reproduce code:
---------------
require.php:
<?php
require( 'openwhi/smaAPI.php' );
$api = new smaAPI();
?>
index.php:
<?php
require( 'require.php' );
//rest of page
?>
Expected result:
----------------
It should just require the require.php file and work like normal, just
like the other projects.
Actual result:
--------------
The browser hangs, then stops loading the requested document and just sits
on the one already open. Apache's error_log shows:
[Tue Oct 7 20:38:29 2003] [notice] child pid 2858 exit signal
Segmentation fault (11)
--
Edit bug report at [url]http://bugs.php.net/?id=25782&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25782&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25782&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25782&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25782&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25782&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25782&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25782&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25782&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25782&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25782&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25782&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25782&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25782&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25782&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25782&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25782&r=float[/url]
akinder at technology-x dot com Guest
-
require
hi i want to require or include a file in my php script. the file i want to include contains some variables and some normal html. i want to get... -
Use and Require
Dear Perl Gurus, What is the difference between Use and Require. Thanks, Malliks -
#25782 [Opn->Bgs]: require( 'require.php' ) crashing Apache 1.3.28
ID: 25782 Updated by: sniper@php.net Reported By: akinder at technology-x dot com -Status: Open +Status: ... -
#25782 [Fbk->Opn]: require( 'require.php' ) crashing Apache 1.3.28
ID: 25782 User updated by: akinder at technology-x dot com Reported By: akinder at technology-x dot com -Status: ... -
#25782 [Opn->Fbk]: require( 'require.php' ) crashing Apache 1.3.28
ID: 25782 Updated by: sniper@php.net Reported By: akinder at technology-x dot com -Status: Open +Status: ...



Reply With Quote

