summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-05-26 18:08:32 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-05-26 18:08:32 +0000
commit9a5f0ef61a2db04d1c802c4a86999c5769aa1552 (patch)
treee325974f8a2166fb7c2cc138db276eeaf243203c
parentdf0d52bd7882c0bdf05c1578ba2683c577859005 (diff)
downloadphp-git-9a5f0ef61a2db04d1c802c4a86999c5769aa1552.tar.gz
Fixed test failure due to incorrect library check.
-rw-r--r--ext/xslt/tests/xslt_backend_info.phpt14
1 files changed, 6 insertions, 8 deletions
diff --git a/ext/xslt/tests/xslt_backend_info.phpt b/ext/xslt/tests/xslt_backend_info.phpt
index 1fd849c48f..edc259e240 100644
--- a/ext/xslt/tests/xslt_backend_info.phpt
+++ b/ext/xslt/tests/xslt_backend_info.phpt
@@ -22,23 +22,21 @@ if("No information available." == xslt_backend_info()) {
* not be available depending on what has been linked into the backend.
*/
-$tmp = explode("\n", xslt_backend_info());
-$info = array();
-foreach($tmp AS $line) {
- list($key, $value) = explode(": ", $line, 2);
- $info[strtolower($key)] = $value;
+$libs = '';
+if (preg_match('!Libs: ([^:]+)i!', xslt_backend_info(), $m)) {
+ $libs = $m[1];
}
-if(FALSE === strstr($info['libs'], " -lexpat")) {
+if(FALSE === strstr($libs, " -lexpat")) {
die("You're configuration is missing expat, which conflicts with sanity.");
}
-if(FALSE === strstr($info['libs'], " -liconv")) {
+if(FALSE === strstr($libs, " -liconv")) {
echo("You don't have iconv support\n");
} else {
echo("You have iconv support\n");
}
-if(FALSE === strstr($info['libs'], " -ljs")) {
+if(FALSE === strstr($libs, " -ljs")) {
echo("You don't have JavaScript support\n");
} else {
echo("You have JavaScript support\n");