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

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

Count Diff
138 (61%)
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>
35 (16%)
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>
27 (12%)
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 (6%)
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>
3 (1%)
2 (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>
2 (1%)
019+ Segmentation fault
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 (0%)
019+
020+ Termsig=7
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 (0%)
032+
032- prompt>
033+ Termsig=11
1 (0%)
032+ Segmentation fault (core dumped)
032- prompt>
033+
034+ Termsig=11
1 (0%)
032+ prompt>
032- prompt>
033+ =================================================================
034+ ==17646==ERROR: LeakSanitizer: detected memory leaks
035+
036+ Direct leak of 88 byte(s) in 1 object(s) allocated from:
037+ #0 0x4e6360 in calloc /home/fuzzer/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:72:3
038+ #1 0x1d028eb in phpdbg_stack_push (/home/fuzzer/PHP/php-7.1.0/sapi/phpdbg/phpdbg+0x1d028eb)
039+ #2 0x1c84a0f in phpdbg_parse (/home/fuzzer/PHP/php-7.1.0/sapi/phpdbg/phpdbg+0x1c84a0f)
040+ #3 0x1c88309 in phpdbg_do_parse (/home/fuzzer/PHP/php-7.1.0/sapi/phpdbg/phpdbg+0x1c88309)
041+ #4 0x1cac543 in phpdbg_interactive (/home/fuzzer/PHP/php-7.1.0/sapi/phpdbg/phpdbg+0x1cac543)
042+ #5 0x1c7c28a in main (/home/fuzzer/PHP/php-7.1.0/sapi/phpdbg/phpdbg+0x1c7c28a)
043+ #6 0x7f128488582f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
044+
045+ Direct leak of 16 byte(s) in 2 object(s) allocated from:
046+ #0 0x4d288a in strdup /home/fuzzer/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:562:3
047+ #1 0x1ce776a in phpdbg_set_prompt (/home/fuzzer/PHP/php-7.1.0/sapi/phpdbg/phpdbg+0x1ce776a)
048+ #2 0x1c797af in main (/home/fuzzer/PHP/php-7.1.0/sapi/phpdbg/phpdbg+0x1c797af)
049+ #3 0x7f128488582f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
050+
051+ SUMMARY: AddressSanitizer: 104 byte(s) leaked in 3 allocation(s).