Skip to content

Commit 135f81c

Browse files
committed
added sapi check for dl() test
1 parent d3a4af4 commit 135f81c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ext/standard/tests/general_functions/dl-cve-2007-4887.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
--TEST--
22
dl() filename length checks (CVE-2007-4887)
3+
--SKIPIF--
4+
<?php
5+
$enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm');
6+
if (!in_array(php_sapi_name(), $enabled_sapi)) {
7+
die('skip dl() is not enabled for ' . php_sapi_name());
8+
}
9+
?>
310
--INI--
411
enable_dl=1
512
--FILE--

0 commit comments

Comments
 (0)