Mantis - Quercus
Viewing Issue Advanced Details
3830 minor always 12-26-09 16:23 12-26-09 16:23
domdorn  
 
normal  
new 4.0.2  
open  
none    
none  
0003830: Quercus Parser too "nice": Type Hints & Default values
the code

class someClass {
...
    public static function graphicImage(String $id, boolean $rendered, String $libraryName, String $resourceName, $width = 0, $height = 0, String $alttext = "", String $class="", String $style="")
{....}
}
does work without problems in quercus, but executed with native php the following error is thrown:
[27-Dec-2009 00:18:50] PHP Fatal error: Default value for parameters with a class type hint can only be NULL in /path/to/file.php on line 276

There are no notes attached to this issue.