From:             lahcim at fajne dot com
Operating system: FreeBSD 6.2-STABLE
PHP version:      5.2.4
PHP Bug Type:     Apache related
Bug description:  Random problem with accessing file by php runtime

Description:
------------
I found similar bug here: #41476

It is exactly the same problem.

Randomly I am getting error:

Warning: Unknown: failed to open stream: No such file or directory in
Unknown on line 0

Fatal error: Unknown: Failed opening required
'/home/www/main/wybranski.com/wybranski.com/data/photos/2006.04
FoodExplorer/slides/IMG_0366.html' (include_path='.:/usr/local/share/pear')
in Unknown on line 0

While the path is 100% correct and the file exists!
After refreshing the same webpage it works.

You can see that I have associated also .html files to be parsed as php
but it also happens for pure php files.

I remove the php.ini completly, so it runs with default configuration.

The only extensions I have are:
extension=gd.so
extension=imap.so
extension=mysql.so
extension=ldap.so

but the bug also happens when there are no extensions loaded, so it is php
apache module bug.

I could not repro this bug on CLI, it happens only with apache module.



Reproduce code:
---------------
It seems that it happens on this particular configuration:

PHP 5.2.4 with Suhosin-Patch 0.9.6.2 (cli) (built: Oct  2 2007 12:01:40) 
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

Server version: Apache/1.3.37 (Unix)
Server built:   Sep 24 2007 20:07:19

FreeBSD plustech.pl 6.2-STABLE FreeBSD 6.2-STABLE #1: Mon Aug 20 14:53:07
UTC 2007     [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GTT  amd64

I have the same configuration on a different server, but on x86 machine
and the problem does NOT happen on x86.

It seems that it can be a bug with php apache module compiled for amd64
architecture in particulary.

The bug happens "randomly". I do not know on which it depends.

To experience the bug please go to:
http://www.wybranski.com/photos/

and start reviewing the pictures one after another.

After some time the error will appear. Than after refreshing the same
webpage it will be all ok.

But than when you continue reviewing other pages the bug will happen
again.


Expected result:
----------------
The page that the bug is reporting as "Failed opening required" exists! So
it should load it without saying that it has a problem.


Actual result:
--------------
It reports 'Failed opening required' error on a file that is present and
available:

Warning: Unknown: failed to open stream: No such file or directory in
Unknown on line 0

Fatal error: Unknown: Failed opening required
'/home/www/main/wybranski.com/wybranski.com/data/photos/2006.04
FoodExplorer/slides/IMG_0366.html' (include_path='.:/usr/local/share/pear')
in Unknown on line 0

(I enabled php for .html extensions but it also work /the bug happens
also/ for pure .php files)



-- 
Edit bug report at http://bugs.php.net/?id=42826&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42826&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42826&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42826&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42826&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42826&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42826&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42826&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42826&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42826&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42826&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42826&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42826&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42826&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42826&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42826&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42826&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42826&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42826&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42826&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42826&r=mysqlcfg

Reply via email to