From 9c33408333b813c15b47a517fc1ee88d2b049243 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 23 Mar 2014 08:53:40 +0100 Subject: php-pecl-event: fix for php 5.6 --- event-php56.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 event-php56.patch (limited to 'event-php56.patch') diff --git a/event-php56.patch b/event-php56.patch new file mode 100644 index 0000000..6dd562d --- /dev/null +++ b/event-php56.patch @@ -0,0 +1,13 @@ +diff --git a/src/util.h b/src/util.h +index 57ef991..8c3b652 100644 +--- a/src/util.h ++++ b/src/util.h +@@ -96,7 +96,7 @@ int _php_event_getsockname(evutil_socket_t fd, zval **ppzaddress, zval **ppzport + + #define PHP_EVENT_REQUIRE_BASE_BY_REF(zbase) \ + do { \ +- if (!Z_ISREF_P((zbase))) { \ ++ if (!Z_ISREF_P((zbase)) || Z_REFCOUNT_P(zbase) < 2) { \ + php_error_docref(NULL TSRMLS_CC, E_ERROR, \ + "EventBase must be passed by reference"); \ + } \ -- cgit