php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35305 include with GET vars crash PHP
Submitted: 2005-11-20 17:44 UTC Modified: 2005-11-28 01:00 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: labsy at seznam dot org Assigned:
Status: No Feedback Package: IIS related
PHP Version: 5.0.5 OS: Windows 2003
Private report: No CVE-ID: None
 [2005-11-20 17:44 UTC] 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 ...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-20 18:55 UTC] sniper@php.net
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


 [2005-11-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC