summaryrefslogtreecommitdiff
path: root/ext/simplexml/config.m4
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2003-05-18 20:33:26 (GMT)
committerSterling Hughes <sterling@php.net>2003-05-18 20:33:26 (GMT)
commit94925b1c33e52c325d7643af27dd6ff200373408 (patch)
tree5f9e4c69eda1d3f885bc507c901db025286be534 /ext/simplexml/config.m4
parent185a4baedd7686b53a8e1b242d1a857b0e1da61e (diff)
downloadphp-94925b1c33e52c325d7643af27dd6ff200373408.tar.gz
add very basic code for the simplexml extension. The following works ::
person.xml -- <person> <name> <first>Sterling</first> <last>Hughes</last> </name> </person> person.php -- <?php $p = simplexml_load_file('person.xml'); echo $p->name->last . ', ' . $p->name->first; ?> Still needs lots of work.
Diffstat (limited to 'ext/simplexml/config.m4')
-rw-r--r--ext/simplexml/config.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/simplexml/config.m4 b/ext/simplexml/config.m4
new file mode 100644
index 0000000..21eeac8
--- /dev/null
+++ b/ext/simplexml/config.m4
@@ -0,0 +1,9 @@
+dnl $Id$
+dnl config.m4 for extension simplexml
+
+PHP_ARG_WITH(simplexml, for simplexml support,
+[ --with-simplexml Include simplexml support])
+
+if test "$PHP_SIMPLEXML" != "no"; then
+ PHP_NEW_EXTENSION(simplexml, simplexml.c, $ext_shared)
+fi