1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00

break on class methods

don't dtor eval'd retval
more reliable break on methods
This commit is contained in:
krakjoe
2013-11-12 00:27:48 +00:00
parent d61fa4cc52
commit e0cbd92fa4
7 changed files with 214 additions and 60 deletions
+6 -10
View File
@@ -1,22 +1,18 @@
<?php
phpdbg_clear();
function test() {
echo "Hello World\n";
$hidden = "variable";
phpdbg_break();
class my {
public function method() {
return $this;
}
}
function test2() {
echo "Hello World 2\n";
}
if (!isset($greeting)) {
echo test();
}
phpdbg_break();
$my = new my();
var_dump($my->method());
test2();
return true;
?>