1--TEST--
2dl(): Loaded extensions support ini_set()
3--SKIPIF--
4<?php include dirname(__DIR__, 3) . "/dl_test/tests/skip.inc"; ?>
5--FILE--
6<?php
7
8if (extension_loaded('dl_test')) {
9    exit('Error: dl_test is already loaded');
10}
11if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
12    $loaded = dl('php_dl_test.dll');
13} else {
14    $loaded = dl('dl_test.so');
15}
16
17var_dump($loaded);
18
19dl_test_test1();
20var_dump(dl_test_test2("World!"));
21
22ini_set("dl_test.long", "1");
23ini_set("dl_test.string", "world");
24
25var_dump(ini_get("dl_test.long"));
26var_dump(ini_get("dl_test.string"));
27
28echo "OK\n";
29--EXPECT--
30bool(true)
31The extension dl_test is loaded and working!
32string(12) "Hello World!"
33string(1) "1"
34string(5) "world"
35OK
36