From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 23 16:00:03 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D9C9106567D for ; Fri, 23 May 2008 16:00:03 +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 E70A58FC20 for ; Fri, 23 May 2008 16:00:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m4NG02kB050734 for ; Fri, 23 May 2008 16:00:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4NG025S050733; Fri, 23 May 2008 16:00:02 GMT (envelope-from gnats) Resent-Date: Fri, 23 May 2008 16:00:02 GMT Resent-Message-Id: <200805231600.m4NG025S050733@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, Gary Palmer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70303106567B for ; Fri, 23 May 2008 15:50:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 58DC38FC21 for ; Fri, 23 May 2008 15:50:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m4NFmkiF002772 for ; Fri, 23 May 2008 15:48:46 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m4NFmktK002771; Fri, 23 May 2008 15:48:46 GMT (envelope-from nobody) Message-Id: <200805231548.m4NFmktK002771@www.freebsd.org> Date: Fri, 23 May 2008 15:48:46 GMT From: Gary Palmer To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/123934: devel/pear-PhpDocumentor creates invalid PHP code during post-patch 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: Fri, 23 May 2008 16:00:03 -0000 >Number: 123934 >Category: ports >Synopsis: devel/pear-PhpDocumentor creates invalid PHP code during post-patch >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 23 16:00:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Gary Palmer >Release: 6.3-RC2 >Organization: >Environment: PHP 5.2.6 with Suhosin-Patch 0.9.6.2 (cli) (built: May 3 2008 00:13:30) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies >Description: Part of the post-patch makefile target is a sed with the following pattern "s|VER|${PORTVERSION}|g" Unfortunately, at least one of the PHP files ( phpDocumentor/Setup.inc.php ) objects to this replacement of the string "VER". Two lines in particular: line 193: $phpdocver = PHPDOCUMENTOR_VER; line 914: if (empty($this->render->converters)) addErrorDie(PDERROR_NO_CONVERTERS) ; The code ends up as: line 193: $phpdocver = PHPDOCUMENTOR_1.4.2; line 914: if (empty($this->render->converters)) addErrorDie(PDERROR_NO_CON1.4.2TER S); neither of which parse properly PHP Parse error: syntax error, unexpected T_DNUMBER in /usr/local/share/pear/PhpDocumentor/phpDocumentor/Setup.inc.php on line 193 and PHP Parse error: syntax error, unexpected T_DNUMBER in /usr/local/share/pear/PhpDocumentor/phpDocumentor/Setup.inc.php on line 914 There may be other instances of this problem, but they can all be traced back to the post-patch target. >How-To-Repeat: cd /usr/ports/devel/devel/pear-PhpDocumentor make all install /usr/local/bin/phpdoc >Fix: Use PEAR directly instead of the port >Release-Note: >Audit-Trail: >Unformatted: