Date: 12/05/00
- Next message: Teodor Cimpoesu: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- Previous message: Ulf Wendel: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- In reply to: R.B. Scholtus: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- Next in thread: Max Derkachev: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"R.B. Scholtus" schrieb:
>
> I agree on using php4 only features (for the php4 only classes).
> but i would be so very happy if i could get it (custom save handlers for
> php4) to work for php400 etc users also. because many out there cannot
> recompile php themselves....
>
> Is it possible to make a global reference to a function inside a class? i
> could use the global reference inside a simple function and pass that simple
> function's name to set_save_handler().
>
> so something like this:
> () *open = &SH_Sql::open()
> shit i even forgot how it works in c.
I'm not sure what you need. PHP does not know function pointers.
In most cases you find a workaround using call_user_method(),
call_user_func() or variable functions, sometimes you might even want to
use the error handler callback functionality.
http://www.php.net/manual/function.call-user-method.php
http://www.php.net/manual/function.call-user-func.php
Ulf
-- Ulf Wendel, NetUSE AG Siemenswall, D-24107 Kiel Tel: +49 431 386 436 00, Fax: +49 431 386 435 99--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected> For additional commands, e-mail: phplib-dev-help <email protected>
- Next message: Teodor Cimpoesu: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- Previous message: Ulf Wendel: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- In reply to: R.B. Scholtus: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- Next in thread: Max Derkachev: "Re: [phplib-dev] Session class with PHP4 sessions and custom handlers commited"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

