On Wed, Sep 26, 2001 at 12:13:36PM +0300, Emanuel Dejanu wrote :
> I have them in my code. I have miss them in my e-mail, sorry.
> Have somebody an real example that is working, really checked
> because I have really check all the sources and found anything!!!
Maybe you can find useful informati
TECTED]]
> Sent: Wednesday, September 26, 2001 11:54 AM
> To: Emanuel Dejanu
> Cc: 'Jeff Hughes'; [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] How do I register a constructor in PHP (C code)
>
>
> Another thing I noticed is that you didn't end the
> zend_function_
23 PM
> > To: Emanuel Dejanu
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP-DEV] How do I register a constructor in PHP (C code)
> >
> >
> > I believe the problem you are having is that the
> > zend_class_entry structure
> > destroyed as you leave
tember 25, 2001 9:23 PM
> To: Emanuel Dejanu
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] How do I register a constructor in PHP (C code)
>
>
> I believe the problem you are having is that the
> zend_class_entry structure
> destroyed as you leave the scope of the MINIT
I believe the problem you are having is that the zend_class_entry structure
destroyed as you leave the scope of the MINIT function. This is definitely
going to have undefined behavior. Move the zend_class_entry so that it is
global and you should be good to go.
Jeff Hughes
[EMAIL PROTECTED]
On
I write an extension and I want to register a new class
but I can not get my function to be registered as a constructor.
ex:
PHP_FUNCTION(rt66class_constructor);
static zend_function_entry php_rt66class_class_functions[] =
{
PHP_FALIAS(RT66Class, rt66class_constructor, NULL)
};
PHP_MI