#35096 [Com]: using mod_rewrite with apache2 crashes

From: Date: Mon, 07 Nov 2005 15:50:40 +0000
Subject: #35096 [Com]: using mod_rewrite with apache2 crashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87778@lists.php.net to get a copy of this message
ID: 35096 Comment by: sergeym at hoster dot ru Reported By: rob at burningsoda dot com Status: Feedback Bug Type: Apache2 related Operating System: * PHP Version: 5CVS, 4CVS (2005-11-04) (snap) New Comment: May be it's platform-depend bug? I have errors on AMD64/FreeBSD. Previous Comments: ------------------------------------------------------------------------ [2005-11-07 16:13:50] Brian dot white at foxfire74 dot com I am using virtual hosts with all of my PHP files in an aliased directory. Maybe that makes a difference as to weather or not PHP can find the include files. Here is my diff: --------------- Compare: (<)php.ini-recommended (40595 bytes) with: (>)php.ini (40652 bytes) 443c443 < extension_dir = "./" --- > extension_dir = "./extensions" 556c556 < ;extension=php_mbstring.dll --- > extension=php_mbstring.dll 569c569 < ;extension=php_gd2.dll --- > extension=php_gd2.dll 579c579 < ;extension=php_mcrypt.dll --- > extension=php_mcrypt.dll 614c614 < SMTP = localhost --- > SMTP = myserver 618c618,619 < ;sendmail_from = me@example.com --- > sendmail_from = Admin@mydomain.com ------------------------------------------------------------------------ [2005-11-07 15:56:25] sniper@php.net So we have same php.ini file in use now. And I still can't reproduce using your rewrite rules and script. So what else is different? ------------------------------------------------------------------------ [2005-11-07 15:54:13] rob at burningsoda dot com rob@sickbox:~/web/devel/phpbug> diff /usr/local/etc/php.ini-dist /usr/local/etc/php.ini 94c94 < output_buffering = Off --- > output_buffering = 4096 :) ------------------------------------------------------------------------ [2005-11-07 15:42:09] sniper@php.net It isn't that setting. Everything works just fine for me even when I have output_buffering=4096 (default in php.ini-recommended) Try making a diff of your php.ini against the "base" php.ini-* found in the snapshot. ------------------------------------------------------------------------ [2005-11-07 12:35:21] rob at burningsoda dot com After rebuilding Apache2 and PHP5-dev on different machines the whole weekend about 2 million times and wondering why some showed the bug, some not, I eventually tracked it down to the following simple configuration setting (*drum roll*): *** output_buffering *** To trigger the bug, set "output_buffering = On" or (e.g.) "output_buffering = 4096", TO BYPASS THE BUG (listen up, bug plagued Joomla!/Wordpress/etc. users) SET "output_buffering = Off" in your php.ini. This bypass works for PHP 4 & 5. Cheers, rob. PS: If I extend my testcase to <?php ob_start(); echo($_GET['myarg']); ob_end_flush(); ?> with "output_buffering = Off" that still does _not_ trigger the bug. Maybe that helps. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35096 -- Edit this bug report at http://bugs.php.net/?id=35096&edit=1

« previous php.bugs (#87778) next »