|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-07-04 07:12 UTC] pjunk at gmx dot de
-Package: *General Issues
+Package: Date/time related
[2017-07-04 07:12 UTC] pjunk at gmx dot de
[2017-07-04 11:17 UTC] anon at example dot com
[2017-07-04 12:09 UTC] pjunk at gmx dot de
[2017-07-06 11:20 UTC] jhdxr@php.net
-Status: Open
+Status: Assigned
-PHP Version: 7.1.6
+PHP Version: 7.0.14
-Assigned To:
+Assigned To: jhdxr
[2017-07-10 05:54 UTC] krakjoe@php.net
[2017-07-10 05:54 UTC] krakjoe@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Description: ------------ property_exists from any unknown DateInterval property have a incorrect result and throw a notice. Test script: --------------- $interval = new DateInterval('P2D'); var_dump(property_exists($interval,'abcde')); Expected result: ---------------- bool(false) Actual result: -------------- Notice: Undefined property: DateInterval::$abcde in ... on line 3 bool(true) Workaround ---------- //use get_class() $interval = new DateInterval('P2D'); var_dump(property_exists(get_class($interval),'abcde'));