From: labsy at seznam dot org Operating system: Windows 2003 PHP version: 5.0.5 PHP Bug Type: IIS related Bug description: include with GET vars crash PHP
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 bug report at http://bugs.php.net/?id=35305&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35305&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35305&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35305&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35305&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35305&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35305&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35305&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35305&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35305&r=support Expected behavior: http://bugs.php.net/fix.php?id=35305&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35305&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35305&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35305&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35305&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35305&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35305&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35305&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35305&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35305&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35305&r=mysqlcfg