[joomla] PHP 5.3 and Joomla
Anthony Ferrara
ircmaxell at yahoo.com
Thu Apr 30 08:41:54 EDT 2009
Well, based upon http://us2.php.net/manual/en/function.call-user-func-array.php the variables being called (which are stored in the array as a reference IIRC) are not being passed correctly. To me, this looks like a php bug (or a documentation bug) more than anything else...
--- On Wed, 4/29/09, Hans Zaunere <lists at zaunere.com> wrote:
> From: Hans Zaunere <lists at zaunere.com>
> Subject: Re: [joomla] PHP 5.3 and Joomla
> To: "'NYPHP SIG: Joomla'" <joomla at lists.nyphp.org>
> Date: Wednesday, April 29, 2009, 5:25 PM
> > I've upgraded a dev. server to
> 5.3 and it's severely broken Joomla. While
> > I've turned off all the obvious errors, there are
> things that just don't
> > work (like certain docman templates not showing up).
> >
> > I'm investigating as to if the problem is fixable, but
> has anyone tackled
> > this before?
>
> So actually most things appear to work without issue.
> However I did find
> one culprit.
>
> In libraries/joomla/cache/handler/callback.php around line
> 99 there's:
>
> $result = call_user_func_array($callback,$args);
>
> which ends up triggering an error:
>
> Parameter 1 to modMainMenuHelper::buildXML() expected to be
> a reference,
> value given in
> /var/www/xxx/libraries/joomla/cache/handler/callback.php on
> line 100, referer: http://xxx/login
>
> So in modules/mod_mainmenu/helper.php around line 31 I
> simple changed:
>
> function buildXML(&$params)
>
> to
>
> function buildXML($params)
>
> This works for now but perhaps it's not a good solution,
> especially over the
> long term. The problem being that in 5.3, when
> there's a value/reference
> mismatch, NULL is passed in. Whereas with 5.2, it's
> effectively ignored and
> it doesn't really matter.
>
> This might be a long term problem with using
> call_user_func_array() in
> general but I'm not sure of a better solution?
>
> H
>
>
>
> _______________________________________________
> New York PHP SIG: Joomla! Mailing List
> http://lists.nyphp.org/mailman/listinfo/joomla
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
More information about the Joomla
mailing list