📄 xslt_backend_info.phpt
字号:
--TEST--xslt_backend_info: examples for detection of backend features--SKIPIF--<?php // vim600: noet sw=4 ts=4 syn=php ai si tw=78include("skipif.inc");if(!function_exists('xslt_backend_info')) { die("skip\n");}// Yeah-right-but-stillif(xslt_backend_name() != "Sablotron") { die("skip This test currently only supports Sablotron");}if("No information available." == xslt_backend_info()) { die("skip Information could not be detected.");}?>--FILE--<?php/* * Test xslt_backend_info: basically this test is provided as a how-to for * x-platform packages, which rely on certain features which may or may * not be available depending on what has been linked into the backend. */$libs = '';if (preg_match('!Libs: ([^:]+)i!', xslt_backend_info(), $m)) { $libs = $m[1];}if(FALSE === strstr($libs, " -lexpat")) { die("You're configuration is missing expat, which conflicts with sanity.");}if(FALSE === strstr($libs, " -liconv")) { echo("You don't have iconv support\n");} else { echo("You have iconv support\n");}if(FALSE === strstr($libs, " -ljs")) { echo("You don't have JavaScript support\n");} else { echo("You have JavaScript support\n");}?>--EXPECTREGEX--You (don't )?have iconv supportYou (don't )?have JavaScript support
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -