From: admin at cyaccess dot com Operating system: Win XP PHP version: 4.3.7 PHP Bug Type: Unknown/Other Function Bug description: Simple Variable reading bug
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"). -- Edit bug report at http://bugs.php.net/?id=28624&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28624&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28624&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28624&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28624&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28624&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28624&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28624&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28624&r=support Expected behavior: http://bugs.php.net/fix.php?id=28624&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28624&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28624&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28624&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28624&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28624&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28624&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28624&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28624&r=float