From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jun 15 10:50:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E293C163 for ; Sat, 15 Jun 2013 10:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id C7B8E1167 for ; Sat, 15 Jun 2013 10: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 r5FAo0u5047475 for ; Sat, 15 Jun 2013 10: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 r5FAo0xD047474; Sat, 15 Jun 2013 10:50:00 GMT (envelope-from gnats) Resent-Date: Sat, 15 Jun 2013 10:50:00 GMT Resent-Message-Id: <201306151050.r5FAo0xD047474@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, "O. Hartmann" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C2569B5 for ; Sat, 15 Jun 2013 10:47:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 998B51154 for ; Sat, 15 Jun 2013 10:47:43 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5FAlhJm062225 for ; Sat, 15 Jun 2013 10:47:43 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5FAlhao062224; Sat, 15 Jun 2013 10:47:43 GMT (envelope-from nobody) Message-Id: <201306151047.r5FAlhao062224@oldred.freebsd.org> Date: Sat, 15 Jun 2013 10:47:43 GMT From: "O. Hartmann" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/179569: textproc/refdb: Fatal error: Call-time pass-by-reference has been removed in /usr/local/share/refdb/www/index.php on line 1531 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: Sat, 15 Jun 2013 10:50:01 -0000 >Number: 179569 >Category: ports >Synopsis: textproc/refdb: Fatal error: Call-time pass-by-reference has been removed in /usr/local/share/refdb/www/index.php on line 1531 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 15 10:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: O. Hartmann >Release: FreeBSD 10..0-CURRENT/amd64 FreeBSD 9.1-STABLE/amd64 >Organization: FU Berlin >Environment: >Description: If someone is using texproc/refdb's PHP web interface which is in some cases very convenient, this one will run into problems on more modern php5 implementations, since the index.php file of refdb's web interface complains about a call by reference failure (it seems to be YAZ, but I'm not sure). I simply circumvented this problem by following the PHP error logs advice to check and correct and I "corrected" the call by reference simply by removing the ampersand in the call shown in the patch attached. >How-To-Repeat: Install textproc/refdb on a modern FreeBSD 9/10 by using most recent PHP5, yaz and Apache22 or Apache24. >Fix: Modify line 1531 in phpweb/index.php.in as shown in the attached patch. Patch attached with submission follows: diff -Nur refdb.orig/files/patch-phpweb-index.php.in refdb/files/patch-phpweb-index.php.in --- refdb.orig/files/patch-phpweb-index.php.in 1970-01-01 01:00:00.000000000 +0100 +++ refdb/files/patch-phpweb-index.php.in 2013-06-15 12:39:03.000000000 +0200 @@ -0,0 +1,18 @@ +--- phpweb/index.php.in.orig 2013-06-15 12:37:55.000000000 +0200 ++++ phpweb/index.php.in 2013-06-15 12:38:21.000000000 +0200 +@@ -1528,7 +1528,7 @@ + // Mapping CCL terms to RPN as defined above (bib1) for each search + yaz_ccl_conf($id[$i], $bib1); + // Parse input against yaz_ccl_conf; if error report message; defines cclresult as output of parsing +- if (!yaz_ccl_parse($id[$i], $term, &$cclresult)) { ++ if (!yaz_ccl_parse($id[$i], $term, $cclresult)) { + echo '

Error: ' . $cclresult["errorstring"] . '

Clear results

'; + continue; + } +@@ -1791,4 +1791,4 @@ + // close out the html + echo " \n"; + echo "\n"; +-?> +\ No newline at end of file ++?> >Release-Note: >Audit-Trail: >Unformatted: