[PHP-DEV] zend_timeout and the SIGPROF signal

2003-02-20 Thread Jeremy Mullin
I have a question in regards to page timeouts and how the initial request is terminated. First, I apologize up front for my ignorance. I am not a php user, rather a database developer who has customers using php. I've noticed if a query takes longer than the default 30 seconds to execute, php

Re: [PHP-DEV] zend_timeout and the SIGPROF signal

2003-02-20 Thread wmeler
I have a question in regards to page timeouts and how the initial I've noticed if a query takes longer than the default 30 seconds to execute, php returns a timeout message to the user. From what I can tell, php uses the SIGPROF signal to stop execution when the 30 seconds has expired.

Re: [PHP-DEV] zend_timeout and the SIGPROF signal

2003-02-20 Thread Zeev Suraski
On timeout, the engine will call zend_bailout(), which performs a longjmp(). It does unwind the stack, but since we're dealing with C and not C++ and there are no destructors, it's your responsibility to clean after yourself. You can do it by properly registering your resources with PHP's

Re: [PHP-DEV] zend_timeout and the SIGPROF signal

2003-02-20 Thread wmeler
- Original Message - On timeout, the engine will call zend_bailout(), which performs a longjmp(). It does unwind the stack, but since we're dealing with C and not C++ and there are no destructors, it's your responsibility to clean after yourself. You can do it by properly

Re: [PHP-DEV] zend_timeout and the SIGPROF signal

2003-02-20 Thread Zeev Suraski
At 17:05 20/02/2003, [EMAIL PROTECTED] wrote: - Original Message - On timeout, the engine will call zend_bailout(), which performs a longjmp(). It does unwind the stack, but since we're dealing with C and not C++ and there are no destructors, it's your responsibility to clean after

RE: [PHP-DEV] zend_timeout and the SIGPROF signal

2003-02-20 Thread Jeremy Mullin
Suraski [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 8:16 AM To: [EMAIL PROTECTED] Cc: Jeremy Mullin; [EMAIL PROTECTED] Subject: Re: [PHP-DEV] zend_timeout and the SIGPROF signal At 17:05 20/02/2003, [EMAIL PROTECTED] wrote: - Original Message - On timeout, the engine

RE: [PHP-DEV] zend_timeout and the SIGPROF signal

2003-02-20 Thread Zeev Suraski
At 17:20 20/02/2003, Jeremy Mullin wrote: Don't call malloc? Wow, that puts some serious restrictions on what an external library can do. :) In the code that you control, obviously. Couldn't drivers be required to implement something like SQLCancel in ODBC? A mechanism that lets the driver

Re: [PHP-DEV] zend_timeout and the SIGPROF signal

2003-02-20 Thread Zeev Suraski
At 16:58 20/02/2003, [EMAIL PROTECTED] wrote: I have a question in regards to page timeouts and how the initial I've noticed if a query takes longer than the default 30 seconds to execute, php returns a timeout message to the user. From what I can tell, php uses the SIGPROF signal to stop

Re: [PHP-DEV] zend_timeout and the SIGPROF signal

2003-02-20 Thread wmeler
- Original Message - I looked into the bug report, and it is true that BLOCK_INTERRUPTIONS should indeed block SIGPROF. I'll fix this in the weekend. I'm not sure if after unblocking interruptions PHP will get SIGPROF ... it could cause long scripts. I'd rather use EG(timeout).

Re: [PHP-DEV] zend_timeout and the SIGPROF signal

2003-02-20 Thread Zeev Suraski
At 17:38 20/02/2003, [EMAIL PROTECTED] wrote: - Original Message - I looked into the bug report, and it is true that BLOCK_INTERRUPTIONS should indeed block SIGPROF. I'll fix this in the weekend. I'm not sure if after unblocking interruptions PHP will get SIGPROF ... it could cause

Re: [PHP-DEV] zend_timeout and the SIGPROF signal

2003-02-20 Thread Wojtek Meler
On Thu, Feb 20, 2003 at 05:48:29PM +0200, Zeev Suraski wrote: At 17:38 20/02/2003, [EMAIL PROTECTED] wrote: - Original Message - I looked into the bug report, and it is true that BLOCK_INTERRUPTIONS should indeed block SIGPROF. I'll fix this in the weekend. I'm not sure if

Re: [PHP-DEV] zend_timeout and the SIGPROF signal

2003-02-20 Thread Thies C. Arntzen
On Thu, Feb 20, 2003 at 05:11:55PM +0100, Wojtek Meler wrote: On Thu, Feb 20, 2003 at 05:48:29PM +0200, Zeev Suraski wrote: At 17:38 20/02/2003, [EMAIL PROTECTED] wrote: - Original Message - I looked into the bug report, and it is true that BLOCK_INTERRUPTIONS should