php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11547 Functions can be redefined within classes
Submitted: 2001-06-18 23:23 UTC Modified: 2001-06-19 10:24 UTC
From: btanner at home dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.5 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: btanner at home dot com
New email:
PHP Version: OS:

 

 [2001-06-18 23:23 UTC] btanner at home dot com
PHP throws me an error if I redefine a function within my code.  However, within a class, I can redefine a function as many times as I please, and PHP is more than happy to execute my code.

Is this expected behaviour?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-19 10:15 UTC] kalowsky@php.net
yes it's expected behavior... at least according to Jani
 [2001-06-19 10:24 UTC] kalowsky@php.net
i should correctly quote Jani... he said he believes it's normal.  Sorry about the confusion.
 [2003-04-03 16:44 UTC] patrice dot ferlet at wanadoo dot fr
Same error with PHP 4.3.1. 
Last version (on mandrake 9.0) worked, but not with new mandrake 
(9.1) with php 4.3.1 
Thanks
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 01:01:30 2025 UTC