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