Date: 01/17/01
- Next message: Rasmus Lerdorf: "Re: [PHP-DEV] Redirecting output to a file"
- Previous message: Sebastian Bergmann: "Re: [PHP-DEV] ADT in PHP - where do we want them?"
- Next in thread: Shaun Batterton: "Re: [PHP-DEV] Re: [PHP] calling static class functions using a function variable"
- Reply: Shaun Batterton: "Re: [PHP-DEV] Re: [PHP] calling static class functions using a function variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Hi all,
> Hope you can help. I have an class called xml and a class method called
> hi_handler. I am able to call this method statically as follows:
>
> xml::hi_handler($attrs);
>
> but when I try to call it like this, it fails miserably:
>
> $junk="xml::hi_handler";
> $junk();
>
> Fatal error: Call to undefined function: xml::hi_handler()
>
> Any ideas - besides the obvious way of using a dummy instance. I am using
> php 4.0.3pl1
I wouldn't have expected that to work, but I did expect something like:
xml::$func()
to work. However I just tested it and it doesn't. Perhaps something that
can be fixed.
-Rasmus
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Rasmus Lerdorf: "Re: [PHP-DEV] Redirecting output to a file"
- Previous message: Sebastian Bergmann: "Re: [PHP-DEV] ADT in PHP - where do we want them?"
- Next in thread: Shaun Batterton: "Re: [PHP-DEV] Re: [PHP] calling static class functions using a function variable"
- Reply: Shaun Batterton: "Re: [PHP-DEV] Re: [PHP] calling static class functions using a function variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

