mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
added sapi check for dl() test
This commit is contained in:
parent
d3a4af4db8
commit
135f81c5ae
@ -1,5 +1,12 @@
|
||||
--TEST--
|
||||
dl() filename length checks (CVE-2007-4887)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm');
|
||||
if (!in_array(php_sapi_name(), $enabled_sapi)) {
|
||||
die('skip dl() is not enabled for ' . php_sapi_name());
|
||||
}
|
||||
?>
|
||||
--INI--
|
||||
enable_dl=1
|
||||
--FILE--
|
||||
|
Loading…
Reference in New Issue
Block a user