xref: /php-src/ext/opcache/tests/gh13712.phpt (revision e7462bff)
1--TEST--
2GH-13712 (Segmentation fault for enabled observers when calling trait method of internal trait when opcache is loaded)
3--EXTENSIONS--
4opcache
5zend_test
6--INI--
7zend_test.observer.enabled=1
8zend_test.observer.show_output=1
9opcache.enable=1
10opcache.enable_cli=1
11--FILE--
12<?php
13class Foo {
14	use _ZendTestTrait;
15}
16
17$f = new Foo();
18var_dump($f->testMethod());
19?>
20--EXPECTF--
21<!-- init '%s' -->
22<!-- init Foo::testMethod() -->
23<!-- init var_dump() -->
24bool(true)
25