Re: [PHP-DEV] Zend Engine expert wanted!

2002-06-08 Thread Brian France
At 2:57 AM +0300 6/8/02, Zeev Suraski wrote: We're on the job. I generally think you're right, we have to do some more thinking but chances are we will change the shutdown order to be reversed. Just a FYI, may want to do the same for zend_extension (reverse order). I think that is a

[PHP-DEV] Zend Engine expert wanted!!!!

2002-06-07 Thread Brian France
Zend Engine unloading extension in the wrong order! (Re-post due to no response) I have been tracking down a core dump with my php extension when it is unloading some of its shared libraries. I have shared extension that is link against libexpat and will load fine if it is the only on in

Re: [PHP-DEV] Zend Engine expert wanted!!!!

2002-06-07 Thread brad lafountain
If this is your problem maybe a offical soultion to the problem should be thought. Like in your extension you can define a priority for loading and unloading your extension in the ini. Kinda like init.d. Has there been any discussion about this topic before. - brad --- Brian France [EMAIL

Re: [PHP-DEV] Zend Engine expert wanted!!!!

2002-06-07 Thread Brian France
The issue is *not* the order in which the Zend Engine is loading them in, but the order it is unloading them in. Switching order for loading was a fix that just happened to work. With the patch I provided I can put them in any order and it works. Looking at the Apache source it keeps a list

Re: [PHP-DEV] Zend Engine expert wanted!!!!

2002-06-07 Thread Andi Gutmans
Can you check and see if using zend_hash_graceful_reverse_destroy() fixes your problem? Andi At 11:44 AM 6/7/2002 -0700, Brian France wrote: Zend Engine unloading extension in the wrong order! (Re-post due to no response) I have been tracking down a core dump with my php extension when it is

Re: [PHP-DEV] Zend Engine expert wanted!!!!

2002-06-07 Thread Brian France
I will try that, but I was worried that the pDestructor function would not get called for each item like it was in zend_hash_destroy. Is this the case? Looking at the code what is the difference between zend_hash_graceful_destroy and zend_hash_destroy? Thanks again for the help! Brian At

Re: [PHP-DEV] Zend Engine expert wanted!!!!

2002-06-07 Thread Andi Gutmans
At 01:00 PM 6/7/2002 -0700, Brian France wrote: I will try that, but I was worried that the pDestructor function would not get called for each item like it was in zend_hash_destroy. Is this the case? Looking at the code what is the difference between zend_hash_graceful_destroy and

Re: [PHP-DEV] Zend Engine expert wanted!!!!

2002-06-07 Thread Brian France
Yes, zend_hash_graceful_reverse_destroy() fixes the problem as well. Is this a better solution for the fix? Thanks, Brian At 11:06 PM +0300 6/7/02, Andi Gutmans wrote: At 01:00 PM 6/7/2002 -0700, Brian France wrote: I will try that, but I was worried that the pDestructor function would not

Re: [PHP-DEV] Zend Engine expert wanted!!!!

2002-06-07 Thread Andi Gutmans
At 01:14 PM 6/7/2002 -0700, Brian France wrote: Yes, zend_hash_graceful_reverse_destroy() fixes the problem as well. Is this a better solution for the fix? It's the same but doesn't require a new function. Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit:

Re: [PHP-DEV] Zend Engine expert wanted!!!!

2002-06-07 Thread Zeev Suraski
Brian, We're on the job. I generally think you're right, we have to do some more thinking but chances are we will change the shutdown order to be reversed. Sorry for not ack'ing earlier. Zeev At 09:44 PM 6/7/2002, Brian France wrote: Zend Engine unloading extension in the wrong order!