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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC