Test: /sapi/phpdbg/tests/watch_001.phpt - Version 7.4.1    

There are 3 different diffs reported by users for this test.

Count Diff
1 (33%)
008+ prompt> ASAN:SIGSEGV
009+ =================================================================
010+ ==123904==ERROR: AddressSanitizer: SEGV on unknown address 0x7f5453015070 (pc 0x0000011eac8a bp 0x7ffd5c5ef6c0 sp 0x7ffd5c5ef3d0 T0)
011+ #0 0x11eac89 (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x11eac89)
012+ #1 0x13d918c (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x13d918c)
013+ #2 0x11b78ce (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x11b78ce)
014+ #3 0x13c7406 (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x13c7406)
015+ #4 0x1418135 (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x1418135)
016+ #5 0x13d520d (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x13d520d)
017+ #6 0x13ac33d (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x13ac33d)
018+ #7 0x7f5457ebf82f (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
019+ #8 0x45c648 (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x45c648)
020+
021+ AddressSanitizer can not provide additional info.
022+ ==123904==ABORTING
008- prompt> [Breaking on watchpoint $b]
009- Old value:
010- New value: Array ([0] => 1)
011- >00006: unset($b);
012- 00007: $b = 2;
013- 00008:
014- prompt> [Breaking on watchpoint $b]
015- Old value inaccessible or destroyed
016- New value:
017- >00007: $b = 2;
018- 00008:
019- prompt> [Breaking on watchpoint $b]
020- Old value:
021- New value: 2
022- >00008:
023- prompt> [$b has been removed, removing watchpoint recursively]
024- [Script ended normally]
025- prompt>
1 (33%)
007+ prompt>
007- prompt> [Added recursive watchpoint #0 for $b]
008- prompt> [Breaking on watchpoint $b]
009- Old value:
010- New value: Array ([0] => 1)
011- >00006: unset($b);
012- 00007: $b = 2;
013- 00008:
014- prompt> [Breaking on watchpoint $b]
015- Old value inaccessible or destroyed
016- New value:
017- >00007: $b = 2;
018- 00008:
019- prompt> [Breaking on watchpoint $b]
020- Old value:
021- New value: 2
022- >00008:
023- prompt> [$b has been removed, removing watchpoint recursively]
024- [Script ended normally]
025- prompt>
1 (33%)
001+
001- [Successful compilation of %s]
002- prompt> [Breakpoint #0 added at %s:3]
003- prompt> [Breakpoint #0 at %s:3, hits: 1]
004- >00003: $a = 1;
005- 00004: $b = [$a];
006- 00005:
007- prompt> [Added recursive watchpoint #0 for $b]
008- prompt> [Breaking on watchpoint $b]
009- Old value:
010- New value: Array ([0] => 1)
011- >00006: unset($b);
012- 00007: $b = 2;
013- 00008:
014- prompt> [Breaking on watchpoint $b]
015- Old value inaccessible or destroyed
016- New value:
017- >00007: $b = 2;
018- 00008:
019- prompt> [Breaking on watchpoint $b]
020- Old value:
021- New value: 2
022- >00008:
023- prompt> [$b has been removed, removing watchpoint recursively]
024- [Script ended normally]
025- prompt>