|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
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>


Add a Patch

Pull Requests

Add a Pull Request


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