summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2009-03-27 02:35:10 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2009-03-27 02:35:10 +0000
commitf5e4506988f15dadb6b3117b6e94966d6bd5135f (patch)
treee0e0a7e31765524f6d5c401743d753e9766292c4
parent9f5de736813b3a77f0ac8a80662c398ac3ab61ea (diff)
downloadphp-git-f5e4506988f15dadb6b3117b6e94966d6bd5135f.tar.gz
fix skip-if
-rw-r--r--ext/standard/tests/filters/filter_errors.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/tests/filters/filter_errors.inc b/ext/standard/tests/filters/filter_errors.inc
index a03e272b42..7345df383c 100644
--- a/ext/standard/tests/filters/filter_errors.inc
+++ b/ext/standard/tests/filters/filter_errors.inc
@@ -1,6 +1,9 @@
<?php
function filter_errors_skipif($needle) {
+ if (!function_exists('fnmatch')) {
+ die('skip fnmatch() not available');
+ }
$filters = stream_get_filters();
foreach($filters as $filter) {
if (fnmatch($filter, $needle)) return;