#32273 [NEW]: Incorrectly reports function as being redeclared
| From: | zedar at zedar dot org | Date: | Fri, 11 Mar 2005 03:31:45 +0000 |
| Subject: | #32273 [NEW]: Incorrectly reports function as being redeclared | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-75228@lists.php.net to get a copy of this message | ||
From: zedar at zedar dot org
Operating system: Linux 2.4.26
PHP version: 5CVS-2005-03-11 (dev)
PHP Bug Type: Unknown/Other Function
Bug description: Incorrectly reports function as being redeclared
Description:
------------
PHP complains that the __autoload function is being
redeclared despite the fact that it is only in one file
that is auto-prepended and not otherwise included
anywhere.
Reproduce code:
---------------
Lines 15-17 of the file are as follows: (1-14 are comments)
function __autoload($class_name) {
require_once "class/".$class_name . '.php';
}
Expected result:
----------------
Not much, just that the files are included as required.
Actual result:
--------------
The following shows up in apaches error log:
[Fri Mar 11 13:14:12 2005] [error] PHP Fatal error:
Cannot redeclare __autoload() (previously declared
in /www2/wame.net/system/include/wame/header.php:15)
in /www2/wame.net/system/include/wame/header.php on line
17
[Fri Mar 11 13:14:12 2005] [notice] child pid 11721 exit
signal Segmentation fault (11)
--
Edit bug report at http://bugs.php.net/?id=32273&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32273&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32273&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32273&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32273&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32273&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32273&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32273&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32273&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32273&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32273&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32273&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32273&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32273&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32273&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32273&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32273&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32273&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32273&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32273&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32273&r=mysqlcfg