Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Dec 2005 12:02:53 -0500 (EST)
From:      Nick Muerdter <spam@nickm.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ale@FreeBSD.org
Subject:   ports/90506: [patch] pecl-fileinfo 1.0.2 won't compile against PHP 5.1.1
Message-ID:  <200512161702.jBGH2rrQ002910@cclsrv02.rit.edu>
Resent-Message-ID: <200512161700.jBGH0DYF074114@freefall.freebsd.org>

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

>Number:         90506
>Category:       ports
>Synopsis:       [patch] pecl-fileinfo 1.0.2 won't compile against PHP 5.1.1
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 16 17:00:12 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Nick Muerdter
>Release:        FreeBSD 5.3-SECURITY i386
>Organization:
>Environment:
System: FreeBSD campuslife.rit.edu 5.3-SECURITY FreeBSD 5.3-SECURITY #0: Wed Jul 20 06:22:23 UTC 2005 root@builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
I think somewhere in the latest PHP upgrades (5.1.1, I think), pecl-fileinfo refuses to compile. Here's the fileinfo bug report, but an update has yet to be released: http://pecl.php.net/bugs/bug.php?id=6164
>How-To-Repeat:
cd /usr/ports/sysutils/pecl-fileinfo
make install
>Fix:
--- pecl-fileinfo.patch begins here ---
diff -ruN pecl-fileinfo.bak/files/patch-fileinfo.c pecl-fileinfo/files/patch-fileinfo.c
--- pecl-fileinfo.bak/files/patch-fileinfo.c	Wed Dec 31 19:00:00 1969
+++ pecl-fileinfo/files/patch-fileinfo.c	Fri Dec 16 11:35:02 2005
@@ -0,0 +1,11 @@
+--- fileinfo.c	6 Dec 2005 00:27:01 -0000	1.13
++++ fileinfo.c	6 Dec 2005 04:14:55 -0000
+@@ -103,7 +103,7 @@ PHP_FILEINFO_API zend_object_value finfo
+ 	intern = ecalloc(1, sizeof(struct finfo_object));
+ 	intern->zo.ce = class_type;
+ 	intern->zo.properties = NULL;
+-#if ZEND_EXTENSION_API_NO > 220050000
++#if ZEND_MODULE_API_NO >= 20050922
+ 	intern->zo.guards = NULL;
+ #else
+ 	intern->zo.in_get = 0;
--- pecl-fileinfo.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?200512161702.jBGH2rrQ002910>