php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #560 show_source() generates output with extra whitespace (see below for more info)
Submitted: 1998-07-19 16:08 UTC Modified: 1998-07-28 15:22 UTC
From: joe at jlknet dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.1 OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: joe at jlknet dot com
New email:
PHP Version: OS:

 

 [1998-07-19 16:08 UTC] joe at jlknet dot com
Using show_source() on a file with the following code:

    $message = $row["message"];

The colorized output shows an extra space before and after the =, and a space between the [ and the ".  The first is due to the fact that is uses both an   and a space, and the second is because show_source() is creating extra newlines, which are interpreted as spaces:

&nbsp; &nbsp; $message&nbsp; =&nbsp; $row[<FONT color="#DD0000">
<STRONG>"message"</STRONG></FONT>]<FONT color="#007700">;</FONT><br>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-28 15:22 UTC] zeev
Fixed.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jul 07 05:05:44 2022 UTC