|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-04-08 14:28 UTC] trainmaster at gmx dot net
[2014-04-08 17:21 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
-Package: Reproducible crash
+Package: *General Issues
[2014-04-08 17:22 UTC] requinix@php.net
[2014-04-10 12:42 UTC] anon at anon dot anon
[2014-04-25 09:35 UTC] valentin dot alba at gmail dot com
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 13:00:01 2026 UTC |
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.