|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-27 15:53 UTC] tony2001@php.net
[2004-12-04 14:37 UTC] jan dot gaensler at gmx dot de
[2005-01-13 01:13 UTC] tony2001@php.net
[2005-03-22 14:39 UTC] jan dot gaensler at gmx dot de
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 21:00:02 2025 UTC |
Description: ------------ After upgrading PHP 4.3.4 to 4.3.9 on our production system we experienced a random problem on our servers using 'require_once'. In about 1% of the cases calling 'require_once' on a file defining a class produced a fatal error like this one: [Tue Oct 19 18:04:07 2004] [error] PHP Fatal error: Cannot redeclare class globalresources in /srv/www/htdocs/lx/includes/initialisator.inc on line 111 The scripts run just fine using PHP 4.3.4 but any more recent version of PHP4 produces the above problem (I actually tried them all: 4.3.5/6/7/8/9). More info on the server setup as this might help: Dell PE2650, Dual P4Xeon, 2GB running Suse Linux 9.0, Apache 1.3.31 and PHP as a module (the apache servers are using multiple VirtualHosts each listening on a different port) PHP was compiled using the following options: './configure' '--with-apxs' '--enable-track-vars=yes' '--with-mysql' '--enable-sysvshm' '--enable-sysvsem' '--enable-url-fopen-wrapper=yes' '--enable-sockets' '--enable-force-cgi-redirect' '--enable-trans-sid' '--with-xml' '--with-gd' '--with-ttf' '--with-curl' '--with-zlib-dir' '--with-mime-magic' Reproduce code: --------------- As stated above this works at least 99% of the time: global $resources; //line 110 require_once('lib/GlobalResources.php'); //line 111 $resources = new GlobalResources(); //line 112 (These three lines are taken from the above mentioned include that is itself included by all scripts creating a complete HTML page) Expected result: ---------------- N/A Actual result: -------------- N/A