Re: Bug in namespaces and type hints

From: Date: Tue, 11 Nov 2008 13:36:42 +0000
Subject: Re: Bug in namespaces and type hints
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-41853@lists.php.net to get a copy of this message
Hi,
recent change in namespace code introduced new bug, please consider: <?php namespace tests; class t1 { function abc(\stdClass $std = null) { } } ?> triggers "Fatal error: Default value for parameters with a class type hint can only be NULL" where the same w/o namespace definition works as expected (no error).
http://sitten-polizei.de/php/zend-constants-lookup.diff might be a possible fix for this. - Timm

« previous php.internals (#41853) next »