#3489 [Opn->]: Fatal error: Failed opening required file in PHP script

From: Date: Tue, 01 Oct 2002 19:32:32 +0000
Subject: #3489 [Opn->]: Fatal error: Failed opening required file in PHP script
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21087@lists.php.net to get a copy of this message
ID: 3489 Updated by: hholzgra@php.net Reported By: d.tilloy@nnx.com -Status: Open +Status: Won\'t fix Bug Type: Parser error Operating System: Linux/2.2.x/ PHP-3.0.14+ / Apach PHP Version: 3.0.14 or 3.0.15 New Comment: We are sorry, but can not support PHP 3 related problems anymore. Momentum is gathering for PHP 5, and we think supporting PHP 3 will lead to a waste of resources which we want to put into getting PHP 5 ready. Ofcourse PHP 4 will will continue to be supported for the forseeable future. most likely '.' not in include path? Previous Comments: ------------------------------------------------------------------------ [2000-03-08 13:27:35] d.tilloy@nnx.com this error is appear too with PHP-3.0.15. I have the same bug on some plateform, with different configurations. Just downgrad to PHP-3.0.13 fix this bug (but it's not usefull ;( ) -- David TILLOY - Chef de projets - <d.tilloy@nnx.com> Neuronnexion (nnx) - 19/21, rue des Augustins - F-80000 Amiens ------------------------------------------------------------------------ [2000-02-15 21:43:41] d.tilloy@nnx.com 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=3489&edit=1

« previous php.bugs (#21087) next »