php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32273 Incorrectly reports function as being redeclared
Submitted: 2005-03-11 04:31 UTC Modified: 2005-03-20 18:13 UTC
From: zedar at zedar dot org Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5CVS-2005-03-11 (dev) OS: Linux 2.4.26
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zedar at zedar dot org
New email:
PHP Version: OS:

 

 [2005-03-11 04:31 UTC] zedar at zedar dot org
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) 
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-11 10:36 UTC] tony2001@php.net
I can't reproduce it. Please provide more info about it.
A *short* but complete reproduce script + gdb backtrace would help much.
 [2005-03-20 18:13 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 18:01:31 2024 UTC