File php-CVE-2016-5773.patch of Package php5.14673

Index: php-5.6.1/ext/zip/php_zip.c
===================================================================
--- php-5.6.1.orig/ext/zip/php_zip.c	2016-06-28 09:43:57.623512313 +0200
+++ php-5.6.1/ext/zip/php_zip.c	2016-06-28 09:44:52.252420179 +0200
@@ -1043,6 +1043,14 @@ static int php_zip_has_property(zval *ob
 }
 /* }}} */
 
+static HashTable *php_zip_get_gc(zval *object, zval ***gc_data, int *gc_data_count TSRMLS_DC) /* {{{ */
+{
+	*gc_data = NULL;
+	*gc_data_count = 0;
+	return zend_std_get_properties(object TSRMLS_CC);
+}
+/* }}} */
+
 static HashTable *php_zip_get_properties(zval *object TSRMLS_DC)/* {{{ */
 {
 	ze_zip_object *obj;
@@ -3034,6 +3042,7 @@ static PHP_MINIT_FUNCTION(zip)
 	zip_object_handlers.clone_obj		= NULL;
 	zip_object_handlers.get_property_ptr_ptr = php_zip_get_property_ptr_ptr;
 
+	zip_object_handlers.get_gc          = php_zip_get_gc;
 	zip_object_handlers.get_properties = php_zip_get_properties;
 	zip_object_handlers.read_property	= php_zip_read_property;
 	zip_object_handlers.has_property	= php_zip_has_property;
openSUSE Build Service is sponsored by