Date: Fri, 23 May 2008 15:48:46 GMT From: Gary Palmer <gpalmer@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/123934: devel/pear-PhpDocumentor creates invalid PHP code during post-patch Message-ID: <200805231548.m4NFmktK002771@www.freebsd.org> Resent-Message-ID: <200805231600.m4NG025S050733@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805231548.m4NFmktK002771>