From nobody@FreeBSD.org  Mon Jul 26 19:35:49 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4BB6416A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Jul 2004 19:35:49 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 42E0A43D54
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Jul 2004 19:35:49 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i6QJZmB1066260
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Jul 2004 19:35:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i6QJZmpv066259;
	Mon, 26 Jul 2004 19:35:48 GMT
	(envelope-from nobody)
Message-Id: <200407261935.i6QJZmpv066259@www.freebsd.org>
Date: Mon, 26 Jul 2004 19:35:48 GMT
From: Martijn Broeders <martijn@zuul.nu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: The new php4-xslt port isn't installed correctly
X-Send-Pr-Version: www-2.3

>Number:         69630
>Category:       ports
>Synopsis:       The new php4-xslt port isn't installed correctly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 26 19:40:11 GMT 2004
>Closed-Date:    Mon Jul 26 21:32:11 GMT 2004
>Last-Modified:  Mon Jul 26 21:32:11 GMT 2004
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->ale  
Responsible-Changed-By: krion 
Responsible-Changed-When: Mon Jul 26 20:47:39 GMT 2004 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69630 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Mon Jul 26 21:31:14 GMT 2004 
State-Changed-Why:  
Fixed, rebuild the php4-xslt port. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69630 
>Unformatted:
