Bug #17868 Updated: Doesn't work two and more <!--include--> directives of PHP code on different OS

From: Date: Fri, 19 Jul 2002 05:26:15 +0000
Subject: Bug #17868 Updated: Doesn't work two and more <!--include--> directives of PHP code on different OS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14594@lists.php.net to get a copy of this message
ID: 17868 Updated by: Darryl.Friesen@usask.ca Reported By: messiah@hotbox.ru Status: Open Bug Type: Apache2 related Operating System: * PHP Version: 4.2.1 New Comment: I assumed this to be a problem with Apache (mod_incude?), but according to http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10041 the Apache people cast the blame on PHP. So let me add that I too am experiencing this problem on Solaris 8 using PHP 4.2.1 with Apache 2.0.39. Previous Comments: ------------------------------------------------------------------------ [2002-07-06 09:08:12] art@kzn.ru Seems to be a similar problem here (apache-2.0.40 & php-4.3dev latest from cvs) Is anybody working on fixing that? ------------------------------------------------------------------------ [2002-06-24 02:07:56] messiah@hotbox.ru Latests comments indicate that such bug is cross-platform. ------------------------------------------------------------------------ [2002-06-24 00:21:24] dave@nobodynet.net I have just hit the same bug on my Linux system, running Apache 2.0.39. The number of includes that work vary depending on what the included file contains. I've had a file with 6 identical includes in, and nothing else. With a simple 'echo "hello world";' file included, only the first one gets parsed. With a more complex php file, each alternate instance gets parsed. Any file that doesn't get parsed, just appears as the raw php code in the browser. Hope this helps. --Dave ------------------------------------------------------------------------ [2002-06-20 03:45:16] messiah@hotbox.ru When I try to include some scripts in html file, I find that when I include like this: <!--#include virtual="test.html"--> <!--#include virtual="test.html"--> all includes OK. When like this: <!--#include virtual="test2.cgi"--> <!--#include virtual="test2.cgi"--> all tracers and includes OK. When like this: <!--#include virtual="test3.php"--> <!--#include virtual="test3.php"--> tracers only first include. I mean, how many different includes of php scripts you write in, only first will parse. When I include script with really wrong filename I see in apache logs error like: [Wed Jun 19 11:11:16 2002] [error] [client 127.0.0.3] unable to include "abo234ut.php" in parsed file C:/www/kw/htdocs/index.html But when all filenames are valid and scripts working OK, includes only first include of PHP script. I try two versions of PHP - php-4.2.1-Win32 and php-4.0.6-Win32 and both did such boo boo |-: After all I uninstalled Apache2 and install back apache_1.3.20-win32 and all includes start works again OK. All of PHP, cgi, html includes parses OK and work good. After all I asked my friend to test such bug and hi find that his Apache 2.0.36 and PHP4 made such bug too. He ran whem under Win98. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17868&edit=1

« previous php.bugs (#14594) next »