Hi friends,
When I was making a test running Zend Framework on IIS Server I've stopped by a problem. After some tests I've found a bug at this line: The bug occurs because when you put http://www.xxx.com/
as your's url the apache server returns http://www.xxx.com/
, but IIS returns http://www.xxx.com/index.php
or your default page.
That action causes a crash at the 71th line of library\zend\controllers\route.php, where strlen($controller) now will not return 0 but 9 (if index is your default page) and 'index.php' isn't a controller, then noRouteAction will be selected, returning to index.php, this error will be again and will return to index again.... and thus successively.
sorry by disturb, and congratulations for the good job,
Bruno Eduardo de resende Oliveira
I'm running ZF on IIS. It functions great with a small workaround. You have to install Isapi_Rewrite (http://www.isapirewrite.com/
) to get mod_rewrite-like functionality in IIS. Then in Zend_Controller_Router you only need to change line 52 in Zend/Controller/Router.php from
$path = $_SERVER['REQUEST_URI'];
to
$path = strtolower($_SERVER['HTTP_X_REWRITE_URL']);
Isapi_Rewrite sets the HTTP_X_REWRITE_URL $_SERVER variable to be what REQUEST_URI would be if you were running on Apache and using mod_rewrite.
I hope that helps.
06/12/06 06:22:42: Modified by Link