Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2013 18:48:37 +0800 (CST)
From:      Hung-Yi Chen <gaod@hychen.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        ports@mcdermottroe.com
Subject:   ports/183922: [PATCH] devel/pecl-xhprof: update to 0.9.4
Message-ID:  <201311131048.rADAmbxs062518@cse.tw>
Resent-Message-ID: <201311131050.rADAo2Z8044187@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         183922
>Category:       ports
>Synopsis:       [PATCH] devel/pecl-xhprof: update to 0.9.4
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 13 10:50:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Hung-Yi Chen
>Release:        FreeBSD 9.1-RELEASE-p6 amd64
>Organization:
>Environment:
System: FreeBSD cse.tw 9.1-RELEASE-p6 FreeBSD 9.1-RELEASE-p6 #0: Wed Aug 21 20:40:52 UTC 2013
>Description:
- Update to 0.9.4

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.4.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-11-13 18:40:35.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.4
 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-11-13 18:40:45.000000000 +0800
@@ -1,2 +1,2 @@
-SHA256 (xhprof-0.9.2.tgz) = 5359ea0a1e16ec6c100dd7adb7285bdcc0f931e0b61631ea364f8b06925ea729
-SIZE (xhprof-0.9.2.tgz) = 931660
+SHA256 (xhprof-0.9.4.tgz) = 002a2d4a825d16aeb3017c59f94d8c5e5d06611dd6197acd2f07fce197d3b8f8
+SIZE (xhprof-0.9.4.tgz) = 842077
diff -ruN /usr/ports/devel/pecl-xhprof/files/patch-extension_xhprof.c ./files/patch-extension_xhprof.c
--- /usr/ports/devel/pecl-xhprof/files/patch-extension_xhprof.c	1970-01-01 08:00:00.000000000 +0800
+++ ./files/patch-extension_xhprof.c	2013-11-13 18:44:31.000000000 +0800
@@ -0,0 +1,11 @@
+--- xhprof.c.orig	2013-11-13 18:41:35.000000000 +0800
++++ xhprof.c	2013-11-13 18:43:37.000000000 +0800
+@@ -28,7 +28,7 @@
+ #include "php_ini.h"
+ #include "ext/standard/info.h"
+ #include "php_xhprof.h"
+-#include "zend_extensions.h"
++#include "Zend/zend_extensions.h"
+ #include <sys/time.h>
+ #include <sys/resource.h>
+ #include <stdlib.h>
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 <sys/time.h>
- #include <sys/resource.h>
- #include <stdlib.h>
-@@ -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.4.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311131048.rADAmbxs062518>