Bug #17747 Updated: PHP Fatal error: Cannot redeclare function_name()

From: Date: Thu, 13 Jun 2002 19:08:00 +0000
Subject: Bug #17747 Updated: PHP Fatal error: Cannot redeclare function_name()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10374@lists.php.net to get a copy of this message
ID: 17747 Updated by: sniper@php.net Reported By: lukemiller@mac.com -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: RH 7.2 PHP Version: 4.1.2 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Please try this with PHP 4.2.1. Previous Comments: ------------------------------------------------------------------------ [2002-06-13 12:59:28] lukemiller@mac.com This is similar to <a href="http://bugs.php.net/bug.php?id= 17720">this bug report</a>, but I'm using PHP 4.12. I have an include file called "func-inc.php" with a function declared like so... function dbq($str) { print($str); } ...and a main_file.php like so ... require_once("func-inc.php"); dbq("print this"); I have error reporting off on my server, so I don't get a message when running main_file.php, but intermittently (I'd say 10% of the time it does NOT work) the script will just hang and never return anything. When I check the Apache error_log file it shows the error "PHP Fatal error: Cannot redeclare dbq()" even though it's only been declared once in the include file. The next line always seems to be some variation of: "[notice] child pid 996 exit signal Segmentation fault (11)" My PHP config line is: './configure' '--with-mysql' '--with-gd' '--with-jpeg-dir' '--with-apache=../apache_1.3.24' I've never had this problem running on Mac OS X (PHP 4.12) with the config line:  '/SourceCache/apache_mod_php/apache_mod_php-7/php/ configure' '--prefix=/usr' '--mandir=/usr/share/man' '-- infodir=/usr/share/info' '--with-apxs' Hope there's an answer for this. Luke ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17747&edit=1

« previous php.bugs (#10374) next »