From:             steve at przepiora dot org
Operating system: windows xp
PHP version:      5.0.0RC1
PHP Bug Type:     Zend Engine 2 problem
Bug description:  class type hints  ambiguity

Description:
------------
When using class type hints with a string a runtime error occurs. 

Reproduce code:
---------------
<?php
function foo(string $bar){
    echo $bar;
}

foo("baz");
?>

Expected result:
----------------
The printout of "baz"



Actual result:
--------------
Fatal error: Argument 1 must be an object of class string in c:\program
files\apache group\Apache\htdocs\index.php on line 2

-- 
Edit bug report at http://bugs.php.net/?id=28094&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28094&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28094&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28094&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28094&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28094&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28094&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28094&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28094&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28094&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28094&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28094&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28094&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28094&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28094&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28094&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28094&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28094&r=float

Reply via email to