Bug #17868: Does not work two and more <!-- include virtual bla-bla--> directives of PHP sc

From: Date: Thu, 20 Jun 2002 07:45:17 +0000
Subject: Bug #17868: Does not work two and more <!-- include virtual bla-bla--> directives of PHP sc
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11518@lists.php.net to get a copy of this message
From: messiah@hotbox.ru Operating system: WinXP&Win98 PHP version: 4.2.1 PHP Bug Type: Apache2 related Bug description: Does not work two and more <!-- include virtual bla-bla--> directives of PHP sc 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 bug report at http://bugs.php.net/?id=17868&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17868&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17868&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17868&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17868&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17868&r=support Expected behavior: http://bugs.php.net/fix.php?id=17868&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17868&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17868&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17868&r=globals

« previous php.bugs (#11518) next »