[EventCalendar] Event Calendar warning message in WP 2.0.4
Alex Tingle
alex at firetree.net
Mon Sep 18 23:13:42 UTC 2006
Grrr, Not this again.
Look, here's the bit of code it's complaining about...
$ver=PHP_VERSION;
if(ereg('^[1-4]',$ver))
$post_ids=array_flip(&$post_ids); // Old syntax
else
$post_ids=array_flip($post_ids); // PHP 5+ syntax
Can you tell me which version of PHP you are running, and what it's
value for the PHP_VERSION attribute is.
I understood that PHP 4 *requires* the &, but that 5+ complain about it.
Does anyone know a better way to ALWAYS make the stupid thing happy?
-Alex
--
On Mon, 18 Sep 2006 17:53:29 -0500
Rusty Smith <rusty.smith at auburn.edu> wrote:
> Group:
> After activating EventCalendar 3.1.pre13 (with the patches to make
> the date interface appear and disappear properly) in a new install of
> WP 2.0.4, I get the following message at the top of all pages:
>
> Warning: Call-time pass-by-reference has been deprecated - argument
> passed by value; If you would like to pass it by reference, modify
> the declaration of array_flip(). If you would like to enable call-
> time pass-by-reference, you can set allow_call_time_pass_reference to
> true in your INI file. However, future versions may not support this
> any longer. in W:\WWW\cadc.auburn.edu\cadc-testing\wp-content\plugins
> \eventcalendar3\eventcalendar3.php on line 63
>
> This is on a different server from the one that I have been doing
> other testing on; from the looks of this code this may have something
> to do with the version of PHP that we are running? If so I will be
> able to find out that version tomorrow AM.
>
> Rusty
--
:: Let me solve your problems: http://www.firetree.net/consulting/
:: alex.tingle AT firetree.net +44-7901-552763
More information about the EventCalendar
mailing list