|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-06-25 08:39 UTC] laruence@php.net
-Status: Open
+Status: Not a bug
[2015-06-25 08:39 UTC] laruence@php.net
[2015-06-25 09:00 UTC] cameron dot adam+php at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
Description: ------------ See code. On alpha 1 this returns "EngineException caught". On alpha 2 it returns: Fatal error: Uncaught TypeError: Argument 1 passed to takesInt() must be of the type integer, string given I suspect it's something to do with the new Throwable support, at a guess. This is the first bug I've raised, so lemme know if I've done it wrong,or you need more info. Cheers. Test script: --------------- try { function takesInt(int $x){ return true; } takesInt('not an int'); } catch(EngineException $e) { echo 'EngineException caught<br>'; }