Bug #78376 [Asn->Csd]: Incorrect preloading of constant static properties
| From: | dmitry@php.net | Date: | Mon, 05 Aug 2019 19:56:32 +0000 |
| Subject: | Bug #78376 [Asn->Csd]: Incorrect preloading of constant static properties | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222095@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78376&edit=1
ID: 78376
Updated by: dmitry@php.net
Reported by: dmitry@php.net
Summary: Incorrect preloading of constant static properties
-Status: Assigned
+Status: Closed
Type: Bug
Package: opcache
Operating System: *
PHP Version: 7.4Git-2019-08-05 (Git)
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=3fc0e2bb80734c052dc1e0c34f93a3a7f4086557
Log: Fixed bug #78376 (Incorrect preloading of constant static properties)
Previous Comments:
------------------------------------------------------------------------
[2019-08-05 19:50:33] dmitry@php.net
Description:
------------
Default values of constant static properties may be preloaded incorrectly.
Test script:
---------------
preload.inc
-----------
<?php
const CNST = 'aaaa';
class A {
public static $a = CNST;
}
$a = \A::$a;
?>
bug.php
-------
<?php
var_dump(\A::$a);
?>
Expected result:
----------------
string(4) "aaaa"
Actual result:
--------------
UNKNOWN:0
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78376&edit=1