PHP  
 PHP_7_2
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_004.phpt ('Test detection of inline string manipulations on zval watch')

Script

1: <?php
2:
3: $b 
"a";
4:
$a $b.$b;
5:
$a[1] = "b";
6:

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: $a[1] = "b";
prompt> [Added watchpoint #0 for $a]
prompt> [Breaking on watchpoint $a]
Old value: 
New value: aa
>00005: $a[1] = "b";
 00006: 
prompt> [Breaking on watchpoint $a]
Old value: aa
New value: ab
>00006: 
prompt> [$a has been removed, removing watchpoint]
[Script ended normally]
prompt>

Output

[Successful compilation of /var/php_gcov/PHP_7_2/sapi/phpdbg/tests/watch_004.php]
prompt> [Breakpoint #0 added at /var/php_gcov/PHP_7_2/sapi/phpdbg/tests/watch_004.php:3]
prompt> [Breakpoint #0 at /var/php_gcov/PHP_7_2/sapi/phpdbg/tests/watch_004.php:3, hits: 1]
>00003: $b = "a";
 00004: $a = $b.$b;
 00005: $a[1] = "b";
prompt> [Added watchpoint #0 for $a]
prompt> [Breaking on watchpoint $a]
Old value: 
New value: aa
>00005: $a[1] = "b";
 00006: 
prompt> [$a has been removed, removing watchpoint]
[Script ended normally]
prompt> [Breakpoint at /var/php_gcov/PHP_7_2/sapi/phpdbg/tests/watch_004.php:3 exists]
prompt>

Diff

013- prompt> [Breaking on watchpoint $a]
014- Old value: aa
015- New value: ab
016- >00006: 
015+ prompt> [Breakpoint at /var/php_gcov/PHP_7_2/sapi/phpdbg/tests/watch_004.php:3 exists]

 

Generated at Tue, 21 Nov 2017 01:17:01 +0000 (3 days ago)

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