From c4c385efb1ff72ba131108f18555fa7d89a72e69 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 28 Oct 2014 13:53:40 +0100 Subject: php-pecl-swoole: 1.7.7 --- 134.patch | 22 +++++ REFLECTION | 238 ++++++++++++++++++++++++++++++++++++++++++++++++++- php-pecl-swoole.spec | 13 ++- 3 files changed, 266 insertions(+), 7 deletions(-) create mode 100644 134.patch diff --git a/134.patch b/134.patch new file mode 100644 index 0000000..b902a73 --- /dev/null +++ b/134.patch @@ -0,0 +1,22 @@ +From 1e86632064d5e149356d39077ee8da97164424f0 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Tue, 28 Oct 2014 13:27:08 +0100 +Subject: [PATCH] fix class registration + +--- + swoole_http.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/swoole_http.c b/swoole_http.c +index 11a0d69..0ad632c 100644 +--- a/swoole_http.c ++++ b/swoole_http.c +@@ -382,7 +382,7 @@ void swoole_http_init(int module_number TSRMLS_DC) + INIT_CLASS_ENTRY(swoole_http_response_ce, "swoole_http_response", swoole_http_response_methods); + swoole_http_response_class_entry_ptr = zend_register_internal_class(&swoole_http_response_ce TSRMLS_CC); + +- INIT_CLASS_ENTRY(swoole_http_response_ce, "swoole_http_request", NULL); ++ INIT_CLASS_ENTRY(swoole_http_request_ce, "swoole_http_request", NULL); + swoole_http_request_class_entry_ptr = zend_register_internal_class(&swoole_http_request_ce TSRMLS_CC); + } + diff --git a/REFLECTION b/REFLECTION index 14f7b7d..55afe68 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #144 swoole version 1.7.6 ] { +Extension [ extension #145 swoole version 1.7.7 ] { - INI { Entry [ swoole.aio_thread_num ] @@ -42,7 +42,7 @@ Extension [ extension #144 swoole version 1.7.6 ] { Constant [ integer SWOOLE_SSL ] { 512 } Constant [ integer SWOOLE_EVENT_READ ] { 512 } Constant [ integer SWOOLE_EVENT_WRITE ] { 1024 } - Constant [ string SWOOLE_VERSION ] { 1.7.6 } + Constant [ string SWOOLE_VERSION ] { 1.7.7 } Constant [ integer SWOOLE_AIO_BASE ] { 0 } Constant [ integer SWOOLE_AIO_GCC ] { 1 } Constant [ integer SWOOLE_AIO_LINUX ] { 2 } @@ -237,6 +237,8 @@ Extension [ extension #144 swoole version 1.7.6 ] { Parameter #0 [ $interval ] } } + Function [ function swoole_timer_after ] { + } Function [ function swoole_async_set ] { } Function [ function swoole_async_read ] { @@ -263,7 +265,7 @@ Extension [ extension #144 swoole version 1.7.6 ] { } } - - Classes [6] { + - Classes [9] { Class [ class swoole_server ] { - Constants [0] { @@ -278,7 +280,7 @@ Extension [ extension #144 swoole version 1.7.6 ] { - Properties [0] { } - - Methods [22] { + - Methods [23] { Method [ public method __construct ] { - Parameters [4] { @@ -434,6 +436,9 @@ Extension [ extension #144 swoole version 1.7.6 ] { } } + Method [ public method after ] { + } + Method [ public method stats ] { } } @@ -726,6 +731,231 @@ Extension [ extension #144 swoole version 1.7.6 ] { } } } + + Class [ class swoole_http_server extends swoole_server ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [23] { + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $ha_name ] + Parameter #1 [ $cb ] + } + } + + Method [ public method start ] { + } + + Method [ public method __construct ] { + + - Parameters [4] { + Parameter #0 [ $serv_host ] + Parameter #1 [ $serv_port ] + Parameter #2 [ $serv_mode ] + Parameter #3 [ $sock_type ] + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ $zset ] + } + } + + Method [ public method send ] { + + - Parameters [3] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $send_data ] + Parameter #2 [ $from_id ] + } + } + + Method [ public method sendfile ] { + + - Parameters [2] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $filename ] + } + } + + Method [ public method close ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method task ] { + + - Parameters [2] { + Parameter #0 [ $data ] + Parameter #1 [ $worker_id ] + } + } + + Method [ public method taskwait ] { + + - Parameters [3] { + Parameter #0 [ $data ] + Parameter #1 [ $timeout ] + Parameter #2 [ $worker_id ] + } + } + + Method [ public method finish ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method addlistener ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $sock_type ] + } + } + + Method [ public method addtimer ] { + + - Parameters [1] { + Parameter #0 [ $interval ] + } + } + + Method [ public method deltimer ] { + + - Parameters [1] { + Parameter #0 [ $interval ] + } + } + + Method [ public method gettimer ] { + } + + Method [ public method reload ] { + + - Parameters [0] { + } + } + + Method [ public method shutdown ] { + + - Parameters [0] { + } + } + + Method [ public method hbcheck ] { + + - Parameters [1] { + Parameter #0 [ $from_id ] + } + } + + Method [ public method heartbeat ] { + + - Parameters [1] { + Parameter #0 [ $from_id ] + } + } + + Method [ public method handler ] { + + - Parameters [2] { + Parameter #0 [ $ha_name ] + Parameter #1 [ $cb ] + } + } + + Method [ public method connection_info ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $from_id ] + } + } + + Method [ public method connection_list ] { + + - Parameters [2] { + Parameter #0 [ $start_fd ] + Parameter #1 [ $find_count ] + } + } + + Method [ public method after ] { + } + + Method [ public method stats ] { + } + } + } + + Class [ class swoole_http_response ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [5] { + Method [ public method cookie ] { + } + + Method [ public method status ] { + } + + Method [ public method header ] { + } + + Method [ public method end ] { + } + + Method [ public method message ] { + } + } + } + + Class [ class swoole_http_request ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } } } diff --git a/php-pecl-swoole.spec b/php-pecl-swoole.spec index b197cef..2c5ce1a 100644 --- a/php-pecl-swoole.spec +++ b/php-pecl-swoole.spec @@ -23,13 +23,16 @@ Summary: PHP's asynchronous concurrent distributed networking framework Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 1.7.6 +Version: 1.7.7 Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: BSD Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +# https://github.com/swoole/swoole-src/pull/134 +Patch0: 134.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-pear @@ -102,6 +105,7 @@ mv %{pecl_name}-%{version} NTS sed -e '/examples/s/role="src"/role="doc"/' -i package.xml cd NTS +%patch0 -p1 -b .pr134 # Sanity check, really often broken extver=$(sed -n '/#define PHP_SWOOLE_VERSION/{s/.* "//;s/".*$//;p}' php_swoole.h) @@ -230,11 +234,14 @@ rm -rf %{buildroot} %changelog +* Tue Oct 28 2014 Remi Collet - 1.7.7-1 +- Update to 1.7.7 (stable) + * Fri Oct 10 2014 Remi Collet - 1.7.6-1 -- Update to 1.7.6 +- Update to 1.7.6 (stable) * Wed Sep 10 2014 Remi Collet - 1.7.5-1 -- Update to 1.7.5 +- Update to 1.7.5 (stable) * Tue Aug 26 2014 Remi Collet - 1.7.4-2 - improve SCL build -- cgit