ZF-9776: Query string params not accessible when bootstrapping via Apache ErrorDocument 404

Description

There's a small typo in Zend_Controller_Request_Apache404 that will prevent query string parameters (?foo=bar) from being accessible.

Seems that the two references to $_SERVER['REDIRECT_QUERYSTRING'] should instead be $_SERVER['REDIRECT_QUERY_STRING'].

Initially I thought this may have been an Apache version specific issue, but after googling for both REDIRECT_QUERY_STRING and REDIRECT_QUERYSTRING it appears that REDIRECT_QUERYSTRING has been a typo all along.

References to the correct REDIRECT_QUERY_STRING are made on http://httpd.apache.org/docs/2.2/custom-error.html

Thanks!

Comments

Patch attached.

Fixed in trunk at r23987 and in release branch 1.11 at r23988