Commit: 135f81c5aede4078d0f4f740f01cdf013e805ed4 Author: Anatol Belski <a...@php.net> Tue, 16 Jul 2013 15:42:38 +0200 Parents: d3a4af4db8d44f3d4a353589857c3c016ba8beda Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=135f81c5aede4078d0f4f740f01cdf013e805ed4 Log: added sapi check for dl() test Changed paths: M ext/standard/tests/general_functions/dl-cve-2007-4887.phpt Diff: 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 e242d45..c53b515 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-- -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php