diff options
| author | Anatol Belski <ab@php.net> | 2013-07-16 15:42:38 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2013-07-16 15:42:38 +0200 |
| commit | 135f81c5aede4078d0f4f740f01cdf013e805ed4 (patch) | |
| tree | 9b68875dd683c0023613af7a40e3ee42359e3613 /ext | |
| parent | d3a4af4db8d44f3d4a353589857c3c016ba8beda (diff) | |
| download | php-git-135f81c5aede4078d0f4f740f01cdf013e805ed4.tar.gz | |
added sapi check for dl() test
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/tests/general_functions/dl-cve-2007-4887.phpt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt b/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt index e242d45dcb..c53b5153f8 100644 --- a/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt +++ b/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt @@ -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-- |
