Test: /sapi/phpdbg/tests/print_002.phpt - Version 7.0.14    

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

Count Diff
2 (50%)
001+ was compiled: %s/print_002.php
1 (25%)
001+ Direct leak of 88 byte(s) in 1 object(s) allocated from:
002+ #0 0x7f82ef2ec79a in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9879a)
003+ #1 0xaff86a in phpdbg_stack_push /home/php-7.0.14/sapi/phpdbg/phpdbg_cmd.c:435
004+
005+ SUMMARY: AddressSanitizer: 88 byte(s) leaked in 1 allocation(s).
001- [Successful compilation of %s]
002- prompt> [Breakpoint #0 added at foo]
003- prompt> string(4) "test"
004- [Breakpoint #0 in foo() at %s:15, hits: 1]
005- >00015: var_dump(strrev($baz));
006- 00016: }
007- 00017:
008- prompt> [Stack in foo() (8 ops)]
009- L14-16 foo() %s - %s + 8 ops
010- L14 #0 RECV 1 $baz
011- L15 #1 INIT_FCALL%s %d %s "var_dump"
012- L15 #2 INIT_FCALL%s %d %s "strrev"
013- L15 #3 SEND_VAR $baz 1
014- L15 #4 DO_%cCALL @0
015- L15 #5 SEND_VAR @0 1
016- L15 #6 DO_%cCALL
017- L16 #7 RETURN null
018- prompt> [L15 %s INIT_FCALL%s %d %s "var_dump" %s]
019- prompt>
1 (25%)
001+ Direct leak of 88 byte(s) in 1 object(s) allocated from:
002+ #0 0x7f41f42ee79a in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9879a)
003+ #1 0xdec5ca in phpdbg_stack_push /home/php-7.0.14/sapi/phpdbg/phpdbg_cmd.c:435
004+
005+ SUMMARY: AddressSanitizer: 88 byte(s) leaked in 1 allocation(s).
001- [Successful compilation of %s]
002- prompt> [Breakpoint #0 added at foo]
003- prompt> string(4) "test"
004- [Breakpoint #0 in foo() at %s:15, hits: 1]
005- >00015: var_dump(strrev($baz));
006- 00016: }
007- 00017:
008- prompt> [Stack in foo() (8 ops)]
009- L14-16 foo() %s - %s + 8 ops
010- L14 #0 RECV 1 $baz
011- L15 #1 INIT_FCALL%s %d %s "var_dump"
012- L15 #2 INIT_FCALL%s %d %s "strrev"
013- L15 #3 SEND_VAR $baz 1
014- L15 #4 DO_%cCALL @0
015- L15 #5 SEND_VAR @0 1
016- L15 #6 DO_%cCALL
017- L16 #7 RETURN null
018- prompt> [L15 %s INIT_FCALL%s %d %s "var_dump" %s]
019- prompt>