php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28624 Simple Variable reading bug
Submitted: 2004-06-03 19:50 UTC Modified: 2004-06-05 11:08 UTC
From: admin at cyaccess dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.7 OS: Win XP
Private report: No CVE-ID: None
 [2004-06-03 19:50 UTC] admin at cyaccess dot com
Description:
------------
Server: Win XP pro, Apache 2.0.49/ PHP 4.3.7

The following string is misread and replaced by PHP with "". There was no such problem in PHP up to 4.3.4 but was noticed since PHP 4.3.5

Reproduce code:
---------------
Following will be rendered as $blank = ""; by PHP.
$blank = '<img src="images/blank.gif" width="1" height="1" alt="" />';

There is no error and the out put is simply nothing.
Example:
echo $blank; # would out put nothing


However, the followings would work fine:
$blank = '<img src="images/blank.gif" width="2" height="1" alt="" />';
$blank = '<img src="images/blank.gif" width="1" height="2" alt="" />';
$blank = '<img src="images/blank.gif" height="1" alt="" />';
$blank = '<img src="images/blank.gif" width="1" alt="" />';

The problem seems to be the combination of (width="1" height="1").


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-04 14:44 UTC] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Works for me, and I doubt it's a bug in PHP. Provide more information.
 [2004-06-04 17:17 UTC] admin at cyaccess dot com
My sincere apologies

It was not PHP but the proxy server software that was removing the one pixel pic.

Please feel free to remove the report.

Take care
 [2004-06-05 11:08 UTC] derick@php.net
Setting the status to "Bogus" then as it has nothing to do with PHP.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 21:01:33 2025 UTC