From:             ole_v2 at dsl dot pipex dot com
Operating system: Ubunut Linux Server
PHP version:      5.1.4
PHP Bug Type:     *Compile Issues
Bug description:  No output at all when type hint used incorrectly with 
primitive

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 bug report at http://bugs.php.net/?id=37988&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37988&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37988&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37988&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37988&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37988&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37988&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37988&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37988&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37988&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37988&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37988&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37988&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37988&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37988&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37988&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37988&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37988&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37988&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37988&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37988&r=mysqlcfg

Reply via email to