Test: /sapi/phpdbg/tests/clean_001.phpt - Version 7.2.6    

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

Count Diff
72 (62%)
019+
020+ Termsig=11
019- prompt> [Not running]
020- prompt> 1
021- [Breakpoint #0 at %s:4, hits: 1]
022- >00004: echo 2;
023- 00005: echo 3;
024- 00006: foo();
025- prompt> 23
026- [Breakpoint #1 in foo() at %s:9, hits: 1]
027- >00009: echo 4;
028- 00010: }
029- 00011:
030- prompt> 4
031- [Script ended normally]
032- prompt>
18 (16%)
019+ Segmentation fault (core dumped)
020+
021+ Termsig=11
019- prompt> [Not running]
020- prompt> 1
021- [Breakpoint #0 at %s:4, hits: 1]
022- >00004: echo 2;
023- 00005: echo 3;
024- 00006: foo();
025- prompt> 23
026- [Breakpoint #1 in foo() at %s:9, hits: 1]
027- >00009: echo 4;
028- 00010: }
029- 00011:
030- prompt> 4
031- [Script ended normally]
032- prompt>
14 (12%)
019- prompt> [Not running]
020- prompt> 1
021- [Breakpoint #0 at %s:4, hits: 1]
022- >00004: echo 2;
023- 00005: echo 3;
024- 00006: foo();
025- prompt> 23
026- [Breakpoint #1 in foo() at %s:9, hits: 1]
027- >00009: echo 4;
028- 00010: }
029- 00011:
030- prompt> 4
031- [Script ended normally]
032- prompt>
7 (6%)
019+ Segmentation fault
020+
021+ Termsig=11
019- prompt> [Not running]
020- prompt> 1
021- [Breakpoint #0 at %s:4, hits: 1]
022- >00004: echo 2;
023- 00005: echo 3;
024- 00006: foo();
025- prompt> 23
026- [Breakpoint #1 in foo() at %s:9, hits: 1]
027- >00009: echo 4;
028- 00010: }
029- 00011:
030- prompt> 4
031- [Script ended normally]
032- prompt>
1 (1%)
1 (1%)
001+
001- [Successful compilation of %s]
002- prompt> [Breakpoint #0 added at %s:4]
003- prompt> [Breakpoint #1 added at foo]
004- prompt> 1
005- [Breakpoint #0 at %s:4, hits: 1]
006- >00004: echo 2;
007- 00005: echo 3;
008- 00006: foo();
009- prompt> 23
010- [Breakpoint #1 in foo() at %s:9, hits: 1]
011- >00009: echo 4;
012- 00010: }
013- 00011:
014- prompt> Do you really want to clean your current environment? (type y or n): Cleaning Execution Environment
015- Classes %d
016- Functions %d
017- Constants %d
018- Includes 0
019- prompt> [Not running]
020- prompt> 1
021- [Breakpoint #0 at %s:4, hits: 1]
022- >00004: echo 2;
023- 00005: echo 3;
024- 00006: foo();
025- prompt> 23
026- [Breakpoint #1 in foo() at %s:9, hits: 1]
027- >00009: echo 4;
028- 00010: }
029- 00011:
030- prompt> 4
031- [Script ended normally]
032- prompt>
1 (1%)
001+ Termsig=11
001- [Successful compilation of %s]
002- prompt> [Breakpoint #0 added at %s:4]
003- prompt> [Breakpoint #1 added at foo]
004- prompt> 1
005- [Breakpoint #0 at %s:4, hits: 1]
006- >00004: echo 2;
007- 00005: echo 3;
008- 00006: foo();
009- prompt> 23
010- [Breakpoint #1 in foo() at %s:9, hits: 1]
011- >00009: echo 4;
012- 00010: }
013- 00011:
014- prompt> Do you really want to clean your current environment? (type y or n): Cleaning Execution Environment
015- Classes %d
016- Functions %d
017- Constants %d
018- Includes 0
019- prompt> [Not running]
020- prompt> 1
021- [Breakpoint #0 at %s:4, hits: 1]
022- >00004: echo 2;
023- 00005: echo 3;
024- 00006: foo();
025- prompt> 23
026- [Breakpoint #1 in foo() at %s:9, hits: 1]
027- >00009: echo 4;
028- 00010: }
029- 00011:
030- prompt> 4
031- [Script ended normally]
032- prompt>
1 (1%)
019+ Segmentation fault (core dumped)
019- prompt> [Not running]
020- prompt> 1
021- [Breakpoint #0 at %s:4, hits: 1]
022- >00004: echo 2;
023- 00005: echo 3;
024- 00006: foo();
025- prompt> 23
026- [Breakpoint #1 in foo() at %s:9, hits: 1]
027- >00009: echo 4;
028- 00010: }
029- 00011:
030- prompt> 4
031- [Script ended normally]
032- prompt>
1 (1%)
032+ prompt>
032- prompt>
033+ =================================================================
034+ ==29496==ERROR: LeakSanitizer: detected memory leaks
035+
036+ Direct leak of 88 byte(s) in 1 object(s) allocated from:
037+ #0 0x7f809794dd38 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded38)
038+ #1 0x56024a446d7a in phpdbg_stack_push /home/zsw/Documents/project/php/php-7.2.6/sapi/phpdbg/phpdbg_cmd.c:435
039+
040+ Direct leak of 16 byte(s) in 2 object(s) allocated from:
041+ #0 0x7f80978e6538 in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x77538)
042+ #1 0x56024a4396ab in phpdbg_set_prompt /home/zsw/Documents/project/php/php-7.2.6/sapi/phpdbg/phpdbg_utils.c:296
043+
044+ SUMMARY: AddressSanitizer: 104 byte(s) leaked in 3 allocation(s).