Bug #67044 [NEW]: png images with name starting by 'ads_' are not displayed.
| From: | valentin dot alba at gmail dot com | Date: | Tue, 08 Apr 2014 09:40:49 +0000 |
| Subject: | Bug #67044 [NEW]: png images with name starting by 'ads_' are not displayed. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-185138@lists.php.net to get a copy of this message | ||
From: valentin dot alba at gmail dot com
Operating system: Debian 8.0 Jessie
PHP version: 5.5.11
Package: Reproducible crash
Bug Type: Bug
Bug description:png images with name starting by 'ads_' are not displayed.
Description:
------------
It seems that php misparses string expressions that begins with 'ads_'.
The following code shows how two images, one with filename starting by
'ads_' is not displayed, while the same image with filename starting by
'adse_' is displayed.
Test script:
---------------
<html>
<head>
<title>PRACTICA ADSORCION</title>
</head>
<body>
<?php
$counter = "1167";
$picture = "<img alt='ads_$counter.png'
src='./images/ads_$counter.png' width=480 height=480 >";
print $counter;
print $picture;
$counter = "1179";
$picture = "<img alt='adse_$counter.png'
src='./images/adse_$counter.png' width=480 height=480 >";
print $counter;
print $picture;
?>
</br>
</body>
</html>
Expected result:
----------------
Two images should have been displayed.
Actual result:
--------------
Only one image is displayed.
No image with prefix 'ads_' can be displayed.
--
Edit bug report at https://bugs.php.net/bug.php?id=67044&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67044&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67044&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67044&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67044&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67044&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67044&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67044&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67044&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67044&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67044&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67044&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67044&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67044&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67044&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67044&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67044&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67044&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67044&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67044&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67044&r=mysqlcfg