Bug #10609 Updated: comments made with # or // in included files cause visible output

From: Date: Sun, 06 May 2001 21:40:50 +0000
Subject: Bug #10609 Updated: comments made with # or // in included files cause visible output
Groups: php.dev 
Request: Send a blank email to php-dev+get-54157@lists.php.net to get a copy of this message
ID: 10609 Updated by: jmoore Reported By: tummarel@ascu.unian.it Old-Status: Open Status: Feedback Bug Type: Scripting Engine problem Operating system: PHP Version: 4.0.5 Assigned To: Comments: I tried this with PHP NUke etc with 4.0.6 dev. Cant reproduce neither could about 10 other people, please tell us the version of flex you are using and email the file that causes the problem specifically to php-dev@lists.php.net or to jmoore@php.net - James Previous Comments: --------------------------------------------------------------------------- [2001-05-02 16:48:54] andi@php.net I just can't reproduce this :) Can you please post the output of flex --version. Also maybe you can send the file that doesn't work as an attachement to php-dev@lists.php.net --------------------------------------------------------------------------- [2001-05-02 16:41:18] tummarel@ascu.unian.it Amazingly (i cant believe what i see) i was able to shorten the code that generates the bug (on my system, plainvalinnal redhat 6.1 running php 4.0.5 as a apache mod) to this code, note that the same code executes fine (of course) under 4.0.4; ------------------------- example bug code <?php $YouCantSeeThisOne; // After a // comment the source code gets dumped to the output.. look: $YouCanSeeThis; ?> ------------------------- end example bug code the ourput I get is : // After a // comment the source code gets dumped to the output.. look: $YouCanSeeThis; --------------------------------------------------------------------------- [2001-05-02 16:05:50] andi@php.net Please post as short as possible reproducing scripts. (First update didn't get mailed out) --------------------------------------------------------------------------- [2001-05-02 15:58:59] andi@php.net Please post as short as possible reproducing scripts. --------------------------------------------------------------------------- [2001-05-02 09:31:32] tummarel@ascu.unian.it using PHPnuke files are are often included inside others that are included as well. I had to change all the comments of my THEME.php file (the most internal include) otherwise they would produce output to the page! changing // and # to the /* */ syntax "solve" the problem! note that this only happens in included files I can easily reproduce it if needed. Only relevalnt to 4.0.5 was warking fine with 4.0.4 --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10609&edit=2

« previous php.dev (#54157) next »