Bug #77324 [NEW]: date_parse_from_format() changed meaning of zone value in PHP 7.2 -> BC break
From: me at vasekpurchart dot cz
Operating system:
PHP version: 7.3.0
Package: Reflection related
Bug Type: Bug
Bug description:date_parse_from_format() changed meaning of zone value in PHP 7.2 -> BC break
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 bug report at https://bugs.php.net/bug.php?id=77324&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77324&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77324&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77324&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77324&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77324&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77324&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77324&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77324&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77324&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77324&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77324&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77324&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77324&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77324&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77324&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77324&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77324&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77324&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77324&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77324&r=mysqlcfg
Thread (3 messages)
- me at vasekpurchart dot cz