ID: 30493 Updated by: [EMAIL PROTECTED] Reported By: jan dot gaensler at gmx dot de -Status: Open +Status: Feedback Bug Type: Zend Engine 2 problem Operating System: Linux (kernel 2.4) PHP Version: 4.3.9 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2004-10-20 12:43:38] jan dot gaensler at gmx dot de 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30493&edit=1