Hi Internals,
I am proposing the following RFC to improve signal handling in the Zend
Engine:
http://wiki.php.net/rfc/zendsignals
The purpose of zend internal deferred signal handling is to improve the
stability of PHP and extensions when running under any forking SAPI.
Additionally heavy users of APC or other bytecode caches under Apache 1.x
may also see a performance improvement.
Please see follow the link above to the complete RFC for details. I look
forward to hearing feedback.
-lucas
I like the idea, and I think we don't need --enable-signals options.
BTW I'm not sure about committing it into 5.3. It's a question to RM(s).
Thanks. Dmitry.
Lucas Nealan wrote:
Hi Internals,
I am proposing the following RFC to improve signal handling in the Zend
Engine:http://wiki.php.net/rfc/zendsignals
The purpose of zend internal deferred signal handling is to improve the
stability of PHP and extensions when running under any forking SAPI.
Additionally heavy users of APC or other bytecode caches under Apache 1.x
may also see a performance improvement.Please see follow the link above to the complete RFC for details. I look
forward to hearing feedback.-lucas
Hi!
I am proposing the following RFC to improve signal handling in the Zend
Engine:
Looks good. If ti works, I don't think we need two signal models - new
one would be OK. I'm not sure what happens with win32 though.
Stanislav Malyshev, Zend Software Architect
stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com
Stanislav Malyshev wrote:
Hi!
I am proposing the following RFC to improve signal handling in the Zend
Engine:Looks good. If ti works, I don't think we need two signal models - new
one would be OK. I'm not sure what happens with win32 though.
Note that this is conceptually based on the Yahoo signal deferring
mechanism. The Yahoo signal deferring code is a bit too
platform-specific though, but I will walk through and see if any of the
many gotchas we deal with need to be fixed in this stuff. Gopal knows
this stuff as well.
-Rasmus
Hi Lucas,
I am proposing the following RFC to improve signal handling in the Zend
Engine:
thanks for the patch, next to platform specific stuff I'm wondering
whether the shutdown order is right:
- /* 2. Call all possible __destruct() functions */
- /* 2. Reset max_execution_time (no longer executing php code after shutdown functions) */
- zend_try {
-
zend_unset_timeout(TSRMLS_C);
- } zend_end_try();
- /* 3. Call all possible __destruct() functions */
zend_try {
zend_call_destructors(TSRMLS_C);
} zend_end_try();
- /* 3. Flush all output buffers */
- /* 4. Flush all output buffers */
zend_try {
php_end_ob_buffers((zend_bool)(SG(request_info).headers_only?0:1) TSRMLS_CC);
} zend_end_try();
Destructors can be PHP code, as can some ob callback so I think the order should be changed.
johannes
Hi Internals,
I am proposing the following RFC to improve signal handling in the Zend
Engine:http://wiki.php.net/rfc/zendsignals
The purpose of zend internal deferred signal handling is to improve the
stability of PHP and extensions when running under any forking SAPI.
Additionally heavy users of APC or other bytecode caches under Apache 1.x
may also see a performance improvement.Please see follow the link above to the complete RFC for details. I look
forward to hearing feedback.-lucas
Hi Internals,
I am proposing the following RFC to improve signal handling in the
Zend
Engine:http://wiki.php.net/rfc/zendsignals
The purpose of zend internal deferred signal handling is to improve
the
stability of PHP and extensions when running under any forking SAPI.
Additionally heavy users of APC or other bytecode caches under
Apache 1.x
may also see a performance improvement.Please see follow the link above to the complete RFC for details. I
look
forward to hearing feedback.
Whats going on here. How does this all affect windows? Is this planned
to go into 5.3?
regards,
Lukas Kahwe Smith
mls@pooteeweet.org
Hi Internals,
I am proposing the following RFC to improve signal handling in the Zend
Engine:
The RFC looks really nice, but we need to make a decision on it really fast,
since 5_3 feature freeze is set for tomorrow.
I believe this can & should go in 5_3, any objections?
--
Wbr,
Antony Dovgal