php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49012 Spurious fatal error on require() statement
Submitted: 2009-07-22 06:58 UTC Modified: 2009-08-07 01:00 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:0 (0.0%)
From: gary dot barnes at is-networks dot co dot uk Assigned: jani (profile)
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.3.0 OS: Linux version 2.6.10-1.766_FC3
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: gary dot barnes at is-networks dot co dot uk
New email:
PHP Version: OS:

 

 [2009-07-22 06:58 UTC] gary dot barnes at is-networks dot co dot uk
Description:
------------
After installing 5.3.0 some site scripts fail with the message:
PHP Fatal error: Unknown: Failed opening required <filename> <include path> in Unknown on line 0.

This is only some sites, and is intermittent, and can appear after several refreshes of the web page (maybe memory/file handle related?)

Versions 5.2.9, 5.2.8 work fine with the same scripts.

Also appears not to be obeying error_reporting statement in php.ini


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-22 07:04 UTC] rasmus@php.net
Any 3rd-party extensions?
 [2009-07-27 10:52 UTC] gary dot barnes at is-networks dot co dot uk
Found some out of date PHP4 extensions which were failing to load (mysql and ldap). However, these aren't required and obviously failed to load with previous PHP5 versions with no detrimental affects.

I can now confirm there is no problem with 5.2.10, so it seems only with 5.3.0 I get this problem.)
 [2009-07-28 16:51 UTC] jani@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

And do not try loading any 3rd party extensions, or outdated ones 
either. :)
 [2009-07-29 06:05 UTC] gary dot barnes at is-networks dot co dot uk
Thanks for this. Unfortunately, the make fails with this error:

/bin/sh /home/rpm/php5.3-200907290430/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/openssl/ -I/home/rpm/php5.3-200907290430/ext/openssl/ -DPHP_ATOM_INC -I/home/rpm/php5.3-200907290430/include -I/home/rpm/php5.3-200907290430/main -I/home/rpm/php5.3-200907290430 -I/home/rpm/php5.3-200907290430/ext/date/lib -I/home/rpm/php5.3-200907290430/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/home/rpm/php5.3-200907290430/ext/mbstring/oniguruma -I/home/rpm/php5.3-200907290430/ext/mbstring/libmbfl -I/home/rpm/php5.3-200907290430/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/home/rpm/php5.3-200907290430/ext/sqlite3/libsqlite -I/home/rpm/php5.3-200907290430/TSRM -I/home/rpm/php5.3-200907290430/Zend    -I/usr/include -g -O2  -prefer-non-pic -c /home/rpm/php5.3-200907290430/ext/openssl/openssl.c -o ext/openssl/openssl.lo
/home/rpm/php5.3-200907290430/ext/openssl/openssl.c: In function `php_openssl_x509_from_zval':
/home/rpm/php5.3-200907290430/ext/openssl/openssl.c:1170: error: `d2i_of_void' undeclared (first use in this function)
/home/rpm/php5.3-200907290430/ext/openssl/openssl.c:1170: error: (Each undeclared identifier is reported only once
/home/rpm/php5.3-200907290430/ext/openssl/openssl.c:1170: error: for each function it appears in.)
/home/rpm/php5.3-200907290430/ext/openssl/openssl.c:1170: error: syntax error before ')' token
make: *** [ext/openssl/openssl.lo] Error 1)
 [2009-07-29 23:30 UTC] jani@php.net
And I stand corrected. Apparently Pierre broke it. What openssl version 
are you compiling PHP with?
 [2009-07-30 08:20 UTC] gary dot barnes at is-networks dot co dot uk
OK, thanks for that.
OpenSSL version is 0.9.7a)
 [2009-07-30 11:32 UTC] svn@php.net
Automatic comment from SVN on behalf of jani
Revision: http://svn.php.net/viewvc/?view=revision&revision=286551
Log: - Fixed compile failure with older openssl libs (< 0.9.8), fixes bug #49012
 [2009-07-30 11:33 UTC] jani@php.net
Please try current PHP_5_3 checkout now. I fixed the compile failure..not the original issue in this bug since we don't know if that even exists. :)
 [2009-08-07 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".
 [2009-08-24 20:58 UTC] smagee at arb dot ca dot gov
I'm using CentOS 5.3 64 bit, Kernel 2.6.18-128.2.1.el5. 
Apache 2.2.12 and php 5.3.0.

I'm getting the same error messages in my phperror log.
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR

php error log is showing...
[24-Aug-2009 13:45:32] PHP Fatal error:  Unknown: Failed opening required '/dir1/www/dir2/dir3/dir4/some.php' (include_path='.:/dir1/dir2/dir3:/dir1/inc:/usr/local/lib/php') in Unknown on line 0

I'm getting the correct error messages on other servers, using CentOS 4.7 32 bit, Apache 2.2.10 and php 5.2.6.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC