Introduction of new PHP extension and Application for Pecl Account

From: Date: Thu, 17 Nov 2016 11:20:19 +0000
Subject: Introduction of new PHP extension and Application for Pecl Account
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-14164@lists.php.net to get a copy of this message
Hello everyone: First of all,I had send one email a months ago but did not received any reply. I'm a PHP engineer come from China.I use PHP in my work and I'm more interested in PHP Internals such as zend vm or extension.In my work,I had written several extensions but never submited to PECL. I would like my extensions can be listed within the PECL directory and provided to more people to use,so I apply for a PECL account.Next,I will introduce one of my new extensions. About my new extension —*timeout*: It's an extension to control PHP function's excution time.In fact,it just have one function:*call_func_with_timeout() *which similar to function "call_user_func()".I add timeout control to it. Why written this extesion?In my work,I find many circumstances that function executed long time and block the process,so I need a method to control the execution time of function. When call a function, we can set timeout on it and it will be forced stoped if it's still in executing over the limit time. This exetension use *sigsetjmp()* and *siglongjmp() *to implement the jump of running stack which like PHP's try-catch implement. How to try my extension?Other info about it: *1.Environment Requirements*: os: linux support version: *php 7.0.0 or newer* SAPI: php-fpm or php-cli * 2.Features:* a.timeout control on function level b.support millisecond-level config * 3.License:* Apache License Version 2.0 * 4.Link to the code:* *https://github.com/pangudashu/timeout <https://github.com/pangudashu/timeout>* Finally,I really hope to get a PECL account and become one member of PECL.Please contact to me if you have any question.Thank you very much. Best Wishes. Pangudashu

« previous php.pecl.dev (#14164) next »