Date: Mon, 26 Jul 2004 19:35:48 GMT From: Martijn Broeders <martijn@zuul.nu> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/69630: The new php4-xslt port isn't installed correctly Message-ID: <200407261935.i6QJZmpv066259@www.freebsd.org> Resent-Message-ID: <200407261940.i6QJeEQX097291@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 69630 >Category: ports >Synopsis: The new php4-xslt port isn't installed correctly >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 26 19:40:11 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Martijn Broeders >Release: 5.2.1-p8 >Organization: HUB Uitgevers >Environment: FreeBSD hagelslag.hub.nl 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 #0: Thu May 27 08:38:41 CEST 2004 root@hagelslag.hub.nl:/usr/obj/usr/src/sys/HAGELSLAG i386 >Description: Since the new php layout in the ports (July 23 2004), the xslt extension for php4 does not work correctly. On a FreeBSD 5.2.1-p8 machine (also reproduced on 4.10-release and 5.2-CURRENT) I installed apache2 and php4 from the ports. Then I installed the /usr/ports/textproc/php4-xslt port. I verified my php.ini that the extension is loaded (extension=xslt.so) and that the extension-path is included (extension_dir = "/usr/local/lib/php/20020429"). In a php file I use the xslt_set_encoding() function. When I connect to this file the following error appears: Fatal error: Call to undefined function: xslt_set_encoding() in /usr/local/www/data-dist/test.php on line 3 Before July 23 2004, when php4 (and its extensions) had to be installed differently from the ports, there was no problem. >How-To-Repeat: - cvsup the ports-tree after July 23 2004 (the new php4 port layout) - Install the /usr/ports/www/apache2 port with 'make install clean' - Install the /usr/ports/lang/php4 port with 'make install clean' - Install the /usr/ports/textproc/php4-xslt port with 'make install clean' - Create a test.php file with the following content: <?php $ht=xslt_create(); xslt_set_encoding($ht,"ISO-8859-2"); $args = array ( '/_xml' => $xml, '/_xslt' => $xslt); $result=xslt_process($ht,'arg:/_xml','arg:/_xslt',NULL,$args); ?> - Place the test.php file in the root of the web-tree and connect with a webbrowser to http://[machinename]/test.php - See that PHP says that the xslt_set_encoding() does not exist. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407261935.i6QJZmpv066259>