From: [EMAIL PROTECTED] Operating system: SunOS PHP version: 4.1.2 PHP Bug Type: Scripting Engine problem Bug description: Failed opening . for inclusion (include_p='.:/../lib/php') in Unknown on line 0
If I request any php file that does not exist in the current path I always get: Warning: Failed opening '/path/to/file.php' for inclusion (include_path='.:/usr/local/php-4.1.2/lib/php') in Unknown on line 0 when I try for example to open "http://www.host.com/doesnt_exist.php" I get the error, though when I try "http://www.host.com/dir/doesnt_exist.php" and the directory "dir" does not exist I get a normal 404 error. But when directory "dir" DOES exist I get the Failed opening error again. It only happens when I try to open files with the extension that is parsed by the php deamon (I included .html and .php) so: "http://www.host.com/doesnt_exist.php" gives failed... "http://www.host.com/doesnt_exist.html" gives failed... "http://www.host.com/doesnt_exist.txt" gives normal 404 error "http://www.host.com/not_here/doesnt_exist.php" gives normal 404 "http://www.host.com/here/doesnt_exist.php" gives failed... I use php 4.1.2 and apache 1.3.20 and happened when I upgraded to 4.1.2. Configure Command: './configure' '--with-mysql=/usr/local/mysql' '--with-apxs=/usr/local/apache-1.3.20/bin/apxs' '--enable-track-vars' '--with-gdbm=/usr/local/gnu' '--with-config-file-path=/usr/local/php-4.1.2/lib' '--with-mhash=/usr/local' '--with-zlib=/usr/local' '--with-gd' '--with-ttf' '--prefix=/usr/local/php-4.1.2' in the phpinfo() also: include_path: .:/usr/local/php-4.1.2/lib/php .: is correct?? Everything except accessing non existing files works perfectly -- Edit bug report at http://bugs.php.net/?id=16450&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16450&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16450&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16450&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16450&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16450&r=support Expected behavior: http://bugs.php.net/fix.php?id=16450&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16450&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16450&r=submittedtwice
