Bug #17868 Updated: Does not work two and more <!-- include virtual bla-bla--> directives of PHP sc
| From: | dave at nobodynet dot net | Date: | Mon, 24 Jun 2002 04:21:25 +0000 |
| Subject: | Bug #17868 Updated: Does not work two and more <!-- include virtual bla-bla--> directives of PHP sc | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11861@lists.php.net to get a copy of this message | ||
ID: 17868
Updated by: dave@nobodynet.net
Reported By: messiah@hotbox.ru
Status: Open
Bug Type: Apache2 related
Operating System: WinXP&Win98
PHP Version: 4.2.1
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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