On Sun, 2011-07-10 at 19:41 +0200, Nikita Popov wrote: > E.g. Writing > > class Evaluator { > public function eval() { > > } > } > > Does in no way create an ambiguity with the eval language construct PHP > implements.
For a method this is correct. But for a normal function this is different: <?php function eval() { } eval(); // will call the language construct ?> And i consider it "strange" to allow different names for functions and methods. And yes I'm aware that $eval = 'eval'; $eval(); would call the function. I fear consistency issues. johannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php