added sapi check for dl() test

This commit is contained in:
Anatol Belski 2013-07-16 15:42:38 +02:00
parent d3a4af4db8
commit 135f81c5ae

View File

@ -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--