Added: xdebug/trunk/tests/bug00421.inc =================================================================== --- xdebug/trunk/tests/bug00421.inc (rev 0) +++ xdebug/trunk/tests/bug00421.inc 2010-10-26 16:32:57 UTC (rev 3353) @@ -0,0 +1,22 @@ +xpath("//page"); + + // Iterate through all 3 occurances of elements + foreach ($projectsIterator as $pageXML) + { + // Set a breakpoint somewhere inside this loop. + // You won't see any variables in the Local Variables panel until the second + // time through the loop. After that, they seem to work fine. + $currentPageXML= $pageXML; + $name = $currentPageXML["name"]; + echo $name . ' +'; + } +} + +iterateXML(); + Modified: xdebug/trunk/tests/bug00421.phpt =================================================================== --- xdebug/trunk/tests/bug00421.phpt 2010-10-26 16:27:04 UTC (rev 3352) +++ xdebug/trunk/tests/bug00421.phpt 2010-10-26 16:32:57 UTC (rev 3353) @@ -6,31 +6,8 @@ $file = dirname(__FILE__) . "/localvariables.xml"; -$data = <<<'NOWDOC' -xpath("//page"); +$data = file_get_contents( dirname(__FILE__) . '/bug00421.inc' ); - // Iterate through all 3 occurances of elements - foreach ($projectsIterator as $pageXML) - { - // Set a breakpoint somewhere inside this loop. - // You won't see any variables in the Local Variables panel until the second - // time through the loop. After that, they seem to work fine. - $currentPageXML= $pageXML; - $name = $currentPageXML["name"]; - echo $name . ' -'; - } -} - -iterateXML(); - -NOWDOC; - $commands = array( 'step_into', 'feature_set -n max_depth -v 2', Modified: xdebug/trunk/tests/bug00475.phpt =================================================================== --- xdebug/trunk/tests/bug00475.phpt 2010-10-26 16:27:04 UTC (rev 3352) +++ xdebug/trunk/tests/bug00475.phpt 2010-10-26 16:32:57 UTC (rev 3353) @@ -3,10 +3,10 @@ --FILE-- "Value", "example" => "value\0key" ); -var_dump( $a ); +\$a = array( "example\0key" => "Value", "example" => "value\0key" ); +var_dump( \$a ); NOWDOC; $commands = array( Added: xdebug/trunk/tests/bug00494.inc =================================================================== --- xdebug/trunk/tests/bug00494.inc (rev 0) +++ xdebug/trunk/tests/bug00494.inc 2010-10-26 16:32:57 UTC (rev 3353) @@ -0,0 +1,18 @@ +arr = array( + 0 => array("some", "values"), + 1 => array("some", "more", "values") + ); + } +} + +class def extends abc { + private $arr; +} + +$o = new def; +echo "o: "; +var_dump($o); Modified: xdebug/trunk/tests/bug00494.phpt =================================================================== --- xdebug/trunk/tests/bug00494.phpt 2010-10-26 16:27:04 UTC (rev 3352) +++ xdebug/trunk/tests/bug00494.phpt 2010-10-26 16:32:57 UTC (rev 3353) @@ -3,27 +3,8 @@ --FILE-- arr = array( - 0 => array("some", "values"), - 1 => array("some", "more", "values") - ); - } -} +$data = file_get_contents(dirname(__FILE__) . '/bug00494.inc'); -class def extends abc { - private $arr; -} - -$o = new def; -echo "o: "; -var_dump($o); -NOWDOC; - $commands = array( 'step_into', 'breakpoint_set -t line -n 17', Added: xdebug/trunk/tests/bug00530.inc =================================================================== --- xdebug/trunk/tests/bug00530.inc (rev 0) +++ xdebug/trunk/tests/bug00530.inc 2010-10-26 16:32:57 UTC (rev 3353) @@ -0,0 +1,21 @@ +b = 'b'; + $c = 'a' . 'b'; + } + // I hoover in nb over this $a + public function test($a) { + echo "a ist: " . $a; + } +} + +$a = 1; +$b = 2; +$c = new MyClass(); +$f = 3; +$c->test('gogo'); // this call*** +$c->test('gogo'); Modified: xdebug/trunk/tests/bug00530.phpt =================================================================== --- xdebug/trunk/tests/bug00530.phpt 2010-10-26 16:27:04 UTC (rev 3352) +++ xdebug/trunk/tests/bug00530.phpt 2010-10-26 16:32:57 UTC (rev 3353) @@ -5,30 +5,8 @@ --FILE-- b = 'b'; - $c = 'a' . 'b'; - } - // I hoover in nb over this $a - public function test($a) { - echo "a ist: " . $a; - } -} - -$a = 1; -$b = 2; -$c = new MyClass(); -$f = 3; -$c->test('gogo'); // this call*** -$c->test('gogo'); -NOWDOC; - $commands = array( 'step_into', 'breakpoint_set -t line -n 12', Added: xdebug/trunk/tests/bug00538.inc =================================================================== --- xdebug/trunk/tests/bug00538.inc (rev 0) +++ xdebug/trunk/tests/bug00538.inc 2010-10-26 16:32:57 UTC (rev 3353) @@ -0,0 +1,14 @@ +