From owner-svn-ports-head@freebsd.org Mon Nov 30 14:58:20 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3670BA3CB5F; Mon, 30 Nov 2015 14:58:20 +0000 (UTC) (envelope-from miwi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 13DFB1981; Mon, 30 Nov 2015 14:58:20 +0000 (UTC) (envelope-from miwi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tAUEwJG1047216; Mon, 30 Nov 2015 14:58:19 GMT (envelope-from miwi@FreeBSD.org) Received: (from miwi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tAUEwJvV047214; Mon, 30 Nov 2015 14:58:19 GMT (envelope-from miwi@FreeBSD.org) Message-Id: <201511301458.tAUEwJvV047214@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: miwi set sender to miwi@FreeBSD.org using -f From: Martin Wilke Date: Mon, 30 Nov 2015 14:58:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r402675 - in head/databases/pecl-drizzle: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2015 14:58:20 -0000 Author: miwi Date: Mon Nov 30 14:58:18 2015 New Revision: 402675 URL: https://svnweb.freebsd.org/changeset/ports/402675 Log: - Unbreak build for php 5.X Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D4320 Added: head/databases/pecl-drizzle/files/ head/databases/pecl-drizzle/files/patch-php_drizzle.c (contents, props changed) Modified: head/databases/pecl-drizzle/Makefile Modified: head/databases/pecl-drizzle/Makefile ============================================================================== --- head/databases/pecl-drizzle/Makefile Mon Nov 30 14:54:08 2015 (r402674) +++ head/databases/pecl-drizzle/Makefile Mon Nov 30 14:58:18 2015 (r402675) @@ -18,7 +18,6 @@ LIB_DEPENDS= libdrizzle.so:${PORTSDIR}/d USES= tar:tgz USE_PHP= yes USE_PHPEXT= yes -IGNORE_WITH_PHP=5 56 OPTIONS_DEFINE= DOCS EXAMPLES Added: head/databases/pecl-drizzle/files/patch-php_drizzle.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/pecl-drizzle/files/patch-php_drizzle.c Mon Nov 30 14:58:18 2015 (r402675) @@ -0,0 +1,72 @@ +--- php_drizzle.c.orig 1970-01-01 17:13:08.000000000 +0800 ++++ php_drizzle.c 2015-11-30 22:02:21.309689000 +0800 +@@ -1314,9 +1314,13 @@ + } + + zend_object_std_init(&(obj->std), class_type TSRMLS_CC); ++#if PHP_VERSION_ID < 50399 + zend_hash_copy(obj->std.properties, &(class_type->default_properties), + (copy_ctor_func_t)zval_add_ref, (void *)(&tmp), + sizeof(zval *)); ++#else ++ object_properties_init((zend_object*) &(obj->std), class_type); ++#endif + + value.handle= zend_objects_store_put(obj, + (zend_objects_store_dtor_t)zend_objects_destroy_object, +@@ -1582,9 +1586,13 @@ + } + + zend_object_std_init(&(obj->std), class_type TSRMLS_CC); ++#if PHP_VERSION_ID < 50399 + zend_hash_copy(obj->std.properties, &(class_type->default_properties), + (copy_ctor_func_t)zval_add_ref, (void *)(&tmp), + sizeof(zval *)); ++#else ++ object_properties_init((zend_object*) &(obj->std), class_type); ++#endif + + obj->value.handle= zend_objects_store_put(obj, + (zend_objects_store_dtor_t)zend_objects_destroy_object, +@@ -2505,9 +2513,13 @@ + } + + zend_object_std_init(&(obj->std), class_type TSRMLS_CC); ++#if PHP_VERSION_ID < 50399 + zend_hash_copy(obj->std.properties, &(class_type->default_properties), + (copy_ctor_func_t)zval_add_ref, (void *)(&tmp), + sizeof(zval *)); ++#else ++ object_properties_init((zend_object*) &(obj->std), class_type); ++#endif + + obj->value.handle= zend_objects_store_put(obj, + (zend_objects_store_dtor_t)zend_objects_destroy_object, +@@ -3017,9 +3029,13 @@ + } + + zend_object_std_init(&(result->std), class_type TSRMLS_CC); ++#if PHP_VERSION_ID < 50399 + zend_hash_copy(result->std.properties, &(class_type->default_properties), + (copy_ctor_func_t)zval_add_ref, (void *)(&tmp), + sizeof(zval *)); ++#else ++ object_properties_init((zend_object*) &(result->std), class_type); ++#endif + + value.handle= zend_objects_store_put(result, + (zend_objects_store_dtor_t)zend_objects_destroy_object, +@@ -3382,9 +3398,13 @@ + } + + zend_object_std_init(&(obj->std), class_type TSRMLS_CC); ++#if PHP_VERSION_ID < 50399 + zend_hash_copy(obj->std.properties, &(class_type->default_properties), + (copy_ctor_func_t)zval_add_ref, (void *)(&tmp), + sizeof(zval *)); ++#else ++ object_properties_init((zend_object*) &(obj->std), class_type); ++#endif + + value.handle= zend_objects_store_put(obj, + (zend_objects_store_dtor_t)zend_objects_destroy_object,