|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-03-29 13:46 UTC] cmb@php.net
-Status: Open
+Status: Wont fix
-Package: PHP Language Specification
+Package: Unknown/Other Function
-Assigned To:
+Assigned To: cmb
[2018-03-29 13:46 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 02:00:01 2025 UTC |
Description: ------------ This bug only affects PHP versions 5.6.x. Test script: --------------- <?php class Event { public function setTime(\DateTime $time) { var_dump($time); } } function set_event_time(\DateTime $time) { var_dump($time); } function e_handler() { restore_error_handler(); } set_error_handler('e_handler'); $e = new Event(); $e->setTime(false); set_event_time(false); Expected result: ---------------- Fatal error: Uncaught TypeError: Argument 1 passed to Event::setTime() must be an instance of DateTime, boolean given, called in %s on line %d and defined in %s:%d Actual result: -------------- bool(false) bool(false)