#35305 [Opn->Fbk]: include with GET vars crash PHP
| From: | sniper@php.net | Date: | Sun, 20 Nov 2005 17:55:30 +0000 |
| Subject: | #35305 [Opn->Fbk]: include with GET vars crash PHP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-88583@lists.php.net to get a copy of this message | ||
ID: 35305
Updated by: sniper@php.net
Reported By: labsy at seznam dot org
-Status: Open
+Status: Feedback
Bug Type: IIS related
Operating System: Windows 2003
PHP Version: 5.0.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-11-20 17:44:49] labsy at seznam dot org
Description:
------------
Ocasionally my PHP crashes on IIS 6.0 with error:
PHP encountered access violation at...
From that moment further PHP pages don't work until I restart IIS, but
other pages, like ASP and HTML, parse normally.
I found one piece of code which MAY (but does not always) reproduce PHP
crash on IIS. It may occure when PHP "include" command tries to include
a file with GET vars inside a block of another PHP/HTML mixed block.
Reproduce code:
---------------
<?php
echo "Hello PHP World <br>\n";
{
?>
Hello HTML world! This is HTML part of code.
<?php // Here we include a file with GET var
// and produce PHP crash
include "test_bug2.php?b=dfdfdfdf";
?>
<?php }
?>
Expected result:
----------------
An ERROR should be produced:
Warning: main(test_bug2.php?b=dfdfdfdf) [function.main]: failed to open
stream: Invalid argument in test_bug1.php on line
Actual result:
--------------
Instead, on Win 2003 with IIS, this code SOMETIMES causes PHP to crash
with error:
PHP has encountered access violation at address ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35305&edit=1