Re: RE: [PHP] Function overloading bug?

From: Date: Tue, 19 Sep 2000 01:53:59 +0000
Subject: Re: RE: [PHP] Function overloading bug?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-33458@lists.php.net to get a copy of this message
The 2nd writeit() makes a call to $this->writeit() and evaluates itself in the context of itself, instead of within the context of the class. ie, it tries to call itself instead of evaluating against the class, finding the "2 parameter method," and using it. This then generates a warning about an unused $outText and calls itself recursively, and infinitely.
yup, this is expected behaviour, php does not support method overloading, you can emulate this behaviour though, it´s unfortunately not supported directly no bug andré -- · André Langhorst · t: +49 571 3201801 · · waldschrott@php.net · m: +49 173 9558736 · · PHP Quality Assurance · http://qa.php.net ·

« previous php.dev (#33458) next »