Skip to content

Commit 12aec9e

Browse files
committed
Merge branch 'PHP-5.5'
* PHP-5.5: added sapi check for dl() test
2 parents dc489c3 + f37ac6f commit 12aec9e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

+7
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)