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:
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? Previous Comments: ------------------------------------------------------------------------ [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. :( ------------------------------------------------------------------------ [2005-11-05 09:45:15] tmelzer at tomesoft dot de Further analyzes have shown me that the fix in 4.4.x-dev was in sapi/apache2handler/sapi_apache2.c in function php_handler to guard against the member 'handler' on struct request_rec of beeing NULL and then accessing it. This was fixed in only one case where around line 518 'if (parent_req && parent_req->handler && ...'. After I added an r->handler && strcmp ... to the other places where the structure member is used the crash went away but I got a 404 - file not found error. I think this is related to the fact that I'm not sure what to do if several of this if () statements are evalute false i.e. what to place in the else block. ------------------------------------------------------------------------ [2005-11-04 22:57:08] [EMAIL PROTECTED] I want you to try the PHP 5 snapshot because I want to be sure this is only happening with PHP 4. In which case we have better chance of figuring out what fix to backport from PHP 5. On the other hand, if this also happens with PHP 5, we really need to know since we're about to release PHP 5.1 and it would be nice to fix this kind of things before the release.. ------------------------------------------------------------------------ [2005-11-04 20:04:37] rob at burningsoda dot com sniper, This problem occurs only when using PHP 4.4.1 and the PHP 4-snapshots _and_ apache 2.x. Why should I try a 5.x-snapshot? Do I misunderstand you? ------------------------------------------------------------------------ [2005-11-04 09:25:24] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ 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