1--TEST--
2dl() / observer segfault
3--EXTENSIONS--
4zend_test
5--SKIPIF--
6<?php include dirname(__DIR__, 3) . "/dl_test/tests/skip.inc"; ?>
7--INI--
8zend_test.observer.enabled=1
9zend_test.observer.observe_functions=1
10zend_test.observer.show_output=1
11--FILE--
12<?php
13
14if (PHP_OS_FAMILY === 'Windows') {
15    $loaded = dl('php_dl_test.dll');
16} else {
17    $loaded = dl('dl_test.so');
18}
19
20var_dump(dl_test_test2("World!"));
21
22$test = new DlTest();
23var_dump($test->test("World!"));
24?>
25--EXPECTF--
26<!-- init '%sgh17211.php' -->
27<!-- init dl() -->
28<dl>
29</dl>
30<!-- init dl_test_test2() -->
31<dl_test_test2>
32</dl_test_test2>
33<!-- init var_dump() -->
34<var_dump>
35string(12) "Hello World!"
36</var_dump>
37<!-- init DlTest::test() -->
38<DlTest::test>
39</DlTest::test>
40<var_dump>
41string(12) "Hello World!"
42</var_dump>
43