iliaa Wed May 26 14:08:32 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/xslt/tests xslt_backend_info.phpt
Log:
Fixed test failure due to incorrect library check.
http://cvs.php.net/diff.php/php-src/ext/xslt/tests/xslt_backend_info.phpt?r1=1.2&r2=1.2.2.1&ty=u
Index: php-src/ext/xslt/tests/xslt_backend_info.phpt
diff -u php-src/ext/xslt/tests/xslt_backend_info.phpt:1.2
php-src/ext/xslt/tests/xslt_backend_info.phpt:1.2.2.1
--- php-src/ext/xslt/tests/xslt_backend_info.phpt:1.2 Sun Nov 10 15:01:55 2002
+++ php-src/ext/xslt/tests/xslt_backend_info.phpt Wed May 26 14:08:32 2004
@@ -22,23 +22,21 @@
* 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");
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php