|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-05-01 14:53 UTC] steve at teamITS dot com
I have a few PHP files that have a common header and footer which I pull in using an include(). After our web host upgraded from 4.0.6 to 4.1.2 I realized that include() was not working properly. My included file had a section with PHP tags that was commented out, like: //<?php //echo "hello"; //?> echo "hello2"; 4.0.6 would ignore these, but 4.1.2 ignores that there is a comment marker, and ends the PHP interpreter in the comment line, sending the 'echo "hello2";' and remaining code as TEXT to the browser. I am not sure if this qualifies as a bug but is definitely different that the behavior of 4.0.6 which ignored all commented lines. I have duplicated this on a Windows NT 4 server also. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 10:00:01 2025 UTC |
Thank you for looking into this, and I did miss this in the manual. However it was working fine for a long time with the previous version. After some thought I realized that my original note was incorrect in a minor but significant way...the file had the ASP-style tags commented out ("%>"). I changed that to the "?>" tags and of course saw the same "problem." So perhaps 4.0.6 stopped at all tags except the ASP-style tags. In any case it sounds like it is a bogus report for 4.1.2, sorry.