Test: /sapi/phpdbg/tests/watch_006.phpt - Version 7.3.1RC1    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
009+ prompt> ASAN:SIGSEGV
010+ =================================================================
011+ ==7374==ERROR: AddressSanitizer: SEGV on unknown address 0x7f78de062118 (pc 0x000004d606b5 bp 0x7fff80995e50 sp 0x7fff80994de0 T0)
012+ #0 0x4d606b4 (/opt/php-src/sapi/phpdbg/phpdbg+0x4d606b4)
013+ #1 0x4fc2d0e (/opt/php-src/sapi/phpdbg/phpdbg+0x4fc2d0e)
014+ #2 0x524d60c (/opt/php-src/sapi/phpdbg/phpdbg+0x524d60c)
015+ #3 0x451627e (/opt/php-src/sapi/phpdbg/phpdbg+0x451627e)
016+ #4 0x52155ba (/opt/php-src/sapi/phpdbg/phpdbg+0x52155ba)
017+ #5 0x531c7e3 (/opt/php-src/sapi/phpdbg/phpdbg+0x531c7e3)
018+ #6 0x531b590 (/opt/php-src/sapi/phpdbg/phpdbg+0x531b590)
019+ #7 0x523a5d7 (/opt/php-src/sapi/phpdbg/phpdbg+0x523a5d7)
020+ #8 0x51aff9e (/opt/php-src/sapi/phpdbg/phpdbg+0x51aff9e)
021+ #9 0x7f78e2edf82f (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
022+ #10 0x45a5f8 (/opt/php-src/sapi/phpdbg/phpdbg+0x45a5f8)
023+
024+ AddressSanitizer can not provide additional info.
025+ ==7374==ABORTING
009- prompt> [Breaking on watchpoint $a[0]]
010- Old value: 0
011- New value: 1
012- >00005: $b = &$a;
013- 00006: $a[0] = 2;
014- 00007: $a[1] = 3;
015- prompt> [Breaking on watchpoint $b]
016- Old value:
017- New value (reference): Array ([0] => 1)
018- >00006: $a[0] = 2;
019- 00007: $a[1] = 3;
020- 00008: $c = [1];
021- prompt> [Breaking on watchpoint $a[0]]
022- Old value: 1
023- New value: 2
024- >00007: $a[1] = 3;
025- 00008: $c = [1];
026- 00009: $b = &$c;
027- prompt> [Element 1 has been added to watchpoint]
028- [Breaking on watchpoint $b[]]
029- 1 elements were added to the array
030- >00008: $c = [1];
031- 00009: $b = &$c;
032- 00010:
033- prompt> [Breaking on watchpoint $b]
034- Old value inaccessible or destroyed
035- New value (reference): Array ([0] => 2,[1] => 3)
036- >00009: $b = &$c;
037- 00010:
038- prompt> [Breaking on watchpoint $b]
039- Old value inaccessible or destroyed
040- New value (reference): Array ([0] => 1)
041- >00010:
042- prompt> [$b has been removed, removing watchpoint recursively]
043- [$a[0] has been removed, removing watchpoint]
044- [Script ended normally]
045- prompt>