From: [EMAIL PROTECTED] Operating system: WinNT 4, IRIX64 vega 6.5 07091 PHP version: 4.1.2 PHP Bug Type: *Compile Issues Bug description: include interprets commented php tags
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. -- Edit bug report at http://bugs.php.net/?id=16948&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16948&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16948&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16948&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16948&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16948&r=support Expected behavior: http://bugs.php.net/fix.php?id=16948&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16948&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16948&r=submittedtwice