From 35606a471018949cc0a130a0e39a0ec484d5d454 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 23 Apr 2018 10:15:49 +0200 Subject: v2.4.0RC1 --- .gitignore | 9 +- REFLECTION | 405 +++++++++++++------ package.xml | 1071 --------------------------------------------------- php-pecl-event.spec | 48 +-- 4 files changed, 312 insertions(+), 1221 deletions(-) delete mode 100644 package.xml diff --git a/.gitignore b/.gitignore index 0597944..6f69818 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,9 @@ -event-*.tgz +clog +package-*.xml +*.tgz +*.tar.gz +*.tar.bz2 +*.tar.xz +*.tar.xz.asc *.src.rpm +*/*rpm diff --git a/REFLECTION b/REFLECTION index 9166b43..cf598a4 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,19 +1,23 @@ -Extension [ extension #94 event version 2.3.0 ] { +Extension [ extension #196 event version 2.4.0RC1 ] { - Dependencies { Dependency [ sockets (Required) ] } - - Classes [12] { + - Constants [1] { + Constant [ string EVENT_NS ] { } + } + + - Classes [13] { Class [ final class Event ] { - Constants [6] { - Constant [ integer ET ] { 32 } - Constant [ integer PERSIST ] { 16 } - Constant [ integer READ ] { 2 } - Constant [ integer WRITE ] { 4 } - Constant [ integer SIGNAL ] { 8 } - Constant [ integer TIMEOUT ] { 1 } + Constant [ public integer ET ] { 32 } + Constant [ public integer PERSIST ] { 16 } + Constant [ public integer READ ] { 2 } + Constant [ public integer WRITE ] { 4 } + Constant [ public integer SIGNAL ] { 8 } + Constant [ public integer TIMEOUT ] { 1 } } - Static properties [0] { @@ -147,12 +151,12 @@ Extension [ extension #94 event version 2.3.0 ] { Class [ final class EventBase ] { - Constants [6] { - Constant [ integer LOOP_ONCE ] { 1 } - Constant [ integer LOOP_NONBLOCK ] { 2 } - Constant [ integer NOLOCK ] { 1 } - Constant [ integer STARTUP_IOCP ] { 4 } - Constant [ integer NO_CACHE_TIME ] { 8 } - Constant [ integer EPOLL_USE_CHANGELIST ] { 16 } + Constant [ public integer LOOP_ONCE ] { 1 } + Constant [ public integer LOOP_NONBLOCK ] { 2 } + Constant [ public integer NOLOCK ] { 1 } + Constant [ public integer STARTUP_IOCP ] { 4 } + Constant [ public integer NO_CACHE_TIME ] { 8 } + Constant [ public integer EPOLL_USE_CHANGELIST ] { 16 } } - Static properties [0] { @@ -164,7 +168,7 @@ Extension [ extension #94 event version 2.3.0 ] { - Properties [0] { } - - Methods [13] { + - Methods [15] { Method [ public method __construct ] { - Parameters [1] { @@ -172,6 +176,20 @@ Extension [ extension #94 event version 2.3.0 ] { } } + Method [ final public method __sleep ] { + + - Parameters [1] { + Parameter #0 [ $cfg ] + } + } + + Method [ final public method __wakeup ] { + + - Parameters [1] { + Parameter #0 [ $cfg ] + } + } + Method [ public method getMethod ] { - Parameters [1] { @@ -253,9 +271,9 @@ Extension [ extension #94 event version 2.3.0 ] { Class [ final class EventConfig ] { - Constants [3] { - Constant [ integer FEATURE_ET ] { 1 } - Constant [ integer FEATURE_O1 ] { 2 } - Constant [ integer FEATURE_FDS ] { 4 } + Constant [ public integer FEATURE_ET ] { 1 } + Constant [ public integer FEATURE_O1 ] { 2 } + Constant [ public integer FEATURE_FDS ] { 4 } } - Static properties [0] { @@ -267,13 +285,25 @@ Extension [ extension #94 event version 2.3.0 ] { - Properties [0] { } - - Methods [3] { + - Methods [5] { Method [ public method __construct ] { - Parameters [0] { } } + Method [ final public method __sleep ] { + + - Parameters [0] { + } + } + + Method [ final public method __wakeup ] { + + - Parameters [0] { + } + } + Method [ public method avoidMethod ] { - Parameters [1] { @@ -293,19 +323,19 @@ Extension [ extension #94 event version 2.3.0 ] { Class [ final class EventBufferEvent ] { - Constants [13] { - Constant [ integer READING ] { 1 } - Constant [ integer WRITING ] { 2 } - Constant [ integer EOF ] { 16 } - Constant [ integer ERROR ] { 32 } - Constant [ integer TIMEOUT ] { 64 } - Constant [ integer CONNECTED ] { 128 } - Constant [ integer OPT_CLOSE_ON_FREE ] { 1 } - Constant [ integer OPT_THREADSAFE ] { 2 } - Constant [ integer OPT_DEFER_CALLBACKS ] { 4 } - Constant [ integer OPT_UNLOCK_CALLBACKS ] { 8 } - Constant [ integer SSL_OPEN ] { 0 } - Constant [ integer SSL_CONNECTING ] { 1 } - Constant [ integer SSL_ACCEPTING ] { 2 } + Constant [ public integer READING ] { 1 } + Constant [ public integer WRITING ] { 2 } + Constant [ public integer EOF ] { 16 } + Constant [ public integer ERROR ] { 32 } + Constant [ public integer TIMEOUT ] { 64 } + Constant [ public integer CONNECTED ] { 128 } + Constant [ public integer OPT_CLOSE_ON_FREE ] { 1 } + Constant [ public integer OPT_THREADSAFE ] { 2 } + Constant [ public integer OPT_DEFER_CALLBACKS ] { 4 } + Constant [ public integer OPT_UNLOCK_CALLBACKS ] { 8 } + Constant [ public integer SSL_OPEN ] { 0 } + Constant [ public integer SSL_CONNECTING ] { 1 } + Constant [ public integer SSL_ACCEPTING ] { 2 } } - Static properties [0] { @@ -543,12 +573,12 @@ Extension [ extension #94 event version 2.3.0 ] { Class [ class EventBuffer ] { - Constants [6] { - Constant [ integer EOL_ANY ] { 0 } - Constant [ integer EOL_CRLF ] { 1 } - Constant [ integer EOL_CRLF_STRICT ] { 2 } - Constant [ integer EOL_LF ] { 3 } - Constant [ integer PTR_SET ] { 0 } - Constant [ integer PTR_ADD ] { 1 } + Constant [ public integer EOL_ANY ] { 0 } + Constant [ public integer EOL_CRLF ] { 1 } + Constant [ public integer EOL_CRLF_STRICT ] { 2 } + Constant [ public integer EOL_LF ] { 3 } + Constant [ public integer PTR_SET ] { 0 } + Constant [ public integer PTR_ADD ] { 1 } } - Static properties [0] { @@ -726,11 +756,11 @@ Extension [ extension #94 event version 2.3.0 ] { Class [ final class EventDnsBase ] { - Constants [5] { - Constant [ integer OPTION_SEARCH ] { 1 } - Constant [ integer OPTION_NAMESERVERS ] { 2 } - Constant [ integer OPTION_MISC ] { 4 } - Constant [ integer OPTION_HOSTSFILE ] { 8 } - Constant [ integer OPTIONS_ALL ] { 15 } + Constant [ public integer OPTION_SEARCH ] { 1 } + Constant [ public integer OPTION_NAMESERVERS ] { 2 } + Constant [ public integer OPTION_MISC ] { 4 } + Constant [ public integer OPTION_HOSTSFILE ] { 8 } + Constant [ public integer OPTIONS_ALL ] { 15 } } - Static properties [0] { @@ -812,11 +842,11 @@ Extension [ extension #94 event version 2.3.0 ] { Class [ final class EventListener ] { - Constants [5] { - Constant [ integer OPT_LEAVE_SOCKETS_BLOCKING ] { 1 } - Constant [ integer OPT_CLOSE_ON_FREE ] { 2 } - Constant [ integer OPT_CLOSE_ON_EXEC ] { 4 } - Constant [ integer OPT_REUSEABLE ] { 8 } - Constant [ integer OPT_THREADSAFE ] { 16 } + Constant [ public integer OPT_LEAVE_SOCKETS_BLOCKING ] { 1 } + Constant [ public integer OPT_CLOSE_ON_FREE ] { 2 } + Constant [ public integer OPT_CLOSE_ON_EXEC ] { 4 } + Constant [ public integer OPT_REUSEABLE ] { 8 } + Constant [ public integer OPT_THREADSAFE ] { 16 } } - Static properties [0] { @@ -829,7 +859,7 @@ Extension [ extension #94 event version 2.3.0 ] { Property [ public $fd ] } - - Methods [8] { + - Methods [10] { Method [ public method __construct ] { - Parameters [6] { @@ -842,6 +872,18 @@ Extension [ extension #94 event version 2.3.0 ] { } } + Method [ final public method __sleep ] { + + - Parameters [0] { + } + } + + Method [ final public method __wakeup ] { + + - Parameters [0] { + } + } + Method [ public method free ] { - Parameters [0] { @@ -905,7 +947,7 @@ Extension [ extension #94 event version 2.3.0 ] { - Properties [0] { } - - Methods [11] { + - Methods [13] { Method [ public method __construct ] { - Parameters [5] { @@ -917,6 +959,18 @@ Extension [ extension #94 event version 2.3.0 ] { } } + Method [ final public method __sleep ] { + + - Parameters [0] { + } + } + + Method [ final public method __wakeup ] { + + - Parameters [0] { + } + } + Method [ public method getBase ] { - Parameters [0] { @@ -1006,7 +1060,7 @@ Extension [ extension #94 event version 2.3.0 ] { - Properties [0] { } - - Methods [11] { + - Methods [13] { Method [ public method __construct ] { - Parameters [2] { @@ -1015,6 +1069,18 @@ Extension [ extension #94 event version 2.3.0 ] { } } + Method [ final public method __sleep ] { + + - Parameters [0] { + } + } + + Method [ final public method __wakeup ] { + + - Parameters [0] { + } + } + Method [ public method accept ] { - Parameters [1] { @@ -1094,17 +1160,17 @@ Extension [ extension #94 event version 2.3.0 ] { Class [ final class EventHttpRequest ] { - Constants [11] { - Constant [ integer CMD_GET ] { 1 } - Constant [ integer CMD_POST ] { 2 } - Constant [ integer CMD_HEAD ] { 4 } - Constant [ integer CMD_PUT ] { 8 } - Constant [ integer CMD_DELETE ] { 16 } - Constant [ integer CMD_OPTIONS ] { 32 } - Constant [ integer CMD_TRACE ] { 64 } - Constant [ integer CMD_CONNECT ] { 128 } - Constant [ integer CMD_PATCH ] { 256 } - Constant [ integer INPUT_HEADER ] { 1 } - Constant [ integer OUTPUT_HEADER ] { 2 } + Constant [ public integer CMD_GET ] { 1 } + Constant [ public integer CMD_POST ] { 2 } + Constant [ public integer CMD_HEAD ] { 4 } + Constant [ public integer CMD_PUT ] { 8 } + Constant [ public integer CMD_DELETE ] { 16 } + Constant [ public integer CMD_OPTIONS ] { 32 } + Constant [ public integer CMD_TRACE ] { 64 } + Constant [ public integer CMD_CONNECT ] { 128 } + Constant [ public integer CMD_PATCH ] { 256 } + Constant [ public integer INPUT_HEADER ] { 1 } + Constant [ public integer OUTPUT_HEADER ] { 2 } } - Static properties [0] { @@ -1116,7 +1182,7 @@ Extension [ extension #94 event version 2.3.0 ] { - Properties [0] { } - - Methods [23] { + - Methods [25] { Method [ public method __construct ] { - Parameters [2] { @@ -1125,6 +1191,19 @@ Extension [ extension #94 event version 2.3.0 ] { } } + Method [ final public method __sleep ] { + + - Parameters [0] { + } + } + + Method [ final public method __wakeup ] { + + - Parameters [1] { + Parameter #0 [ $cfg ] + } + } + Method [ public method free ] { - Parameters [0] { @@ -1274,35 +1353,36 @@ Extension [ extension #94 event version 2.3.0 ] { } } - Class [ abstract final class EventUtil ] { - - - Constants [26] { - Constant [ integer AF_INET ] { 2 } - Constant [ integer AF_INET6 ] { 10 } - Constant [ integer AF_UNIX ] { 1 } - Constant [ integer AF_UNSPEC ] { 0 } - Constant [ integer SO_DEBUG ] { 1 } - Constant [ integer SO_REUSEADDR ] { 2 } - Constant [ integer SO_KEEPALIVE ] { 9 } - Constant [ integer SO_DONTROUTE ] { 5 } - Constant [ integer SO_LINGER ] { 13 } - Constant [ integer SO_BROADCAST ] { 6 } - Constant [ integer SO_OOBINLINE ] { 10 } - Constant [ integer SO_SNDBUF ] { 7 } - Constant [ integer SO_RCVBUF ] { 8 } - Constant [ integer SO_SNDLOWAT ] { 19 } - Constant [ integer SO_RCVLOWAT ] { 18 } - Constant [ integer SO_SNDTIMEO ] { 21 } - Constant [ integer SO_RCVTIMEO ] { 20 } - Constant [ integer SO_TYPE ] { 3 } - Constant [ integer SO_ERROR ] { 4 } - Constant [ integer SOL_SOCKET ] { 1 } - Constant [ integer SOL_TCP ] { 6 } - Constant [ integer SOL_UDP ] { 17 } - Constant [ integer SOCK_RAW ] { 3 } - Constant [ integer IPPROTO_IP ] { 0 } - Constant [ integer IPPROTO_IPV6 ] { 41 } - Constant [ integer LIBEVENT_VERSION_NUMBER ] { 33560064 } + Class [ final class EventUtil ] { + + - Constants [27] { + Constant [ public integer AF_INET ] { 2 } + Constant [ public integer AF_INET6 ] { 10 } + Constant [ public integer AF_UNIX ] { 1 } + Constant [ public integer AF_UNSPEC ] { 0 } + Constant [ public integer SO_DEBUG ] { 1 } + Constant [ public integer SO_REUSEADDR ] { 2 } + Constant [ public integer SO_KEEPALIVE ] { 9 } + Constant [ public integer SO_DONTROUTE ] { 5 } + Constant [ public integer SO_LINGER ] { 13 } + Constant [ public integer SO_BROADCAST ] { 6 } + Constant [ public integer SO_OOBINLINE ] { 10 } + Constant [ public integer SO_SNDBUF ] { 7 } + Constant [ public integer SO_RCVBUF ] { 8 } + Constant [ public integer SO_SNDLOWAT ] { 19 } + Constant [ public integer SO_RCVLOWAT ] { 18 } + Constant [ public integer SO_SNDTIMEO ] { 21 } + Constant [ public integer SO_RCVTIMEO ] { 20 } + Constant [ public integer SO_TYPE ] { 3 } + Constant [ public integer SO_ERROR ] { 4 } + Constant [ public integer TCP_NODELAY ] { 1 } + Constant [ public integer SOL_SOCKET ] { 1 } + Constant [ public integer SOL_TCP ] { 6 } + Constant [ public integer SOL_UDP ] { 17 } + Constant [ public integer SOCK_RAW ] { 3 } + Constant [ public integer IPPROTO_IP ] { 0 } + Constant [ public integer IPPROTO_IPV6 ] { 41 } + Constant [ public integer LIBEVENT_VERSION_NUMBER ] { 33560064 } } - Static properties [0] { @@ -1367,41 +1447,50 @@ Extension [ extension #94 event version 2.3.0 ] { } - Methods [1] { - Method [ abstract public method __construct ] { + Method [ private method __construct ] { + + - Parameters [0] { + } } } } Class [ final class EventSslContext ] { - - Constants [27] { - Constant [ integer SSLv3_CLIENT_METHOD ] { 2 } - Constant [ integer SSLv3_SERVER_METHOD ] { 6 } - Constant [ integer TLS_CLIENT_METHOD ] { 4 } - Constant [ integer TLS_SERVER_METHOD ] { 8 } - Constant [ integer TLSv11_CLIENT_METHOD ] { 9 } - Constant [ integer TLSv11_SERVER_METHOD ] { 10 } - Constant [ integer TLSv12_CLIENT_METHOD ] { 11 } - Constant [ integer TLSv12_SERVER_METHOD ] { 12 } - Constant [ integer OPT_LOCAL_CERT ] { 1 } - Constant [ integer OPT_LOCAL_PK ] { 2 } - Constant [ integer OPT_PASSPHRASE ] { 3 } - Constant [ integer OPT_CA_FILE ] { 4 } - Constant [ integer OPT_CA_PATH ] { 5 } - Constant [ integer OPT_ALLOW_SELF_SIGNED ] { 6 } - Constant [ integer OPT_VERIFY_PEER ] { 7 } - Constant [ integer OPT_VERIFY_DEPTH ] { 8 } - Constant [ integer OPT_CIPHERS ] { 9 } - Constant [ integer OPT_NO_SSLv2 ] { 10 } - Constant [ integer OPT_NO_SSLv3 ] { 11 } - Constant [ integer OPT_NO_TLSv1 ] { 12 } - Constant [ integer OPT_NO_TLSv1_1 ] { 13 } - Constant [ integer OPT_NO_TLSv1_2 ] { 14 } - Constant [ integer OPT_CIPHER_SERVER_PREFERENCE ] { 15 } - Constant [ integer OPT_REQUIRE_CLIENT_CERT ] { 16 } - Constant [ integer OPT_VERIFY_CLIENT_ONCE ] { 17 } - Constant [ string OPENSSL_VERSION_TEXT ] { OpenSSL 1.0.2k-fips 26 Jan 2017 } - Constant [ integer OPENSSL_VERSION_NUMBER ] { 268443839 } + - Constants [33] { + Constant [ public integer SSLv3_CLIENT_METHOD ] { 2 } + Constant [ public integer SSLv3_SERVER_METHOD ] { 6 } + Constant [ public integer TLS_CLIENT_METHOD ] { 4 } + Constant [ public integer TLS_SERVER_METHOD ] { 8 } + Constant [ public integer TLSv11_CLIENT_METHOD ] { 9 } + Constant [ public integer TLSv11_SERVER_METHOD ] { 10 } + Constant [ public integer TLSv12_CLIENT_METHOD ] { 11 } + Constant [ public integer TLSv12_SERVER_METHOD ] { 12 } + Constant [ public integer OPT_LOCAL_CERT ] { 1 } + Constant [ public integer OPT_LOCAL_PK ] { 2 } + Constant [ public integer OPT_PASSPHRASE ] { 3 } + Constant [ public integer OPT_CA_FILE ] { 4 } + Constant [ public integer OPT_CA_PATH ] { 5 } + Constant [ public integer OPT_ALLOW_SELF_SIGNED ] { 6 } + Constant [ public integer OPT_VERIFY_PEER ] { 7 } + Constant [ public integer OPT_VERIFY_DEPTH ] { 8 } + Constant [ public integer OPT_CIPHERS ] { 9 } + Constant [ public integer OPT_NO_SSLv2 ] { 10 } + Constant [ public integer OPT_NO_SSLv3 ] { 11 } + Constant [ public integer OPT_NO_TLSv1 ] { 12 } + Constant [ public integer OPT_NO_TLSv1_1 ] { 13 } + Constant [ public integer OPT_NO_TLSv1_2 ] { 14 } + Constant [ public integer OPT_CIPHER_SERVER_PREFERENCE ] { 15 } + Constant [ public integer OPT_REQUIRE_CLIENT_CERT ] { 16 } + Constant [ public integer OPT_VERIFY_CLIENT_ONCE ] { 17 } + Constant [ public string OPENSSL_VERSION_TEXT ] { OpenSSL 1.1.0h-fips 27 Mar 2018 } + Constant [ public integer OPENSSL_VERSION_NUMBER ] { 269484175 } + Constant [ public integer SSL3_VERSION ] { 768 } + Constant [ public integer TLS1_VERSION ] { 769 } + Constant [ public integer TLS1_1_VERSION ] { 770 } + Constant [ public integer TLS1_2_VERSION ] { 771 } + Constant [ public integer DTLS1_VERSION ] { 65279 } + Constant [ public integer DTLS1_2_VERSION ] { 65277 } } - Static properties [0] { @@ -1415,7 +1504,7 @@ Extension [ extension #94 event version 2.3.0 ] { Property [ public $local_pk ] } - - Methods [1] { + - Methods [3] { Method [ public method __construct ] { - Parameters [2] { @@ -1423,6 +1512,78 @@ Extension [ extension #94 event version 2.3.0 ] { Parameter #1 [ $options ] } } + + Method [ public method setMinProtoVersion ] { + + - Parameters [1] { + Parameter #0 [ $proto ] + } + } + + Method [ public method setMaxProtoVersion ] { + + - Parameters [1] { + Parameter #0 [ $proto ] + } + } + } + } + + Class [ class EventException extends RuntimeException implements Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [5] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + Property [ public $errorInfo ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } } } } diff --git a/package.xml b/package.xml deleted file mode 100644 index c87c63a..0000000 --- a/package.xml +++ /dev/null @@ -1,1071 +0,0 @@ - - - event - pecl.php.net - Provides interface to libevent library - This is an extension to efficiently schedule I/O, time and signal based - events using the best I/O notification mechanism available for specific platform. - This is a port of libevent to the PHP infrastructure. - - Version 1.0.0 introduces: - * new OO API breaking backwards compatibility - * support of libevent 2+ including HTTP, DNS, OpenSSL and the event listener. - - Note, event-1.0.0 and greater is not compatible with previous versions. - - Ruslan Osmanov - osmanov - osmanov@php.net - yes - - - Anatol Belski - ab - ab@php.net - yes - - - Remi Collet - remi - remi@php.net - yes - - 2017-03-26 - - - 2.3.0 - 2.3.0 - - - stable - stable - - PHP - -Fixed build errors with LibreSSL - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5.4.0 - - - 1.4.0a1 - - - libevent - pecl.php.net - 0.0.2 - - libevent - - - libevent - - - - - event - - - - - - - - - - - - - 2.3.0 - 2.3.0 - - - beta - beta - - PHP - -Fixed build errors with LibreSSL - - - - - 2.3.0RC1 - 2.3.0RC1 - - - beta - beta - - PHP - -Add: EventSslContext methods: setMinProtoVersion and setMaxProtoVersion for OpenSSL >= 1.1.0. -Add: EventSslContext constants: OPENSSL_VERSION_NUMBER and OPENSSL_VERSION_TEXT. -Fix: compilation warnings regarding OpenSSL features deprecated in version 1.0.0 and newer. -Deprecated: EventSslContext protocol version options are deprecated for OpenSSL >= 1.1.0. - Use the new setMinProtoVersion and setMaxProtoVersion methods instead. -Fix: build failed with custom openssl setup (non-standard --with-openssl-dir) - - - - - 2.2.1 - 2.2.0 - - - stable - stable - - PHP - -Fix: issue #31 where numeric file descriptor caused segmentation fault - - - - - 2.2.0 - 2.2.0 - - - stable - stable - - PHP - -Add: EventUtil::createSocket method(PHP5) -Add: EventListener::free method -Fix: issue #30 where building without SSL3 failed -Fix: the class property names were wrapped in double quotes - - - - - 2.1.0 - 2.1.0 - - - stable - stable - - PHP - -Add: EventUtil::SOCK_RAW constant -Add: EventSslContext option constants: OPT_REQUIRE_CLIENT_CERT and OPT_VERIFY_CLIENT_ONCE -Fix: EventBufferEvent::createPair caused segmentation fault in PHP7 -SSL Fixes: -- chained self-signed certificate failed to pass with EventSslContext::OPT_ALLOW_SELF_SIGNED = TRUE -- the server didn't set the list of CAs to be sent to the client when requesting a client certificate for underlying SSL structure -- EventSslContext::OPT_ALLOW_SELF_SIGNED = TRUE accepted any self-signed certificate without regard to OPT_CA_FILE/OPT_CA_PATH -Fix: PHP 7.1.0alpha1 build errors - - - - - 2.0.4 - 2.0.0 - - - stable - stable - - PHP - -Issue #28: event-2.0.3 Windows build fails - - - - - 2.0.3 - 2.0.0 - - - stable - stable - - PHP - -Issue #27: PHP > 7.0.6RC1 build fails - - - - - 2.0.2 - 2.0.0 - - - stable - stable - - PHP - -PHP7: fixed random EDOM errors in EventUtil::setSocketOption - - - - - 2.0.1 - 2.0.0 - - - stable - stable - - PHP - -PHP7: Protected user callbacks from destruction within libevent callbacks - - - - - 2.0.0 - 2.0.0 - - - stable - stable - - PHP - -Fixed some memory issues in PHP7 -- SSL leaks -- Possibility of implicit destruction of user vars -- Unclean SSL bufferevent shutdown -- EventBufferEvent::free() within a callback damaged zvals bound to corresponding bufferevent thereby causing SEGFAULT - -Fixed PHP5/PHP7 memory issue: string returned by EventBuffer::pullup() was not zero-terminated - - - - - 2.0.0RC2 - 2.0.0 - - - beta - stable - - PHP - -Fixed Mac OS X build errors - - - - - 2.0.0RC1 - 2.0.0 - - - beta - stable - - PHP - -PHP7 support added. - -Fixes: - - issue #23: memory leak in EventHttpConnection close callback + memory leaks in HTTP callbacks. - - Libevent 'unrecoverable' fatal errors(fixed by stopping the loop in EventBase free-storage handler). - -API changes: - - EventUtil::createSocket method added(PHP7) - - removed the first(EventBase) argument of EventBufferEvent::sslFilter method, since the internal EventBase object must match EventBase object within the underlying EventBufferEvent - - - - - 1.11.3 - 1.10.0 - - - stable - stable - - PHP - -Issue #20: SSL_GET_PREV_SESSION:session id context uninitialized - - - - - 1.11.2 - 1.10.0 - - - stable - stable - - PHP - -Issue #6: memory leaks in EventHttp callbacks -EventBufferEvent object returned by EventHttpRequest::getBufferEvent() should be freed explicitly, -if the method is called from a userspace callback. - - - - - 1.11.1 - 1.10.0 - - - stable - stable - - PHP - -Fixed build with old openssl (RHEL-5) (thanks to Remi Collet) - - - - - 1.11.0 - 1.10.0 - - - stable - stable - - PHP - -Fix: exceptions thrown from EventHttp and EventBufferEvent userspace callbacks were not passed through back to user. -Now the event loop will break and re-throw the exception. -Add: EventBase::free method -Add: EventBufferEvent methods: - - close - - sslGetCipherInfo - - sslGetCipherName - - sslGetCipherVersion - - sslGetProtocol -Add: EventSslContext options: - - OPT_NO_SSLv2 - - OPT_NO_SSLv3 - - OPT_NO_TLSv1 - - OPT_NO_TLSv1_1 - - OPT_NO_TLSv1_2 - - OPT_CIPHER_SERVER_PREFERENCE - - TLSv11_CLIENT_METHOD - - TLSv11_SERVER_METHOD - - TLSv12_CLIENT_METHOD - - TLSv12_SERVER_METHOD -(Thanks to Mathieu CARBONNEAUX @ bitbucket.org) -Issue #13: EventBufferEvent::__construct failed to accept a persistent -socket client(STREAM_CLIENT_PERSISTENT) - - - - - 1.10.4 - 1.9.0 - - - stable - stable - - PHP - -Fix: exceptions thrown from EventHttp and EventBufferEvent userspace callbacks were not passed through back to user. -Now the event loop will break and re-throw the exception. - - - - - 1.10.3 - 1.9.0 - - - stable - stable - - PHP - -Issue #8: pecl install failed due to the REST API issues with Unicode - - - - - 1.10.2 - 1.9.0 - - - stable - stable - - PHP - -Fix: EventBufferEvent::read() accepted negative values -Fix: TSRM context was not set in EventHttp::__construct (J. Fekete) -Fix: refcounter in EventHttp's default callback (J. Fekete) - - - - - 1.10.1 - 1.9.0 - - - stable - stable - - PHP - -Deleted a troublesome phpt test - - - - - 1.10.0 - 1.9.0 - - - stable - stable - - PHP - -Issue #3: Segmentation fault on EventHttpRequest->free() (Bitbucket's tracker). -Add: EventHttpConnection::__construct() now optionally accepts EventSslContext argument (Issue #5). -Add: EventHttp::__construct() now accepts EventSslContext object as argument. - - - - - 1.9.1 - 1.8.0 - - - stable - stable - - PHP - -Fix: return value of EventBase::reInit() was inverted -issue #7: PHP_EVENT_REQUIRE_BASE_BY_REF() didn't work in 5.6.0-dev (fixed by Remi Collet) - - - - - 1.9.0 - 1.8.0 - - - stable - stable - - PHP - -Windows support introduced(thanks to Anatol Belski <ab@php.net>) - -LIBEVENT_VERSION is now reported in phpinfo(Remi <remi@php.net>) - - Forced passing EventBase argument by reference. A method accepting EventBase - will generate fatal error in case if corresponding argument is not passed by - reference. - - EventBufferEvent::createPair method made static. - - - - - 1.8.1 - 1.8.0 - - - stable - stable - - PHP - -Fix: Bug #65847 Issue with old libevent2 where evhttp_connection_get_bufferevent function was not available with libevent version < 2.0.17 (thanks to Remi <remi@php.net>) - - - - - 1.8.0 - 1.8.0 - - - stable - stable - - PHP - -Add: EventHttpRequest methods: getBufferEvent, getConnection, closeConnection(thanks to rickysu at Bitbucket) -Add: EventHttpConnection::setCloseCallback method - - - - - 1.7.8 - 1.7.0 - - - stable - stable - - PHP - -Fix: build error on Solaris -Introduced negative dependencies: libevent extension, windows OS - - - - - 1.7.7 - 1.7.0 - - - stable - stable - - PHP - -Fix: incorrect handling of sockets extension dependency -(a hack for distros installing sockets separately) - - - - - 1.7.6 - 1.7.0 - - - stable - stable - - PHP - -Change: sockets extension is now required(see bug #65597). The user can still -turn off this requirement off explicitly with --disable-event-sockets configure -option - - - - - 1.7.5 - 1.7.0 - - - stable - stable - - PHP - -Fix: build error with custom libevent installation prefixes like /lib(John Wamer) - - - - - 1.7.4 - 1.7.0 - - - stable - stable - - PHP - -Fix: Segmentation fault caused by direct access to the zend object properties' hash table - - - - - 1.7.3 - 1.7.0 - - - stable - stable - - PHP - -Fix: in php_event.c write_property function was non-static -Fix: absence of get_gc property handler caused segfaults with gc_collect_cycles() - - - - - 1.7.2 - 1.7.0 - - - stable - stable - - PHP - -Fix: bug #65320 where we got build errors in attempts to compile event statically(thanks to florin) -Fix: bug #65319 where config.m4 used <php_version.h> to detect current PHP version -Fix: config.m4 included -levent_pthreads into LDFLAGS even --without-event-pthreads configuration -Fix: evthread_use_pthreads() call skept due to a "macro magic"(PHP_EVENT_ASSERT) - - - - - 1.7.1 - 1.7.0 - - - stable - stable - - PHP - -Fix: segmentation fault on gc_collect_cycles() after calling Event::free(), 5lava @ Bitbucket reported -Fix: assignment reference to "data" property caused 'Fatal error: Cannot assign by reference to overloaded object' -Fix: evnt object dtors sometimes didn't free the 'data' member until the script shutdown phase - - - - - 1.7.0 - 1.7.0 - - - stable - stable - - PHP - -Merged in 5lava/pecl-event (pull request #1) @bitbucket: -Fix: EventBufferEvent::setTimeouts() didn't work with double values -Fix: EventBuffer::copyout() didn't work in some cases -Add: EventBuffer::readFrom() method (corresponds to evbuffer_read()) -Add: EventUtil::getSocketFD() method - - - - - 1.6.2 - 1.6.0 - - - stable - stable - - PHP - -Fix: bug #64678 where Fedora Packaging Guidlines required LICENSE file -Fix: bug #64680 where we should check for SKIP_ONLINE_TESTS environment variable -Fix: bug #64679 where we had buffer overflow caused by struct sockaddr_storage * pointer - - - - - 1.6.1 - 1.6.0 - - - stable - stable - - PHP - -Fix: bug #64652 where Event::__construct returned valid object, however, with -uninitialized internal struct which caused segmentation faults in further -method calls - - - - - 1.6.0 - 1.6.0 - - - stable - stable - - PHP - -Fix: bug #64551 with build failed on Mac OS X -Fix: address argument of the listener accept callback contained garbage in case of a client connected via UNIX domain socket -Add: EventBuffer::write, EventUtil::setSocketOption methods and some constants -Refact: automatically set the upper bound of EventBuffer::search to the buffer length, if it is greater then the length -Fix: make the code compatible with PHP 5.5.0 .. 5.6.0-dev -Fix: build error with zts PHP setup -Fix: build error with libevent_extra disabled -Add: EventListener fd readonly property for numeric file descriptor of the socket associated with the listener -Add: EventBuffer::substr method - -INCOMPATIBLE CHANGES! -Renamed EventBuffer::remove to EventBuffer::read, EventBuffer::read now takes only max_bytes argument and returns string. -Renamed EventBuffer::removeBuffer to EventBuffer::appendFrom -EventBuffer::read now takes single argument 'size' and returns the string read - - - - - 1.5.1 - 1.5.0 - - - stable - stable - - PHP - -Fix: EventBuffer::removeBuffer returned boolean instead of the number of bytes read -Add: EventBuffer::fd property -Change: EventBuffer class is not final any more - - - - - 1.5.0 - 1.5.0 - - - stable - stable - - PHP - -Fix: uninitialized socket caused segmentation fault in EventBufferEvent methods -Del: EventBufferPosition class removed, EventBuffer::search now accepts and returns integers -Add: EventBuffer::searchEol method -Add: EventUtil::getSocketName method -Add: EventListener::getSocketName method -Fix: memory leak due to lack of zend_hash_destroy on the ssl context options -Add: support of UNIX domain sockets in EventListener::__construct, EventBufferEvent::connect methods - - - - - 1.4.0 - 1.4.0 - - - beta - beta - - PHP - -Add: HTTP server support: - * EventHttp methods: setMaxBodySize, setMaxHeadersSize, setTimeout, - addServerAlias, removeServerAlias setCallback, setDefaultCallback, - setAllowedMethods, setMaxBodySize, setMaxHeadersSize, setTimeout, - addServerAlias, removeServerAlias; - * EventHttpRequest class, callback and custom data can be bound to the - request for future use with EventHttpConnection - * New EventHttpConnection::makeRequest method allows to make custom HTTP - requests by means of EventHttpRequest class -Change: make EventDnsBase parameter optional in EventHttpConnection::__construct -Fix: classes/buffer_event.c: possible memory access violation in bufferevent callback -Fix: turn off buggy libevent thread lock debugging when built with --enable-event-debug - - - - - 1.3.0 - 1.3.1 - - - beta - beta - - PHP - -Fix: possible memory access violations in EventBufferEvent input/output property handlers -Change: Event::$timer_pending property removed; generic Event::$pending property added -Fix: With OPT_LEAVE_SOCKETS_BLOCKING flag EventListener::__construct turned fd to non-blocking mode -Fix: property and class HashTable's were not free'd in MSHUTDOWN -Add: Event::$data property -Fix: Event::__construct failed with Event::TIMEOUT flag -Fix: memory leak in EventBuffer::readLine -Add: --with-event-pthreads configure option -Fix: EventBase::reInit method's arginfo - - - - - 1.2.6 - 1.3.0 - - - beta - beta - - PHP - -Fix: with OpenSSL turned off got error: undefined symbol: zim_EventUtil_sslRandPoll -Add: implemented get_properties property handler(is called when one casts an object to array) -Refact: removed memory alloc for empty property hashtables -Fix: heap corruption caused by EventBufferEvent callbacks(thanks to Marco Schuster) -Fix: continuous calls to EventBufferEvent::setCallbacks didn't free old fci/fcc(thanks to Marco Schuster) -Fix: possible heap corruption in EventListener's callback -Add: EventBase::resume method - - - - - 1.2.3 - 1.2.0 - - - alpha - alpha - - PHP - -Fix: build errors -Fix: undefined symbol SSLv2_*_method when SL_OP_NO_SSLv2 defined - - - - - 1.2.0 - 1.2.0 - - - alpha - alpha - - PHP - -Fix: non-static zend_always_inline function failed to compile with some (non-zts) php setups -Change: static EventBuffer::addBuffer made non-static with one argument -Add: EventBuffer expand, prepend, prependBuffer, drain, copyout, readLine, search, -setPosition methods -Add: EventBufferPosition class -Fix: configure error in FreeBSD -Add: OpenSSL support: EventBufferEvent methods: sslFilter, sslSocket, sslError, sslRenegotiate; EventSslContext class -Add: EventBuffer::pullup method - - - - - 1.1.1 - 1.1.0 - - - devel - devel - - PHP - -Fix: the installer failed to determine location of src/common.h - - - - - 1.1.0 - 1.1.0 - - - devel - devel - - PHP - -Procedural API converted to OOP API - - - - - 1.0.1 - 1.0.0 - - - devel - devel - - PHP - -Fix: crash due to destruction of the internal bufferevent buffers (synced with oop branch) -Fix: extra memory consumption caused by continuous calls to bufferevent_get_input/_output -Fix: memory violation while parsing event_config_set_max_dispatch_interval parameters - - - - 2013-01-19 - - 1.0.0 - 1.0.0 - - - devel - devel - - PHP - -Libevent 2+ support added - - - - 2004-12-16 - - Wez Furlong - wez - wez@php.net - yes - - - 0.9.1 - 0.9.1 - - - beta - beta - - PHP - -Added event_timeout() function for easily scheduling a callback after a certain -period of time. The timeout may be persistent to make the callback a recurrent -event. - -Fixed an issue with timercmp() on windows that caused a busy wait when the -scheduler could have performed a sleep. - -Windows scheduling engine now also processes the message queue while -waiting; useful for COM/GUI based scripts. - -Fixed build for threaded systems with real signals. - -Supports epoll(4), poll(2) and select(2) IO notification engines. -Support for /dev/poll and kqueue is pending. - -On Windows, currently only sockets can participate in the IO notification engine. - - - - - - - 1.2.5 - 1.2.1 - - - 1.2.4 - 1.2.1 - - - alpha - alpha - - - alpha - alpha - - PHP - PHP - Fix: unneeded Z_ADDREF_P() calls in EventListener, EventBufferEvent constructors and factory methods -Fix: EventListener cached file descriptor for all connections -Change: EventBufferEvent enable/disable methods return bool now -Change: instead of stream pass numeric file descriptor to EventListener's accept-connection callback -Add: callbacks and the callback arg are now passed to EventBufferEvent::__construct as optional arguments - Fix: deleted redundant len argument of EventBuffer::readLine -Fix: EventBuffer::readLine returned non-dup'd string. Caused bugs with pointers. - - diff --git a/php-pecl-event.spec b/php-pecl-event.spec index f3e775a..0de0c05 100644 --- a/php-pecl-event.spec +++ b/php-pecl-event.spec @@ -3,12 +3,16 @@ # # Fedora spec file for php-pecl-event # -# Copyright (c) 2013-2017 Remi Collet +# Copyright (c) 2013-2018 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # + +# we don't want -z defs linker flag +%undefine _strict_symbol_defs_build + %if 0%{?scl:1} %global sub_prefix %{scl_prefix} %scl_package php-pecl-event @@ -26,19 +30,19 @@ # After 20-sockets.so %global ini_name 40-%{pecl_name}.ini %endif -#global prever RC1 +%global upstream_version 2.4.0 +%global upstream_prever RC1 Summary: Provides interface to libevent library Name: %{?sub_prefix}php-pecl-%{pecl_name} -Version: 2.3.0 -Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP -Group: Development/Languages URL: http://pecl.php.net/package/event -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Source0: http://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: %{?scl_prefix}php-devel > 5.4 +BuildRequires: %{?dtsprefix}gcc +BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-pear BuildRequires: pkgconfig(libevent) >= 2 @@ -62,15 +66,6 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{relea %endif %if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} -# Other third party repo stuff -Obsoletes: php53-pecl-%{pecl_name} <= %{version} -Obsoletes: php53u-pecl-%{pecl_name} <= %{version} -Obsoletes: php54-pecl-%{pecl_name} <= %{version} -Obsoletes: php54w-pecl-%{pecl_name} <= %{version} -%if "%{php_version}" > "5.5" -Obsoletes: php55u-pecl-%{pecl_name} <= %{version} -Obsoletes: php55w-pecl-%{pecl_name} <= %{version} -%endif %if "%{php_version}" > "5.6" Obsoletes: php56u-pecl-%{pecl_name} <= %{version} Obsoletes: php56w-pecl-%{pecl_name} <= %{version} @@ -118,15 +113,15 @@ sed -e 's/role="test"/role="src"/' \ %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ -i package.xml -mv %{pecl_name}-%{version}%{?prever} NTS +mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS cd NTS # Sanity check, really often broken DIR=$(%{__php} -r 'echo "php" . PHP_MAJOR_VERSION;') extver=$(sed -n '/#define PHP_EVENT_VERSION/{s/.* "//;s/".*$//;p}' $DIR/php_event.h) -if test "x${extver}" != "x%{version}%{?prever}"; then - : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever}. +if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then + : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}. exit 1 fi cd .. @@ -173,7 +168,6 @@ make %{?_smp_mflags} %install -rm -rf %{buildroot} %{?dtsenable} # use z-event.ini to ensure event.so load "after" sockets.so @@ -214,6 +208,8 @@ fi %endif %if %{with_tests} +sed -e 's/SSLv3_SERVER_METHOD/TLS_SERVER_METHOD/' -i ?TS/tests/12-serialization.phpt + cd NTS : Upstream test suite for NTS extension SKIP_ONLINE_TESTS=1 \ @@ -240,7 +236,7 @@ REPORT_EXIT_STATUS=1 \ %endif -%if 0%{?fedora} < 24 +%if 0%{?fedora} < 24 && 0%{?rhel} < 8 # when pear installed alone, after us %triggerin -- %{?scl_prefix}php-pear if [ -x %{__pecl} ] ; then @@ -260,12 +256,7 @@ fi %endif -%clean -rm -rf %{buildroot} - - %files -%defattr(-,root,root,-) %{?_licensedir:%license NTS/LICENSE} %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -280,6 +271,9 @@ rm -rf %{buildroot} %changelog +* Mon Apr 23 2018 Remi Collet - 2.4.0~RC1-1 +- update to 2.4.0RC1 + * Tue Jul 18 2017 Remi Collet - 2.3.0-4 - rebuild for PHP 7.2.0beta1 new API -- cgit