Bug 69630 - The new php4-xslt port isn't installed correctly
Summary: The new php4-xslt port isn't installed correctly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-26 20:40 UTC by Martijn Broeders
Modified: 2004-07-26 22:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martijn Broeders 2004-07-26 20:40:11 UTC
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.
Comment 1 Kirill Ponomarev freebsd_committer 2004-07-26 21:47:39 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer.
Comment 2 Alex Dupre freebsd_committer 2004-07-26 22:31:14 UTC
State Changed
From-To: open->closed

Fixed, rebuild the php4-xslt port.