-- Arnaud Limbourg <[EMAIL PROTECTED]> wrote
(on Tuesday, 28 November 2006, 07:47 PM +0100):
> Matthew Weier O'Phinney wrote:
> > -- St??phane Thomas <[EMAIL PROTECTED]> wrote
> > (on Tuesday, 28 November 2006, 10:19 AM -0800):
> > > I had the same problem than you, Asger Hallas and Martel Valgoerad. 
> > > However
> > > if you update line 464 and remove the latest change done in
> > > Zend_Controller_Request_Http (aka removing the minus 1) it's working fine.
> > > So you would have:
> > >
> > > Line 464: if ((null !== $baseUrl) && (false === ($pathInfo =
> > > substr($requestUri, strlen($baseUrl))))) {
> > >
> > > But this is just a temporary workaround...
> >
> > Actually, I reverted the change a few hours ago, and if you update from SVN,
> > you should be set.
> 
> The problem I had was with a url of the type
> 
>     $request    = new Zend_Controller_Request_Http();
>     $request->setBaseUrl('http://localhost/~username/myapp');
> 
> So i suspect there is more at stake (or there is something i don't do 
> right :)

I think I know what's happening here. When automatically calculating the base
URL, the request object uses $_SERVER['REQUEST_URI'] -- which doesn't contain
the protocol/server/port information. Try this:

    $request->setBaseUrl('/~username/myapp');

and see if that improves the situation.

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to