- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Description
Description
The following code:
<?phpfunction &test():int {$x =0;try {return$x; }finally {$x ='test'; }}$x = &test();var_dump($x);
Resulted in this output:
string(4) "test"
But I expected this output instead:
Fatal error: Uncaught TypeError: test(): Return value must be of type int, string returned
PHP Version
PHP 7.0.2+
Operating System
No response