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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-28 15:22 UTC] zeev
Fixed.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 10:01:38 2025 UTC