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