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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
23 - 1 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 15:01:30 2024 UTC