From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jun 24 11:50:06 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 76C2C106567B for ; Sun, 24 Jun 2012 11:50:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4F7748FC14 for ; Sun, 24 Jun 2012 11:50:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q5OBo6Ko059722 for ; Sun, 24 Jun 2012 11:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q5OBo6Sv059721; Sun, 24 Jun 2012 11:50:06 GMT (envelope-from gnats) Resent-Date: Sun, 24 Jun 2012 11:50:06 GMT Resent-Message-Id: <201206241150.q5OBo6Sv059721@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, Alexander Moskalenko Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 176A4106564A for ; Sun, 24 Jun 2012 11:44:06 +0000 (UTC) (envelope-from alexander.moskalenko@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id A1CD78FC0A for ; Sun, 24 Jun 2012 11:44:05 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so3033601wgb.31 for ; Sun, 24 Jun 2012 04:44:04 -0700 (PDT) Received: by 10.216.50.140 with SMTP id z12mr4154724web.11.1340538242046; Sun, 24 Jun 2012 04:44:02 -0700 (PDT) Received: by 10.223.87.65 with HTTP; Sun, 24 Jun 2012 04:44:01 -0700 (PDT) Message-Id: Date: Sun, 24 Jun 2012 14:44:01 +0300 From: Alexander Moskalenko To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/169370: fix ffmpeg-php compilation against php 5.4 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2012 11:50:06 -0000 >Number: 169370 >Category: ports >Synopsis: fix ffmpeg-php compilation against php 5.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: Sun Jun 24 11:50:05 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Charlie & >Release: FreeBSD 9.0-STABLE amd64 >Organization: >Environment: System: FreeBSD dvdev.dvdev.org.ua 9.0-STABLE FreeBSD 9.0-STABLE #0: Thu May 17 01:08:15 EEST 2012 root@dvdev.dvdev.org.ua:/usr/obj/usr/src/sys/GENERIC amd64 >Description: graphics/php5-ffmpeg does not compile against PHP 5.4 brach. This prevents from upgrading 5.3 -> 5.4 >How-To-Repeat: Try to install php5-ffmpeg with PHP 5.4 >Fix: Apply patch --- patch-ffmpeg_movie.c begins here --- --- ffmpeg_movie.c.orig 2008-10-14 01:46:53.000000000 +0300 +++ ffmpeg_movie.c 2012-06-24 14:26:39.095299987 +0300 @@ -308,7 +308,7 @@ } if (persistent) { - list_entry *le; + zend_rsrc_list_entry *le; /* resolve the fully-qualified path name to use as the hash key */ fullpath = expand_filepath(filename, NULL TSRMLS_CC); @@ -343,7 +343,7 @@ } } else { /* no existing persistant movie, create one */ - list_entry new_le; + zend_rsrc_list_entry new_le; ffmovie_ctx = _php_alloc_ffmovie_ctx(1); if (_php_open_movie_file(ffmovie_ctx, filename)) { @@ -357,7 +357,7 @@ new_le.ptr = ffmovie_ctx; if (FAILURE == zend_hash_update(&EG(persistent_list), hashkey, - hashkey_length+1, (void *)&new_le, sizeof(list_entry), + hashkey_length+1, (void *)&new_le, sizeof(zend_rsrc_list_entry), NULL)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to register persistent resource"); --- patch-ffmpeg_movie.c ends here --- >Release-Note: >Audit-Trail: >Unformatted: