From 3d830f1f9496e47ee14c14449c4369e3a7fe5a78 Mon Sep 17 00:00:00 2001 From: Martijn Otto Date: Wed, 18 May 2016 17:00:59 +0200 Subject: Set the return type hint to undefined, otherwise PHP will not accept __construct member functions (they are not allowed to return anything) --- zend/classimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zend/classimpl.cpp') diff --git a/zend/classimpl.cpp b/zend/classimpl.cpp index e4a620f..75191f5 100644 --- a/zend/classimpl.cpp +++ b/zend/classimpl.cpp @@ -1341,7 +1341,7 @@ const struct _zend_function_entry *ClassImpl::entries() zend_function_entry *last = &_entries[i]; // all should be set to zero - memset(last, 0, sizeof(zend_function_entry)); + memset(last, 0, sizeof(*last)); // done return _entries; -- cgit v1.2.3