1--TEST--
2dl(): Loaded extensions properly unregister their ini settings
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}
11
12if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
13    $loaded = dl('php_dl_test.dll');
14} else {
15    $loaded = dl('dl_test.so');
16}
17
18var_dump($loaded);
19
20dl_test_test1();
21var_dump(dl_test_test2("World!"));
22
23var_dump(ini_get("dl_test.long"));
24var_dump(ini_get("dl_test.string"));
25
26echo "OK\n";
27--EXPECT--
28bool(true)
29The extension dl_test is loaded and working!
30string(12) "Hello World!"
31string(1) "0"
32string(5) "hello"
33OK
34