Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 654 Bytes

README.md

File metadata and controls

42 lines (34 loc) · 654 Bytes

php_test_extension

php test extension to reproduce bug 78747

FIXED

build:

phpize && ./configure && make && make install

add to php.ini:

extension=testextension.so

or for docker:

docker-php-ext-enable testextension

Test

OpCache corrupts class static method result in custom extension when method name matches with some php function. Without OpCache or with unique method name all works fine.

php -c php.ini test.php

or

docker build . -t php_test_extension
docker run php_test_extension

Expected result:

Test

Actual result with OpCache:

NULL