Re: [PHP-DEV] RE: [PHP] Function overloading bug? From: André Langhorst (waldschrott <email protected>)
Date: 09/18/00

>> 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 <email protected>   · m: +49 173 9558736 ·
· PHP Quality Assurance · http://qa.php.net  ·

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>