{"action":"created","issue":{"url":"https://api.github.com/repos/krakjoe/uopz/issues/63","repository_url":"https://api.github.com/repos/krakjoe/uopz","labels_url":"https://api.github.com/repos/krakjoe/uopz/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/krakjoe/uopz/issues/63/comments","events_url":"https://api.github.com/repos/krakjoe/uopz/issues/63/events","html_url":"https://github.com/krakjoe/uopz/issues/63","id":253869540,"node_id":"MDU6SXNzdWUyNTM4Njk1NDA=","number":63,"title":"opcache do not update class constant after uopz_redefine","user":{"login":"Streamlet","id":355164,"node_id":"MDQ6VXNlcjM1NTE2NA==","avatar_url":"https://avatars2.githubusercontent.com/u/355164?v=4","gravatar_id":"","url":"https://api.github.com/users/Streamlet","html_url":"https://github.com/Streamlet","followers_url":"https://api.github.com/users/Streamlet/followers","following_url":"https://api.github.com/users/Streamlet/following{/other_user}","gists_url":"https://api.github.com/users/Streamlet/gists{/gist_id}","starred_url":"https://api.github.com/users/Streamlet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Streamlet/subscriptions","organizations_url":"https://api.github.com/users/Streamlet/orgs","repos_url":"https://api.github.com/users/Streamlet/repos","events_url":"https://api.github.com/users/Streamlet/events{/privacy}","received_events_url":"https://api.github.com/users/Streamlet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-30T03:42:40Z","updated_at":"2019-01-02T04:46:52Z","closed_at":"2018-12-16T16:26:04Z","author_association":"NONE","body":"see https://bugs.php.net/bug.php?id=74576\r\n\r\n\r\nDescription:\r\n------------\r\nI use uopz_redefine to redefine class constants\r\n(uopz called zend_declare_class_constant)\r\n\r\n\r\nwhen opcache is enabled, I cannot get the new class constant through Foo::BAR.\r\n\r\n\r\nTest script:\r\n---------------\r\n```\r\n<?php\r\n\r\nclass Foo\r\n{\r\n\tconst BAR = '123';\r\n}\r\n\r\nvar_dump(Foo::BAR);// A1: try to comment this\r\n\r\n(function () {\r\n\tvar_dump(Foo::BAR);\t// B1: try to comment this\r\n\tuopz_redefine('Foo', 'BAR', '456');\r\n\tvar_dump(Foo::BAR);\t// B2: compare\r\n})();\r\n\r\n(function () {\r\n\tvar_dump(Foo::BAR);\t// new scope\r\n})();\r\n\r\nvar_dump((new ReflectionClass('Foo'))->getConstant('BAR'));\t// also OK\r\n\r\nvar_dump(Foo::BAR);\t// A2: compare\r\n```\r\n\r\nExpected result:\r\n----------------\r\n```\r\n'123'\r\n'123'\r\n'456'\r\n'456'\r\n'456'\r\n'456'\r\n```\r\nActual result:\r\n--------------\r\n```\r\n'123'\r\n'123'\r\n'123' (it is '456' if line B1 is commented)\r\n'456'\r\n'456'\r\n'123' (it is '456' if line A1 is commented)\r\n```"},"comment":{"url":"https://api.github.com/repos/krakjoe/uopz/issues/comments/450786666","html_url":"https://github.com/krakjoe/uopz/issues/63#issuecomment-450786666","issue_url":"https://api.github.com/repos/krakjoe/uopz/issues/63","id":450786666,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDc4NjY2Ng==","user":{"login":"krakjoe","id":2236138,"node_id":"MDQ6VXNlcjIyMzYxMzg=","avatar_url":"https://avatars2.githubusercontent.com/u/2236138?v=4","gravatar_id":"","url":"https://api.github.com/users/krakjoe","html_url":"https://github.com/krakjoe","followers_url":"https://api.github.com/users/krakjoe/followers","following_url":"https://api.github.com/users/krakjoe/following{/other_user}","gists_url":"https://api.github.com/users/krakjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/krakjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krakjoe/subscriptions","organizations_url":"https://api.github.com/users/krakjoe/orgs","repos_url":"https://api.github.com/users/krakjoe/repos","events_url":"https://api.github.com/users/krakjoe/events{/privacy}","received_events_url":"https://api.github.com/users/krakjoe/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T04:46:52Z","updated_at":"2019-01-02T04:46:52Z","author_association":"OWNER","body":"This will be fixed in the next release, sorry I forgot to tag ..."}}
{"actor":{"display_login":"krakjoe"}}