#11547 [Com]: Functions can be redefined within classes

From: Date: Thu, 03 Apr 2003 22:44:58 +0000
Subject: #11547 [Com]: Functions can be redefined within classes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37096@lists.php.net to get a copy of this message
 ID:               11547
 Comment by:       patrice dot ferlet at wanadoo dot fr
 Reported By:      btanner at home dot com
 Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: Windows 2000
 PHP Version:      4.0.5
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2001-06-19 10:24:04] kalowsky@php.net

i should correctly quote Jani... he said he believes it's normal. 
Sorry about the confusion.

------------------------------------------------------------------------

[2001-06-19 10:15:22] kalowsky@php.net

yes it's expected behavior... at least according to Jani

------------------------------------------------------------------------

[2001-06-18 23:23:59] 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?

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=11547&edit=1



Thread (1 message)

  • patrice dot ferlet at wanadoo dot fr
  • Unknown Message
    • patrice dot ferlet at wanadoo dot fr
« previous php.bugs (#37096) next »