ID:               35096
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rob at burningsoda dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Apache2 related
 Operating System: *
 PHP Version:      5CVS, 4CVS (2005-11-04) (snap)
 New Comment:

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?


Previous Comments:
------------------------------------------------------------------------

[2005-11-07 15:54:13] rob at burningsoda dot com

[EMAIL PROTECTED]:~/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] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[2005-11-06 15:52:48] [EMAIL PROTECTED]

Exactly how can we reproduce this? It works just fine for me when I
have this .htaccess file:

RewriteEngine on
RewriteRule ^(.+)/$ index.php?myarg=$1 [L]

So what else do we need?


------------------------------------------------------------------------

[2005-11-06 04:01:51] rob at burningsoda dot com

doh!

PHP 5.1.0RC5-dev (cli) (built: Nov  6 2005 03:52:41)

I just tried a php5-snapshot. Same problem here. :(

------------------------------------------------------------------------

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

Reply via email to