Bug #12289 Updated: Not fully reproducable include-errors
| From: | yohgaki@php.net | Date: | Wed, 12 Dec 2001 13:38:51 +0000 |
| Subject: | Bug #12289 Updated: Not fully reproducable include-errors | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73304@lists.php.net to get a copy of this message | ||
ID: 12289
Updated by: yohgaki
Reported By: deets@web.de
Old Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.0.5
New Comment:
Could you try 4.1.0?
Previous Comments:
------------------------------------------------------------------------
[2001-07-27 06:44:12] deets@web.de
This didn't solve the problem. As I mentioned before, all include-files are encapsulated in
if(!defined("C")){define("C")..} statements.
I replaced all includes with include_once, and upgradet to 4.0.6, but this didn't help.
The problems seems someway related to the process getting the request. Its very often the case that
alternating requests result in an error. So every other requets works.
This is even reproducable.
On our live-system, the problem had been solved by setting display_errors = Off
This seems to make things not only invisible, but actually work.
------------------------------------------------------------------------
[2001-07-20 15:47:08] rasmus@php.net
This is what the include_once function is for. Use that instead and see if that fixes things for
you.
------------------------------------------------------------------------
[2001-07-20 14:45:31] deets@web.de
We encouter include() -problems on a large project. It
makes extensive use of classes and due to the fact that
session-vars need to have the class-definitions before
they can be used, some includes are circular. Of course
all include-files are encapsulated into if(defined("C")
{.. } blocks.
The included files before each weppage have a linecount at
a maximum of 6214.
The errors result in classes not known and thus
declaration of classes extended by them fail. Also
function-declarations sometimes are missing. When using a
while(!function_exists("f"))
{ include("f.php"); }
this results in timeouts because of endless loops. Of
course _should_ happen, because the constants mentioned
above are all correctly set.
The errors occur not fully predictabel, and normally
disappear when reloading the webpage.
In the apache-error-log appaer the following lines,
although I'm not sure if they are related to the problem:
[Fri Jul 20 16:01:34 2001] [alert] (14)Bad address:
FastCGI: openf() of fcgi_dynamic_mbox "(null)" failed
[Fri Jul 20 16:01:52 2001] [notice] child pid 13112 exit
signal Segmentation fault (11)
Any suggestions? Or is this project just too large for
PHP4?
./configure --with-apxs=/usr/sbin/apxs --with-gd
--with-curl=/tmp/curl-7.8 --with-oci8=/opt/oracle/OraHome1
--with-gettext=/usr/share --enable-sigchild
--with-dom=/usr/local/lib/
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12289&edit=1