Bug #77324 [Opn->Csd]: date_parse_from_format() changed meaning of zone value in PHP 7.2 -> BC break

From: Date: Thu, 20 Dec 2018 13:40:57 +0000
Subject: Bug #77324 [Opn->Csd]: date_parse_from_format() changed meaning of zone value in PHP 7.2 -> BC break
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218527@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77324&edit=1 ID: 77324 User updated by: me at vasekpurchart dot cz Reported by: me at vasekpurchart dot cz Summary: date_parse_from_format() changed meaning of zone value in PHP 7.2 -> BC break -Status: Open +Status: Closed Type: Bug Package: Reflection related PHP Version: 7.3.0 Block user comment: N Private report: N New Comment: Bug system + browser overwrote title, so closing to avoid confusion and will resubmit. Previous Comments: ------------------------------------------------------------------------ [2018-12-20 13:38:38] me at vasekpurchart dot cz Description: ------------ The property ReflectionClassConstant::class is documented as: http://php.net/manual/en/class.reflectionclassconstant.php#reflectionclassconstant.props > Name of the class where the class constant is defined. When using a hierarchy of classes and having constants defined on multiple levels this does return the child class where the constant is not defined. Although using ReflectionClassConstant::getDeclaringClass() returns the correct one. In fact these two should point to the same class. Test script: --------------- https://3v4l.org/f0WZf Expected result: ---------------- ReflectionClassConstant::class should return the class where the constant is really declared as stated in the docs. This would also mean, that $constant->class === $constant->getDeclaringClass()->getName() is true. This would also bring the constants in line with methods and properties, where this works correctly (as can be seen for example here https://3v4l.org/rqUF2). ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77324&edit=1

« previous php.bugs (#218527) next »