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


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



Patch attached.

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