PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for sapi/phpdbg/tests/watch_005.phpt ('Test proper watch comparisons when having multiple levels of indirection from a zval to its value')

Script

1: <?php
2:
3: $b 
"a";
4:
$a $b.$b;
5:
$c = &$a;
6:
$a[1] = "b";
7:
8: exit;
9:

Expected

[Successful compilation of %s]
prompt> [Breakpoint #0 added at %s:3]
prompt> [Breakpoint #0 at %s:3, hits: 1]
>00003: $b = "a";
 00004: $a = $b.$b;
 00005: $c = &$a;
prompt> [Added recursive watchpoint #0 for $a]
prompt> [Breaking on watchpoint $a]
Old value: 
New value: aa
>00005: $c = &$a;
 00006: $a[1] = "b";
 00007: 
prompt> [Breaking on watchpoint $a]
Old value inaccessible or destroyed
New value (reference): aa
>00006: $a[1] = "b";
 00007: 
 00008: exit;
prompt> [Breaking on watchpoint $a]
Old value: aa
New value: ab
>00008: exit;
 00009: 
prompt> [$a has been removed, removing watchpoint recursively]
[Script ended normally]
prompt>

Output

[Successful compilation of /var/php_gcov/PHP_HEAD/sapi/phpdbg/tests/watch_005.php]
prompt> [Breakpoint #0 added at /var/php_gcov/PHP_HEAD/sapi/phpdbg/tests/watch_005.php:3]
prompt> [Breakpoint #0 at /var/php_gcov/PHP_HEAD/sapi/phpdbg/tests/watch_005.php:3, hits: 1]
>00003: $b = "a";
 00004: $a = $b.$b;
 00005: $c = &$a;
prompt> [Added recursive watchpoint #0 for $a]
prompt> [Breaking on watchpoint $a]
Old value: 
New value: aa
>00005: $c = &$a;
 00006: $a[1] = "b";
 00007: 
prompt> [Breaking on watchpoint $a]
Old value inaccessible or destroyed
New value (reference): aa

Termsig=11

Diff

017+ 
018+ Termsig=11
017- >00006: $a[1] = "b";
018-  00007: 
019-  00008: exit;
020- prompt> [Breaking on watchpoint $a]
021- Old value: aa
022- New value: ab
023- >00008: exit;
024-  00009: 
025- prompt> [$a has been removed, removing watchpoint recursively]
026- [Script ended normally]
027- prompt>

 

Generated at Tue, 12 Dec 2017 23:59:00 +0000 (18 hours ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.