Bug #69933 [NEW]: Late-static binding seems not working for static properties
From: maf dot michal at gmail dot com
Operating system: unix
PHP version: 7.0Git-2015-06-25 (snap)
Package: Class/Object related
Bug Type: Bug
Bug description:Late-static binding seems not working for static properties
Description:
------------
As I was running tests of one of my PHP libs using travis-ci I
encountered some issue with late static binding.
It seems to be not possible to override static property and access
proper values with static:: keyword
https://travis-ci.org/majkel89/tcpdf-warper/jobs/68057687
On the other hand the problem might be with reflection API that cannot
override static properties any more.
Non the less I provided full source code as long with tests scripts and
results sets.
PS: Would it be wiser to replace static property storing default
arguments with inline array in getArguments both for performance and
memory improvements ? This way the problem would be fixed.
Test script:
---------------
https://github.com/majkel89/tcpdf-warper/blob/master/tests/org/majkel/tcpdfwarper/AbstractOpTest.php#L141
Expected result:
----------------
https://travis-ci.org/majkel89/tcpdf-warper/jobs/68057674
Actual result:
--------------
https://travis-ci.org/majkel89/tcpdf-warper/jobs/68057687
--
Edit bug report at https://bugs.php.net/bug.php?id=69933&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69933&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69933&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69933&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69933&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69933&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69933&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69933&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69933&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69933&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69933&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69933&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69933&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69933&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69933&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69933&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69933&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69933&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69933&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69933&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69933&r=mysqlcfg
Thread (8 messages)
- maf dot michal at gmail dot com