提交 493b7403 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

fix xml lib missing

上级 3042ed3a
#!/usr/bin/env php
<?php
$xml = simplexml_load_file('../test/output/output.xml');
$val = $xml->table->row->col[0];
print(">> $val\n");
\ No newline at end of file
if (function_exists('simplexml_load_file')) {
print("simplexml_load_file missing, pls use 'sudo apt-get install php7.0-simplexml' to install\n");
}
\ No newline at end of file
......@@ -41,7 +41,7 @@ $arr = explode("\n", $content);
print(">> $arr[0]\n");
if (function_exists('simplexml_load_file')) {
print('simplexml_load_file missing, pls use "sudo apt-get install php7.0-simplexml" to install');
print("lib simplexml_load_file missing, pls use 'sudo apt-get install php7.0-simplexml' to install\n");
} else {
$output = [];
exec("$cmd -y ../test/definition/basic.yaml -c 3 -field char,numb -o ../test/output/output.xml -f xml", $output);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册