bug78986.phpt 434 B

123456789101112131415161718192021222324252627282930
  1. --TEST--
  2. Bug #78986: Opcache segfaults when inheriting ctor from immutable into mutable class
  3. --EXTENSIONS--
  4. opcache
  5. --FILE--
  6. <?php
  7. define('TEST_TEST', 1);
  8. class TestClass2 {
  9. function __construct() {}
  10. }
  11. class TestClass extends TestClass2 {
  12. var $test = [
  13. TEST_TEST => 'test'
  14. ];
  15. }
  16. var_dump(new TestClass());
  17. ?>
  18. --EXPECT--
  19. object(TestClass)#1 (1) {
  20. ["test"]=>
  21. array(1) {
  22. [1]=>
  23. string(4) "test"
  24. }
  25. }