diff options
| author | foobar <sniper@php.net> | 2005-11-01 14:36:37 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2005-11-01 14:36:37 +0000 |
| commit | f803888510e225bf16eb9b8dc1627da8b5addf73 (patch) | |
| tree | 163313a3ccb95386ac60d9778fa445862446cc9f | |
| parent | fbc6470cb6479f7ebabd693cf82303fa2339f197 (diff) | |
| download | php-git-f803888510e225bf16eb9b8dc1627da8b5addf73.tar.gz | |
MFH: Hiding bugs is not purpose of the regression tests.
| -rw-r--r-- | ext/iconv/tests/skipif.inc | 13 | ||||
| -rw-r--r-- | ext/xml/tests/bug32001.phpt | 4 |
2 files changed, 6 insertions, 11 deletions
diff --git a/ext/iconv/tests/skipif.inc b/ext/iconv/tests/skipif.inc index 631e6f8bf3..70d0067446 100644 --- a/ext/iconv/tests/skipif.inc +++ b/ext/iconv/tests/skipif.inc @@ -1,12 +1,5 @@ <?php -// This script prints "skip" if condition does not meet. - -// Do not dl load extension -//if (!extension_loaded("iconv") && ini_get("enable_dl")) { -// $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so"; -// @dl("iconv$dlext"); -//} -if (!function_exists("iconv")) { - die("skip iconv function not available\n"); +if (!extension_loaded("iconv")) { + die("skip iconv extension not available\n"); } -?>
\ No newline at end of file +?> diff --git a/ext/xml/tests/bug32001.phpt b/ext/xml/tests/bug32001.phpt index 8427f4c4d1..22f405ae53 100644 --- a/ext/xml/tests/bug32001.phpt +++ b/ext/xml/tests/bug32001.phpt @@ -2,7 +2,9 @@ Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect) --SKIPIF-- <?php - if (!function_exists('iconv')) print 'skip'; + if (!extension_loaded('iconv')) { + die ("skip iconv extension not available\n"); + } ?> --FILE-- <?php |
