php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30514 expat not working
Submitted: 2004-10-21 17:19 UTC Modified: 2004-11-02 01:00 UTC
From: mswartz at itgs-presearch dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.0.2 OS: Linux/Solaris
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-10-21 17:19 UTC] mswartz at itgs-presearch dot com
Description:
------------
I believe that there are issues with expat and php5.  First I'm aware that expat is no longer bundled and the flag --with-libexpat-dir is deprecated.

But if I use the deprecated flag on some systems xml functions will work at runtime.  On other systems the following error occurs when being configured
configure: error: libxml2 version 2.5.10 or greater required. This error happens with the use of  --disable-libxml.

Using the new flag --with-expat-dir there are no issues at compile time on the solaris or linux system used but at runtime the following error is produced:
Fatal error: Call to undefined function xml_parser_create()

Reproduce code:
---------------
command line with old flag:
./configure --prefix=$Prefix --with-mysql=$Prefix --with-curl=$Prefix --with-apxs2=$Prefix/bin/apxs --with-gd  --with-png-dir=$Prefix --with-zlib --disable-debug --disable-libxml --with-libexpat-dir=$Prefix --enable-shared --enable-dbase && make && make install

command line with new flag:

./configure --prefix=$Prefix --with-mysql=$Prefix --with-curl=$Prefix --with-apxs2=$Prefix/bin/apxs --with-gd  --with-png-dir=$Prefix --with-zlib --disable-debug --disable-libxml --with-expat-dir=$Prefix --enable-shared --enable-dbase && make


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-23 08:55 UTC] tony2001@php.net
Works fine here - no error at compile time and function exists (libxml2 is not installed at all).
 [2004-11-02 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 04:01:32 2024 UTC