|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-11 10:36 UTC] tony2001@php.net
[2005-03-20 18:13 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 20:00:01 2025 UTC |
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)