Bug #67044 [Nab]: png images with name starting by 'ads_' are not displayed.

From: Date: Fri, 25 Apr 2014 09:35:50 +0000
Subject: Bug #67044 [Nab]: png images with name starting by 'ads_' are not displayed.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185435@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67044&edit=1

 ID:                 67044
 User updated by:    valentin dot alba at gmail dot com
 Reported by:        valentin dot alba at gmail dot com
 Summary:            png images with name starting by 'ads_' are not
                     displayed.
 Status:             Not a bug
 Type:               Bug
 Package:            *General Issues
 Operating System:   Debian 8.0 Jessie
 PHP Version:        5.5.11
 Block user comment: N
 Private report:     N

 New Comment:

Thank you!
You were right, Mozilla's adblocker add-on messed me up...


Previous Comments:
------------------------------------------------------------------------
[2014-04-10 12:42:54] anon at anon dot anon

Never name your images "ads_*" or "ad_*", as ad-blockers will eat them.

------------------------------------------------------------------------
[2014-04-08 17:22:00] requinix@php.net

I guarantee you this is not a bug with PHP.

Your browser will tell you best why the image isn't loading. Maybe it 404s. Maybe it's not
an image. Maybe it's getting ad blocked.

------------------------------------------------------------------------
[2014-04-08 14:28:48] trainmaster at gmx dot net

Not reproducible, seems to be something different. Corrupted image? Typo?

------------------------------------------------------------------------
[2014-04-08 09:40:48] valentin dot alba at gmail dot com

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 this bug report at https://bugs.php.net/bug.php?id=67044&edit=1


Thread (5 messages)

« previous php.bugs (#185435) next »