Re: Re[4]: [PHP-PEAR] Re: [phplib] Re: [PHP-PEAR] PHPLib and Pear merge
[email protected] ((Stig Sæther Bakken)) 13 Mar 2001 22:51:47 +0100
| Newsgroups | php.pear |
|---|---|
| Message-ID | <[email protected]> |
["Jesus M. Castagnetto" <[email protected]>] > --- Stig Sæther Bakken <[email protected]> wrote: [...snip...] > > A C rewrite would at least do away with the compilation overhead, > >and add some execution speed. There are other goodies that are only > >available in C too, such as object overloading. I've started > >converting the PEAR base class to C while figuring out the ins and > >outs of the Zend class API. > > That sounds very interesting. One thing that would be also good to > have is method overloading, but not critical because we can always > fake it in PHP. > > And while we are at it, do you know what would be needed to implement > desctructors in objects? If we are going to have objects with a life > longer than the ones we have now, I think we will need destructors, as > well as some type of object garbage collection or memory leak > protection. > > BTW, I had not had much experience w/ the Zend API, so some of this > might already be there. Zeev and Andi have said something about hell freezing over before PHP gets real destructors. It may seem simple to "just call the destructor when an object's refcount reaches 0", but it's not really that simple (I don't remember the details). If you've ever read the code for xterm, it says "There be dragons." I guess you could say the same warning applies for Zend. ;-) - Stig -- Stig Sæther Bakken <[email protected]> Fast Search & Transfer ASA, Trondheim, Norway