Hi
Thanks for you to point me such coding style.
I had looked in to unserialize() callback mechanism, you know,
it is now disabled in 4.1.2 (look at ext/standard/incomplete_class.c )
In manual also there is nothing about callback function and all, anyway
the link you showed me has a seperate Note about that.
I think to pass the undef_function_name as first argument, could
you point me any code similar to this.
> S.Murali Krishna wrote:
> > Hi,
> > As I told in my Previous Post that I have added a feauture in PHP
> > which is similar to AUTOLOAD feauture in Perl Modules.
> >
> > I had sent a unified diff output along with this.
> >
> > According to that if a user tried to call a undefined function,
> > PHP Zend Engine would search for a function named '__autoload' in current
> > scope, if it finds one, it would set the global variable
> >
> > $php_undef_func_name
> >
> > with name of the called function and call the __autoload() function with
> > passed arguments.
> >
> > Its working fine for me. If it seems to be good, we could discuss
> > on this.
>
> please have a look at the callback mechanism for unserialize()
> ( http://php.net/unserialize ) and try to follow the scheme already
> implemented for including files for undefined classes on demand
>
>
>
> --
> Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
<[EMAIL PROTECTED]>
-------------------------------------------------------------------
We must use time wisely and forever realize that the time is
always ripe to do right."
-- Nelson Mandela
-------------------------------------------------------------------
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php