|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-03-08 13:27 UTC] d dot tilloy at nnx dot com
[2002-10-01 14:32 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
When using PHP-3.0.14 with Apache-1.3.11, include directive or require directive randomly fail opening required file. Exact error message is : --- 8< --- Fatal error: Failed opening required 'foo2.php' in /path/to/bugphp/foo.phtml on line 2 --- 8< --- Content of this file is like this : $ cat foo.phtml <? require ("foo2.php"); echo "foo"; ?> $ cat foo2.php <? echo "<br>FROM FOO2<BR> ?> The problem is the same with or without using include_path (php3.ini, httpd.conf or .htaccess). The only way to prevent this error is call include or require with the full path of your file. Another potential way is to prefix file by ./ like : require ("./foo2.php"); This problem seems to appear only on some virtualhosts, and not another. Using .htaccess with php3_* directives seems to produce this bug more without .htaccess. Bug is a non reproductible crash, because this error appears randomly (1 to 100 request, or more requests for another users of the internet). Apache does not seems to be affected, because this problem appears again with Apache_1.3.9, and seems to not appears with PHP-3.0.12. -- David TILLOY - Chef de projets - <d.tilloy@nnx.com> Neuronnexion (nnx) - 19/21, rue des Augustins - F-80000 Amiens