[EventCalendar] Re: Event Calendar warning message in WP 2.0.4

Rusty Smith rusty.smith at auburn.edu
Tue Sep 19 13:01:23 UTC 2006


Yes you are correct Alex - our PHP Version is 4.4.1
Running on a Windows IIS server.

I am not sure how to find where "PHP_VERSION" is set? I will go back  
to our server folks to see if they can tell me more....

Rusty


On Sep 19, 2006, at 2:33 AM, Alex Tingle wrote:

> Darrell, Rusty,
>
> The trouble is, I think Rusty is running that code, but still getting
> the problem.
>
> I'll ask again: Rusty, Which version of PHP are you using? What is  
> it's
> PHP_VERSION set to?
>
> -Alex
>
> --
>
> On Mon, 18 Sep 2006 19:57:20 -0500
> Darrell Schulte <d at schulte.mn> wrote:
>
>>
>> On Sep 18, 2006, at 6:08 PM, Rusty Smith wrote:
>>
>>> OK, this seems to fix it, but might break other things? (I am no
>>> coder):
>>> Changed line 63 in event calendar3.php from:
>>>
>>> $post_ids=array_flip(&$post_ids); // Old syntax
>>>
>>> to
>>>
>>> $post_ids=array_flip($post_ids); // Old syntax
>>>
>>> (Note the deletion of the "&" before "$post_ids)"
>>>
>>> Please let me know if this whacks anything else that I do not
>>> notice in this config...
>>
>> Nope, that's a good call, Rusty...was fixed during revision 93
>> though...handled from now on with this nice chunk of code...
>>
>>    // Flip $post_ids so that it maps post ID to position in the
>> $posts array.
>>    $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
>>
>>
>>
>> Darrell Schulte
>> http://schulte.mn
>>
>>
>>
>> _______________________________________________
>> EventCalendar mailing list
>> EventCalendar at firetree.net
>> http://penguin.firetree.net/cgi-bin/mailman/listinfo/eventcalendar
>
>
> -- 
> :: Let me solve your problems: http://www.firetree.net/consulting/
> :: alex.tingle AT firetree.net  +44-7901-552763

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20060919/0bbcf296/attachment.html


More information about the EventCalendar mailing list