Test: /sapi/phpdbg/tests/watch_006.phpt - Version 7.2.0-dev    

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

Count Diff
195 (46%)
009+ prompt> [$a[0] has been removed, removing watchpoint]
010+ [$b has been removed, removing watchpoint recursively]
011+ [Script ended normally]
012+ prompt> [Breakpoint at %s/watch_006.php:4 exists]
013+ prompt> [Breakpoint at %s/watch_006.php:4 exists]
014+ prompt> [Breakpoint at %s/watch_006.php:4 exists]
015+ prompt> [Breakpoint at %s/watch_006.php:4 exists]
016+ prompt> [Breakpoint at %s/watch_006.php:4 exists]
017+ prompt> [Breakpoint at %s/watch_006.php:4 exists]
018+ prompt>
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>
106 (25%)
009+ prompt> [$a[0] has been removed, removing watchpoint]
010+ [$b has been removed, removing watchpoint recursively]
011+ [Script ended normally]
012+ prompt> [Breakpoint at %s/watch_006.php:4 exists]
013+ prompt> [Breakpoint at %s/watch_006.php:4 exists]
014+ prompt> [Breakpoint at %s/watch_006.php:4 exists]
015+ prompt> [Breakpoint at %s/watch_006.php:4 exists]
016+ prompt> [Breakpoint at %s/watch_006.php:4 exists]
017+ prompt> [Breakpoint at %s/watch_006.php:4 exists]
018+ prompt>
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- >00009: $b = &$c;
042- 00010:
043- prompt> [$b has been removed, removing watchpoint recursively]
044- [$a[0] has been removed, removing watchpoint]
045- [Script ended normally]
046- prompt>
43 (10%)
007+ prompt> Segmentation fault (core dumped)
008+
009+ Termsig=11
007- prompt> [Added watchpoint #0 for $a[0]]
008- prompt> [Added recursive watchpoint #1 for $b]
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>
14 (3%)
045+ Segmentation fault (core dumped)
045- prompt>
046+
047+ Termsig=11
14 (3%)
045+
045- prompt>
046+ Termsig=11
12 (3%)
045+ Segmentation fault
045- prompt>
046+
047+ Termsig=11
10 (2%)
046+ Segmentation fault
046- prompt>
047+
048+ Termsig=11
4 (1%)
041+ >00010:
041- >00009: $b = &$c;
042- 00010:
4 (1%)
007+ prompt> Segmentation fault (core dumped)
007- prompt> [Added watchpoint #0 for $a[0]]
008- prompt> [Added recursive watchpoint #1 for $b]
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>
3 (1%)
046+ Segmentation fault (core dumped)
046- prompt>
047+
048+ Termsig=11
3 (1%)
046+
046- prompt>
047+ Termsig=11
2 (0%)
045+ Segmentation fault
045- prompt>
2 (0%)
010+ Old value: 0PHP Warning: PHP Startup: readline: Unable to initialize module
011+ Module compiled with build ID=API20170718,TS
012+ PHP compiled with build ID=API20170718,TS,debug
013+ These options need to match
014+ in Unknown on line 0
015+
016+ Warning: PHP Startup: readline: Unable to initialize module
017+ Module compiled with build ID=API20170718,TS
018+ PHP compiled with build ID=API20170718,TS,debug
019+ These options need to match
020+ in Unknown on line 0
021+
022+ New value: 1
023+ >00005: $b = &$a;
024+ 00006: $a[0] = 2;
025+ 00007: $a[1] = 3;
026+ prompt> [Breaking on watchpoint $b]
027+ Old value:
028+ New value (reference): Array ([0] => 1)
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)
045- prompt>
056+ prompt>
057+ Warning: PHP Startup: readline: Unable to initialize module
058+ Module compiled with build ID=API20170718,TS
059+ PHP compiled with build ID=API20170718,TS,debug
060+ These options need to match
061+ in Unknown on line 0
2 (0%)
001+ phpdbg_get_color(white-bold, 10): 1;64phpdbg_get_color(red-bold, 8): 1;31phpdbg_get_color(green, 5): 0;32was compiled: %s/watch_006.php
002- prompt> [Breakpoint #0 added at %s:4]
003+ prompt> file path: %s/watch_006.php, resolved path: %s/watch_006.php, was compiled: 1
004+ [Breakpoint #0 added at %s/watch_006.php:4]
048+ phpdbg_get_color(white-bold, 10): 1;64phpdbg_get_color(red-bold, 8): 1;31phpdbg_get_color(green, 5): 0;32file path: %s/watch_006.php, resolved path: %s/watch_006.php, was compiled: 0
049+ File exists, but not compiled
050+ was compiled: %s/watch_006.php
1 (0%)
045+ Segmentation fault (core dumped)
045- prompt>
1 (0%)
045+ /home/travis/build/php/php-src/Zend/zend_hash.c(1619) : ht=0x1bc4910 is already destroyed
045- prompt>
046+ /home/travis/build/php/php-src/Zend/zend_hash.c(64) : Bailed out without a bailout address!
1 (0%)
045+
045- prompt>
046+ Termsig=7
1 (0%)
018+ >00005: $b = &$a;
019+ 00006: $a[0] = 2;
018- >00006: $a[0] = 2;
020- 00008: $c = [1];
036+ >00008: $c = [1];
037+ 00009: $b = &$c;
036- >00009: $b = &$c;
041- >00010:
042+ >00009: $b = &$c;
043+ 00010:
1 (0%)
009+ prompt> ASAN:SIGSEGV
010+ =================================================================
011+ ==25441== ERROR: AddressSanitizer: SEGV on unknown address 0x2b7d18815030 (pc 0x000000ecba92 sp 0x7fffc72bcda0 bp 0x7fffc72bcdc0 T0)
012+ AddressSanitizer can not provide additional info.
013+ #0 0xecba91 (/home/suto/fuzzphp/php-src/sapi/phpdbg/phpdbg+0xecba91)
014+ #1 0xf90ae0 (/home/suto/fuzzphp/php-src/sapi/phpdbg/phpdbg+0xf90ae0)
015+ #2 0xfad6cc (/home/suto/fuzzphp/php-src/sapi/phpdbg/phpdbg+0xfad6cc)
016+ #3 0xf8e9e2 (/home/suto/fuzzphp/php-src/sapi/phpdbg/phpdbg+0xf8e9e2)
017+ #4 0xfa9793 (/home/suto/fuzzphp/php-src/sapi/phpdbg/phpdbg+0xfa9793)
018+ #5 0xfe12e4 (/home/suto/fuzzphp/php-src/sapi/phpdbg/phpdbg+0xfe12e4)
019+ #6 0xfac371 (/home/suto/fuzzphp/php-src/sapi/phpdbg/phpdbg+0xfac371)
020+ #7 0x44adf8 (/home/suto/fuzzphp/php-src/sapi/phpdbg/phpdbg+0x44adf8)
021+ #8 0x2b7d17b35f44 (/lib/x86_64-linux-gnu/libc-2.19.so+0x21f44)
022+ #9 0x44ce63 (/home/suto/fuzzphp/php-src/sapi/phpdbg/phpdbg+0x44ce63)
023+ ==25441== 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- >00009: $b = &$c;
042- 00010:
043- prompt> [$b has been removed, removing watchpoint recursively]
044- [$a[0] has been removed, removing watchpoint]
045- [Script ended normally]
046- prompt>
1 (0%)
009+ prompt> ASAN:DEADLYSIGNAL
010+ =================================================================
011+ ==23460==ERROR: AddressSanitizer: SEGV on unknown address 0x7f4ad521f080 (pc 0x000001b8be95 bp 0x0fe959c1d24c sp 0x7ffd80a22f10 T0)
012+ ==23460==The signal is caused by a WRITE memory access.
013+ #0 0x1b8be94 in ZEND_ASSIGN_DIM_SPEC_CV_CONST_OP_DATA_CONST_HANDLER /home/byunggill/meds_project/ufuzz/php_applications/php/Zend/zend_vm_execute.h:36722:3
014+ #1 0x1ca4dd4 in phpdbg_execute_ex /home/byunggill/meds_project/ufuzz/php_applications/php/sapi/phpdbg/phpdbg_prompt.c:1900:21
015+ #2 0x18a00bb in zend_execute /home/byunggill/meds_project/ufuzz/php_applications/php/Zend/zend_vm_execute.h:474:2
016+ #3 0x1c8f302 in phpdbg_do_run /home/byunggill/meds_project/ufuzz/php_applications/php/sapi/phpdbg/phpdbg_prompt.c:942:4
017+ #4 0x1ce948c in phpdbg_internal_stack_execute /home/byunggill/meds_project/ufuzz/php_applications/php/sapi/phpdbg/phpdbg_cmd.c:703:13
018+ #5 0x1ce948c in phpdbg_stack_execute /home/byunggill/meds_project/ufuzz/php_applications/php/sapi/phpdbg/phpdbg_cmd.c:733
019+ #6 0x1c9ef29 in phpdbg_interactive /home/byunggill/meds_project/ufuzz/php_applications/php/sapi/phpdbg/phpdbg_prompt.c:1631:18
020+ #7 0x1c74cd2 in main /home/byunggill/meds_project/ufuzz/php_applications/php/sapi/phpdbg/phpdbg.c:1992:5
021+ #8 0x7f4ada0be82f in __libc_start_main /build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:291
022+ #9 0x43c468 in _start (/home/byunggill/meds_project/ufuzz/php_applications/php/sapi/phpdbg/phpdbg+0x43c468)
023+
024+ AddressSanitizer can not provide additional info.
025+ SUMMARY: AddressSanitizer: SEGV /home/byunggill/meds_project/ufuzz/php_applications/php/Zend/zend_vm_execute.h:36722:3 in ZEND_ASSIGN_DIM_SPEC_CV_CONST_OP_DATA_CONST_HANDLER
026+ ==23460==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>
1 (0%)
001+ Segmentation fault (core dumped)
002+
003+ Termsig=11
001- [Successful compilation of %s]
002- prompt> [Breakpoint #0 added at %s:4]
003- prompt> [Breakpoint #0 at %s:4, hits: 1]
004- >00004: $a[0] = 1;
005- 00005: $b = &$a;
006- 00006: $a[0] = 2;
007- prompt> [Added watchpoint #0 for $a[0]]
008- prompt> [Added recursive watchpoint #1 for $b]
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>