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

Bug #73704 phpdbg shows the wrong line in files with shebang
Submitted: 2016-12-09 14:31:05 Modified: 2017-01-02 09:22:57
From: stahlstift Assigned: bwoebi
Status: Closed Package: phpdbg
PHP Version: 7.0.14 OS: Windows 10 Pro

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

Count Diff
72 (62%)
013+
013- prompt>
014+ Termsig=11
18 (16%)
013+ Segmentation fault (core dumped)
013- prompt>
014+
015+ Termsig=11
14 (12%)
013- prompt>
7 (6%)
013+ Segmentation fault
013- prompt>
014+
015+ Termsig=11
1 (1%)
1 (1%)
001+
001- [Successful compilation of %s]
002- prompt> 00001: #!/usr/bin/env php
003- 00002: <?php
004- 00003:
005- 00004: echo 1;
006- 00005:
007- prompt> [Breakpoint #0 added at %s:4]
008- prompt> [Breakpoint #0 at %s:4, hits: 1]
009- >00004: echo 1;
010- 00005:
011- prompt> 1
012- [Script ended normally]
013- prompt>
1 (1%)
001+ Termsig=11
001- [Successful compilation of %s]
002- prompt> 00001: #!/usr/bin/env php
003- 00002: <?php
004- 00003:
005- 00004: echo 1;
006- 00005:
007- prompt> [Breakpoint #0 added at %s:4]
008- prompt> [Breakpoint #0 at %s:4, hits: 1]
009- >00004: echo 1;
010- 00005:
011- prompt> 1
012- [Script ended normally]
013- prompt>
1 (1%)
013+ Segmentation fault (core dumped)
013- prompt>
1 (1%)
013+ prompt>
013- prompt>
014+ =================================================================
015+ ==29490==ERROR: LeakSanitizer: detected memory leaks
016+
017+ Direct leak of 8 byte(s) in 1 object(s) allocated from:
018+ #0 0x7f6a29f9b538 in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x77538)
019+ #1 0x559b761fe6ab in phpdbg_set_prompt /home/zsw/Documents/project/php/php-7.2.6/sapi/phpdbg/phpdbg_utils.c:296
020+
021+ SUMMARY: AddressSanitizer: 8 byte(s) leaked in 1 allocation(s).