|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-02 16:19 UTC] bjori@php.net
[2006-07-02 17:09 UTC] ole_v2 at dsl dot pipex dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 17:00:01 2025 UTC |
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 }}