1
0
Fork 0

improve devel testing

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1485 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
master
Xuefer 8 years ago
parent 30ab87d469
commit 028aafe3c4
  1. 9
      devel/run
  2. 8
      devel/sample.cpp.php

@ -358,7 +358,14 @@ run() {
;;
*)
hiecho "$@"
"$@" | tee output.php
case "${tracer[@]}" in
gdb*|val*)
"$@"
;;
*)
"$@" | tee output.php
;;
esac
;;
esac
# }}}

@ -164,6 +164,7 @@ abstract class ClassName
echo __METHOD__;
echo __FUNCTION__;
$this->method();
#if PHP_VERSION >= 500
try {
throw new _Exception();
@ -537,8 +538,9 @@ for (; $i < 10; ++$i) {
}
$array = array(
array('a' => 'b')
);
array('a' => 'b')
);
foreach ($array as $value) {
foreach ($value as $key => $value) {
echo $key . ' = ' . $value . "\n";
@ -620,10 +622,12 @@ declare (ticks=1) {
}
$a = true;
while ($a) {
declare (ticks=1) {
echo 2;
}
$a = false;
}

Loading…
Cancel
Save