ports/90506: [patch] pecl-fileinfo 1.0.2 won't compile against PHP 5.1.1

Nick Muerdter spam at nickm.org
Fri Dec 16 17:00:14 UTC 2005


>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 at 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:



More information about the freebsd-ports-bugs mailing list