From: jonathan dot semczyk at telecomlille dot net Operating system: Linux 2.4.26-grsec PHP version: 5CVS-2005-10-13 (snap) PHP Bug Type: Apache2 related Bug description: Related to a crash with mod_rewrite corrected earlyier
Description: ------------ hi, I experienced the same behaviour as in the bug #34581 , sorry but when I answered I did not realized that it was for a FreeBSD, I was running on Linux. Anyway I had the segfault at the same time using mod_rewrite. I applied the patch provided by Tony and it did run once, it was just too good to be true, now I have a blank page, If I turn the rewrite engine off everything is fine, and if I replace the index.php by an index.html inside the htaccess it also works as expected. As suggested in the other bug report it does the same if I put the rewrite code inside the httpd.conf I have snapshot from Oct 12, 2005 22:30 GMT I used the php.ini-recommanded Apache 2.0.54 Reproduce code: --------------- .htaccess code : RewriteEngine On RewriteRule ^.*$ index.php [L] index.php : anything, even only html. Expected result: ---------------- see the text from the index.php for every URL Actual result: -------------- blank page. Apache gets the results from PHP as I get an entry in my logs : - - [13/Oct/2005:02:14:18 +0200] "GET /dsfsd,sdf HTTP/1.1" 200 - "-" "Mozilla/5.0 ( ..... As you can see the rewrite works (I get a 200 return code) but the size of the returned page is 0. -- Edit bug report at http://bugs.php.net/?id=34846&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34846&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34846&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34846&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34846&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34846&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34846&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34846&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34846&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34846&r=support Expected behavior: http://bugs.php.net/fix.php?id=34846&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34846&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34846&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34846&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34846&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34846&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34846&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34846&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34846&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34846&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34846&r=mysqlcfg