1--TEST-- 2dl() fails when trying to load full path to module 3--CREDITS-- 4Tom Van Herreweghe <tom@theanalogguy.be> 5User Group: PHP-WVL & PHPGent #PHPTestFest 6--SKIPIF-- 7<?php 8$enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm'); 9if (!in_array(php_sapi_name(), $enabled_sapi)) { 10 die('skip dl() is not enabled for ' . php_sapi_name()); 11} 12if (getenv('SKIP_ASAN')) die('xleak dl() crashes LSan'); 13?> 14--INI-- 15enable_dl=1 16--FILE-- 17<?php 18var_dump(dl('/path/to/module')); 19?> 20--EXPECTF-- 21 22Warning: dl(): Temporary module name should contain only filename in %s on line %d 23bool(false) 24