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
 [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: Sun May 22 14:05:46 2022 UTC