From: Matthew Leingang <leingang@ma...> - 2002-08-13 11:16:07
That puzzles me about the error message, since the syntax is fine for your
version. Before it gets to that error message, can you tell if
$_TZ['obj'] is an object? You can do something like
debug('$_TZ[obj] is a',get_class($_TZ['obj']);
and make sure $_PSL['debug'] is true.
If the object is not there, then we have to figure out where and why it
didn't get instantiated.
As for the day, months, etc., setlocale() is probably the "right" way to
do this in a unix environment. Do
in the config for a quick fix. Then any time you use strftime() to format
a date (and all the tz classes use this instead of date() for this
reason), the localized names will be used.
On Tue, 13 Aug 2002, Lars wrote:
> Hi, and thanks for getting back to me!
> I honestly have no experience with PHP (except for playing around with
> phpslash), so I'm not really in any position to give advice or tell you
> what to do ;o) However, I cannot use it if this (or something similar) is
> not done. My test platform is running php 4.1.2, and so is the one I will
> be implementing it on.
> Also - if you do something with it, would it be possible to add an array
> for day (mon, tue, etc), months and short months ? This would help towards
> >Thanks for testing this out. call_user_func_array is supposed to accept a
> >callback of the form array($obj,'method'), which is the same as
> >$obj->method(...). I don't know when this became valid PHP syntax. I
> >can't find a definition for callback in the manual.
> >My version is running on PHP 4.0.5, and works fine.
> >Should I rewrite the functions to not use call_user_func_array()? I only
> >did it to save typing on my part.
> >It could also be that the object $_TZ['obj'] is not getting
> >instantiated...but my guess is that the error message would be different.
Matthew Leingang http://www.math.rutgers.edu/
Rutgers University leingang@...
Department of Mathematics "This signature needs no quote."