diff options
| author | foobar <sniper@php.net> | 2005-11-01 14:36:13 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2005-11-01 14:36:13 +0000 |
| commit | bd7f131a41f84784e6b70156304986df8ef50f1c (patch) | |
| tree | 0da18ab960b76aed581400d6d367de45373908cb | |
| parent | 5d671dd4b26c3c13b78807a50abf5fe4482888ae (diff) | |
| download | php-git-bd7f131a41f84784e6b70156304986df8ef50f1c.tar.gz | |
- Hiding bugs is not the 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 |
