Commit Graph

403 Commits

Author SHA1 Message Date
Sterling Hughes
3e67c2a63a for now we let xml support build with versions older than 2.5.7, as we want
users to actually test this...
2003-06-28 07:46:03 +00:00
Sterling Hughes
cf3bd3e9fc fine 2003-06-25 21:54:01 +00:00
foobar
9bee0725d2 Experimental extensions are never enabled by default.. 2003-06-25 21:46:31 +00:00
Sterling Hughes
75abafdfc3 these should be enabled by default. At least this much was agreed upon when
the decision to debundle libxml2 was made.
2003-06-25 20:53:52 +00:00
Sterling Hughes
a4f41fbb26 allow the root element to be accessed as a text node 2003-06-25 16:26:32 +00:00
Rob Richards
d1bfc58aee use xmlInitParser instead of xmlInitThreads
reentrant safe as well no need for xml_parser_inited
2003-06-14 18:15:50 +00:00
Rob Richards
09eb38ec10 interoperability support
fix some memleak scenarios
2003-06-14 15:32:23 +00:00
Sterling Hughes
e4db6159f2 make alan happy 2003-06-14 04:40:58 +00:00
Sterling Hughes
34b36fd50f delete + no C++ comments 2003-06-14 04:17:59 +00:00
Sterling Hughes
ec3823a5d2 fix some more leaks 2003-06-14 04:15:57 +00:00
Sterling Hughes
cc0c4e4981 This shouldn't be refcount = 0, causes a memory overrun 2003-06-14 04:02:12 +00:00
Rob Richards
785bc24a9b fix compile when ZTS enabled
fix bunch of memory leaks
2003-06-13 19:58:56 +00:00
Sterling Hughes
21d90d6ac4 ok, this is a zend bug. 2003-06-09 04:01:11 +00:00
Sterling Hughes
6fc9fdeefc simon says leaking is better than crashing 2003-06-09 03:29:33 +00:00
Sterling Hughes
568aecd973 get rid of a memleak
make namespaces work properly
2003-06-09 03:11:28 +00:00
Sterling Hughes
a148878752 god bless valgrind.
fix double free where object is prematurely dtor'd. I should probably convert
the simplexml nodes over to this system too.  Actually the new dom extension
and everywhere else should use the same type of methods.. :)
2003-06-03 19:36:20 +00:00
Sterling Hughes
0ecbdc55a1 earn my keep and allow one to register a namespace name to access a namespace
value.
2003-06-01 19:46:19 +00:00
Sterling Hughes
94136f0ccd fix __clone()
add schema support
2003-05-27 22:15:17 +00:00
Sterling Hughes
c60879dbb9 plane hacking 2003-05-27 18:41:02 +00:00
Sterling Hughes
afc2196715 add support for querying nodes with xpath expressions. 2003-05-26 03:57:41 +00:00
Sterling Hughes
3c511d9f24 add namespace support 2003-05-26 02:42:41 +00:00
Shane Caraveo
e3e22511b1 one more define to make it load into php 2003-05-26 02:28:20 +00:00
Shane Caraveo
ea1437d711 get rid of crudy stuff 2003-05-26 02:19:14 +00:00
Shane Caraveo
8e58169364 now builds on windows 2003-05-26 02:18:38 +00:00
Sterling Hughes
fb14866796 add a new function simplexml_load_string() 2003-05-26 01:41:25 +00:00
Sterling Hughes
1410e81847 several changes improvements, including the new
simplexml_save_document_string() function which saves a XML document to a
string variable
2003-05-26 01:37:02 +00:00
Sterling Hughes
97b5a5df4f sascha points out this is more purdy-like 2003-05-26 01:03:51 +00:00
Sterling Hughes
3192da2d2b this is right
but it shouldn't be
2003-05-26 00:27:30 +00:00
Sterling Hughes
ad509c690a add a note, and implement this properly later 2003-05-25 22:03:47 +00:00
Sterling Hughes
bb2a324b65 use proper types 2003-05-25 21:58:09 +00:00
Sterling Hughes
3d62c3ebb7 remove compiler warnings 2003-05-25 21:50:30 +00:00
Sterling Hughes
cf8a7bd235 add/fix assignments for both nodes and attributes
add a working get_property_ptr construct
2003-05-25 21:44:54 +00:00
Sterling Hughes
981f5051a9 exploit the not yet committed, not yet shown cast_object() object callback.
this makes simplexml the mostest bestest xml extension in the whole wide
world.
2003-05-25 00:05:30 +00:00
Sterling Hughes
7d9a4a0ad8 simplexml property modification works now 2003-05-21 20:39:01 +00:00
Derick Rethans
ec02fe98d8 - Fixed example 2003-05-21 20:16:04 +00:00
Sterling Hughes
956676e68c foodle 2003-05-21 20:15:05 +00:00
Sterling Hughes
c418dd14b5 add an example of modifying the XML tree 2003-05-21 14:06:00 +00:00
Derick Rethans
92d5589a94 - Commit broken support for sxe_properties_get 2003-05-20 13:08:05 +00:00
Derick Rethans
37a9e03654 - Implement two dummy handlers so that var_dump() doesn't crash on it. 2003-05-20 11:17:04 +00:00
Derick Rethans
7dea37a077 - Add Revision to MINFO (I was chasing ghosts ;) 2003-05-20 08:48:18 +00:00
Derick Rethans
813ea0b663 - Make it build with the unbundled libxml again 2003-05-20 08:46:55 +00:00
Sterling Hughes
7e161dafeb data corruption is for sissy boys 2003-05-20 02:12:03 +00:00
Derick Rethans
afabd0575c - Move examples to their own directory 2003-05-19 18:25:20 +00:00
Sterling Hughes
f726a84b1d use the appropriate accessor 2003-05-19 16:27:46 +00:00
Sterling Hughes
a432df541f fix attribute handling on the root node
simplify node access by defining/using GET_NODE() macro properly
2003-05-19 14:52:15 +00:00
Sterling Hughes
b3772c4f35 add the ability to serialize the contents back to a file 2003-05-19 13:33:01 +00:00
Sterling Hughes
44f6100ff0 basic support for modifying XML documents 2003-05-19 13:16:01 +00:00
Sterling Hughes
f408e9eefc add some macros that simplify the loops
remove a unnecessary copy
2003-05-19 12:44:24 +00:00
Sterling Hughes
6bfb5026d6 add sample file 2003-05-19 01:56:14 +00:00
Sterling Hughes
26353e4e13 attribute support 2003-05-18 22:39:16 +00:00
Sterling Hughes
aec55ef95a properly detect blank nodes 2003-05-18 21:13:29 +00:00
Sterling Hughes
e3f351ddb0 make arrays of subnodes work (hacky)
drop property support for the moment, this will be re-added soonish
2003-05-18 20:53:21 +00:00
Sterling Hughes
94925b1c33 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.
2003-05-18 20:33:26 +00:00