Re: max_execution_time - ITIMER_REAL vs ITIMER_PROF

From: Date: Tue, 10 Apr 2007 20:14:36 +0000
Subject: Re: max_execution_time - ITIMER_REAL vs ITIMER_PROF
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-28725@lists.php.net to get a copy of this message
I'm interested in having a timeout that corresponds to clock time as opposed to PHP execution time (the current behavior of max_execution_time). A cursory scan of the source implies that (on Unix at least) something that behaves like zend_set_timeout() but uses setitimer()'s ITIMER_REAL timer instead of ITIMER_PROF would do the trick. Before I investigate much further, a few questions: - Is anyone aware of a reason why ITIMER_REAL would cause problems?
IIRC at least on some systems ITIMER_REAL is the same as alarm(), and Apache uses alarm(), so we might have a conflict there. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/

« previous php.internals (#28725) next »