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

From: Date: Wed, 02 May 2001 20:41:18 +0000
Subject: PHP 4.0 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-53452@lists.php.net to get a copy of this message
ID: 10609 User Update by: tummarel@ascu.unian.it Status: Open Bug Type: Scripting Engine problem Description: comments made with # or // in included files cause visible output 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; Previous Comments: --------------------------------------------------------------------------- [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 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=10609

« previous php.dev (#53452) next »