From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 1 03:50:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E8BC01E8 for ; Tue, 1 Oct 2013 03:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C61592914 for ; Tue, 1 Oct 2013 03:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r913o0rC094334 for ; Tue, 1 Oct 2013 03:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r913o0Rs094332; Tue, 1 Oct 2013 03:50:00 GMT (envelope-from gnats) Resent-Date: Tue, 1 Oct 2013 03:50:00 GMT Resent-Message-Id: <201310010350.r913o0Rs094332@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gasol Wu Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 03667193 for ; Tue, 1 Oct 2013 03:40:16 +0000 (UTC) (envelope-from gasolwu@kkbox.com) Received: from kkbox.com (ip-203-69-67-167.kkcube.com [203.69.67.167]) by mx1.freebsd.org (Postfix) with ESMTP id 994B128BC for ; Tue, 1 Oct 2013 03:40:15 +0000 (UTC) Received: by goingmarry.kkbox.com (Postfix, from userid 1033) id D682374CF01; Tue, 1 Oct 2013 11:30:30 +0800 (CST) Message-Id: <20131001033030.D682374CF01@goingmarry.kkbox.com> Date: Tue, 1 Oct 2013 11:30:30 +0800 (CST) From: Gasol Wu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/182532: [PATCH] devel/pecl-xhprof: update to 0.9.3 Cc: ports@mcdermottroe.com X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Oct 2013 03:50:01 -0000 >Number: 182532 >Category: ports >Synopsis: [PATCH] devel/pecl-xhprof: update to 0.9.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Oct 01 03:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Gasol Wu >Release: FreeBSD 9.1-RELEASE-p6 amd64 >Organization: >Environment: System: FreeBSD goingmarry 9.1-RELEASE-p6 FreeBSD 9.1-RELEASE-p6 #0: Wed Aug 21 20:40:52 UTC 2013 >Description: - Update to 0.9.3 - The patch has merged to upstream, See https://github.com/facebook/xhprof/pull/15 Port maintainer (ports@mcdermottroe.com) is cc'd. Generated with FreeBSD Port Tools 0.99_8 (mode: update, diff: ports) >How-To-Repeat: >Fix: --- pecl-xhprof-0.9.3.patch begins here --- diff -ruN /usr/ports/devel/pecl-xhprof/Makefile ./Makefile --- /usr/ports/devel/pecl-xhprof/Makefile 2013-09-21 01:13:42.000000000 +0800 +++ ./Makefile 2013-10-01 11:05:23.000000000 +0800 @@ -2,8 +2,7 @@ # $FreeBSD: devel/pecl-xhprof/Makefile 327724 2013-09-20 17:13:42Z bapt $ PORTNAME= xhprof -PORTVERSION= 0.9.2 -PORTREVISION= 1 +PORTVERSION= 0.9.3 CATEGORIES= devel pear MASTER_SITES= http://pecl.php.net/get/ PKGNAMEPREFIX= pecl- diff -ruN /usr/ports/devel/pecl-xhprof/distinfo ./distinfo --- /usr/ports/devel/pecl-xhprof/distinfo 2012-07-14 21:54:48.000000000 +0800 +++ ./distinfo 2013-10-01 11:05:58.000000000 +0800 @@ -1,2 +1,2 @@ -SHA256 (xhprof-0.9.2.tgz) = 5359ea0a1e16ec6c100dd7adb7285bdcc0f931e0b61631ea364f8b06925ea729 -SIZE (xhprof-0.9.2.tgz) = 931660 +SHA256 (xhprof-0.9.3.tgz) = 422c5269de3e3ff281f010584768b7753ceec6a9f4f858a8e171ec43358dbbf3 +SIZE (xhprof-0.9.3.tgz) = 841836 diff -ruN /usr/ports/devel/pecl-xhprof/files/patch-xhprof.c ./files/patch-xhprof.c --- /usr/ports/devel/pecl-xhprof/files/patch-xhprof.c 2012-07-14 21:54:48.000000000 +0800 +++ ./files/patch-xhprof.c 1970-01-01 08:00:00.000000000 +0800 @@ -1,56 +0,0 @@ ---- xhprof.c -+++ xhprof.c -@@ -28,6 +28,7 @@ - #include "php_ini.h" - #include "ext/standard/info.h" - #include "php_xhprof.h" -+#include "Zend/zend_extensions.h" - #include - #include - #include -@@ -898,7 +899,7 @@ static char *hp_get_base_filename(char *filename) { - static char *hp_get_function_name(zend_op_array *ops TSRMLS_DC) { - zend_execute_data *data; - char *func = NULL; -- char *cls = NULL; -+ const char *cls = NULL; - char *ret = NULL; - int len; - zend_function *curr_func; -@@ -942,7 +943,12 @@ static char *hp_get_function_name(zend_op_array *ops TSRMLS_DC) { - /* we are dealing with a special directive/function like - * include, eval, etc. - */ -+#if ZEND_EXTENSION_API_NO >= 220100525 -+ curr_op = data->opline->extended_value; -+#else - curr_op = data->opline->op2.u.constant.value.lval; -+#endif -+ - switch (curr_op) { - case ZEND_EVAL: - func = "eval"; -@@ -1660,13 +1666,22 @@ ZEND_DLEXPORT void hp_execute_internal(zend_execute_data *execute_data, - if (!_zend_execute_internal) { - /* no old override to begin with. so invoke the builtin's implementation */ - zend_op *opline = EX(opline); -+#if ZEND_EXTENSION_API_NO >= 220100525 -+ temp_variable *retvar = &EX_T(opline->result.var); -+ ((zend_internal_function *) EX(function_state).function)->handler( -+ opline->extended_value, -+ retvar->var.ptr, -+ (EX(function_state).function->common.fn_flags & ZEND_ACC_RETURN_REFERENCE) ? -+ &retvar->var.ptr:NULL, -+ EX(object), ret TSRMLS_CC); -+#else - ((zend_internal_function *) EX(function_state).function)->handler( - opline->extended_value, - EX_T(opline->result.u.var).var.ptr, - EX(function_state).function->common.return_reference ? - &EX_T(opline->result.u.var).var.ptr:NULL, - EX(object), ret TSRMLS_CC); -- -+#endif - } else { - /* call the old override */ - _zend_execute_internal(execute_data, ret TSRMLS_CC); --- pecl-xhprof-0.9.3.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: