php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49684 Warning: Unknown: failed to open stream: No such file or directory in Unknown o
Submitted: 2009-09-26 21:55 UTC Modified: 2009-10-06 01:00 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:1 (20.0%)
From: alexbatko at gmail dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.3.0 OS: Mac OS X 10.6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alexbatko at gmail dot com
New email:
PHP Version: OS:

 

 [2009-09-26 21:55 UTC] alexbatko at gmail dot com
Description:
------------
Everything was working fine, then, out of the blue, after a page reload, I have been continuously presented with the following errors:

[Sat Sep 26 14:12:12 2009] [error] [client 127.0.0.1] PHP Warning:  Unknown: failed to open stream: No such file or directory in Unknown on line 0

[Sat Sep 26 14:12:12 2009] [error] [client 127.0.0.1] PHP Fatal error:  Unknown: Failed opening required '/path/to/script/here.php' (include_path='.:/usr/lib/php') in Unknown on line 0

PHP 5.3.0 (cli) (built: Jul 19 2009 00:34:29) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies

HTTP Server version: Apache/2.2.11 (Unix)
HTTP Server built:   May 18 2009 12:37:03

This bug seems to be the same as one submitted in 2007:

http://bugs.php.net/bug.php?id=40068

But that bug was closed - so I could not add to it - hence why I'm opening a new one.

Reproduce code:
---------------
This problem occurred out of the blue. It is completely unrelated to my code.

Expected result:
----------------
The page/code should load normally, 100% of the time.

Actual result:
--------------
As of the first time the error appeared (again, I emphasize: out of the blue), I am only ever presented with the above mentioned errors... and no PHP script is ever executed.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-26 22:20 UTC] alexbatko at gmail dot com
Can someone on Mac OS X 10.6.1, running the built-in PHP 5.3.0 (cli) (built: Jul 19 2009 00:34:29), please run these commands for the sake of comparison?

ls -l /usr/libexec/apache2/libphp5.so
-rwxr-xr-x  1 root  wheel  29081072 Jul 19 00:35 /usr/libexec/apache2/libphp5.so

md5 /usr/libexec/apache2/libphp5.so
MD5 (/usr/libexec/apache2/libphp5.so) = 7117168f74cca3f5669c26a136321712
 [2009-09-27 21:53 UTC] alexbatko at gmail dot com
I did the comparison myself, on another machine, and libphp5.so had the same size and md5.
 [2009-09-28 19:47 UTC] sjoerd@php.net
Thank you for your bug report.

A syscall trace using strace, dtrace or dtruss can help to determine which file PHP tries to open and what the system calls return.

Please try to reproduce the problem on the command line, like
php -f testscript.php
If that gives the problem, you can try
dtruss php -f testscript.php
Please upload the resulting log somewhere and insert a link here.
 [2009-10-06 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC