ID: 37988 User updated by: ole_v2 at dsl dot pipex dot com Reported By: ole_v2 at dsl dot pipex dot com Status: Bogus Bug Type: *Compile Issues Operating System: Ubunut Linux Server PHP Version: 5.1.4 New Comment:
Yeah, sorry just tested this on 5.1.4 and I get the expected result. Previous Comments: ------------------------------------------------------------------------ [2006-07-02 16:19:24] [EMAIL PROTECTED] Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. ------------------------------------------------------------------------ [2006-07-02 15:38:30] ole_v2 at dsl dot pipex dot com Description: ------------ I am actually generating this error with PHP 5.1.2 but I can't see that this bug has been fixed in any changelog yet. What happens is that the code below produces no output whatsoever. Reproduce code: --------------- <?php // if you output something here, before function defination, the // error is triggered correctly //echo 'example of some output that would prevent bug'; function hinted(int $monkey) { echo 'there are ',$monkey,' monkeys'; // note the commas } hinted(5); Expected result: ---------------- Fatal error: Argument 1 passed to hinted() must be an object of class int Actual result: -------------- {{ No output }} ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37988&edit=1
