Skip to content

Commit 32b5a41

Browse files
author
foobar
committedNov 12, 2003
- Fixed bug #26072 (--disable-libxml does not work).
1 parent 81d1a19 commit 32b5a41

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed
 

‎NEWS

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ PHP NEWS
44
- Added new functions:
55
. dba_key_split() to split inifile keys in an array. (Marcus)
66
. nanosleep() signal safe sleep (Magnus, Ilia)
7+
- Fixed bug #26072 (--disable-libxml does not work). (Jani)
78
- Fixed bug #26083 (Non-working write support in ext/dom). (Ilia)
89
- Fixed bug #24394 (Serializing cross-referenced objects causes segfault).
910
(Moriyoshi)

‎ext/dom/config.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if test -z "$PHP_LIBXML_DIR"; then
1010
[ --with-libxml-dir[=DIR] DOM: libxml2 install prefix.], no, no)
1111
fi
1212

13-
if test "$PHP_DOM" != "no"; then
13+
if test "$PHP_DOM" != "no" && test "$PHP_LIBXML" != "no"; then
1414

1515
PHP_SETUP_LIBXML(DOM_SHARED_LIBADD, [
1616
AC_DEFINE(HAVE_DOM,1,[ ])
@@ -22,7 +22,7 @@ if test "$PHP_DOM" != "no"; then
2222
documenttype.c domimplementationlist.c entity.c \
2323
nodelist.c text.c comment.c domconfiguration.c \
2424
domimplementationsource.c entityreference.c \
25-
notation.c xpath.c \
25+
notation.c xpath.c \
2626
typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c],
2727
$ext_shared)
2828
PHP_SUBST(DOM_SHARED_LIBADD)

‎ext/libxml/config.m4 ‎ext/libxml/config0.m4

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ fi
1212

1313
if test "$PHP_LIBXML" != "no"; then
1414

15+
dnl This extension can not be build as shared
16+
ext_shared=no
17+
1518
PHP_SETUP_LIBXML(LIBXML_SHARED_LIBADD, [
1619
AC_DEFINE(HAVE_LIBXML,1,[ ])
17-
PHP_NEW_EXTENSION(libxml, [libxml.c],
18-
$ext_shared)
19-
PHP_SUBST(LIBXML_SHARED_LIBADD)
20+
PHP_NEW_EXTENSION(libxml, [libxml.c], $ext_shared)
2021
], [
2122
AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
2223
])

‎ext/simplexml/config.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if test -z "$PHP_LIBXML_DIR"; then
99
[ --with-libxml-dir=DIR SimpleXML: libxml2 install prefix], no, no)
1010
fi
1111

12-
if test "$PHP_SIMPLEXML" != "no"; then
12+
if test "$PHP_SIMPLEXML" != "no" && test "$PHP_LIBXML" != "no"; then
1313

1414
PHP_SETUP_LIBXML(SIMPLEXML_SHARED_LIBADD, [
1515
AC_DEFINE(HAVE_SIMPLEXML,1,[ ])

‎ext/xml/config.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fi
1313
PHP_ARG_WITH(libexpat-dir, libexpat install dir,
1414
[ --with-libexpat-dir=DIR XML: libexpat install prefix (deprecated)], no, no)
1515

16-
if test "$PHP_XML" != "no"; then
16+
if test "$PHP_XML" != "no" && test "$PHP_LIBXML" != "no" -o "$PHP_LIBEXPAT_DIR" != "no"; then
1717
dnl
1818
dnl Default to libxml2.
1919
dnl
@@ -24,7 +24,7 @@ if test "$PHP_XML" != "no"; then
2424
AC_MSG_ERROR([xml2-config not found. Use --with-libxml-dir=<DIR>])
2525
fi
2626
])
27-
27+
2828
dnl
2929
dnl Check for expat only if --with-libexpat-dir is used.
3030
dnl

0 commit comments

Comments
 (0)
Failed to load comments.