Commit Graph

195 Commits

Author SHA1 Message Date
Rob Richards
5731108c55 Fix test 2004-02-11 13:00:19 +00:00
Rob Richards
6e4a4e8a9a Fix compiler warnings
Update tests
2004-02-11 12:19:26 +00:00
Zeev Suraski
e8e9b2afee Implement get callback for SimpleXML (it now supports pre/post increment
as well as binary-assign-ops)
2004-02-10 09:30:38 +00:00
Zeev Suraski
2a9e1294bc Update to new API 2004-02-08 17:25:54 +00:00
Zeev Suraski
8424be849f - Update with new destructor code 2004-02-04 11:14:47 +00:00
Marcus Boerger
dfad2955ee Update tests 2004-02-03 22:07:29 +00:00
foobar
7ad385b109 CS fix (functions should not be available if they are not available :) 2004-02-02 08:10:31 +00:00
Marcus Boerger
95c15b024a Add new test 2004-01-22 21:55:09 +00:00
Marcus Boerger
66ed0a49fa Update tests 2004-01-22 21:47:54 +00:00
Rob Richards
bc2521b662 Fix bug #27010: segfault after returning nodes with children()
Fix segfault in match_ns when matching prefix and node without ns
some general cleanup and code consilidation
better write handling - engine support dependent
better isset handling - engine support dependent
namespace fixes for reading/writing
2004-01-22 21:30:14 +00:00
Rob Richards
a4c2f31751 Fix namespace regression bug
Read attributes correctly
Update sxe_prop_dim_exists logic
Update profile
2004-01-21 14:04:47 +00:00
Rob Richards
500fa86c1b Fix Bug #26976 (Can not access array elements using array indices)
return index 0 as non iterable object
update test
2004-01-21 11:32:30 +00:00
foobar
21d5052f70 typo fix 2004-01-21 03:18:13 +00:00
foobar
4716c724d2 test for bug #26976 2004-01-21 03:17:07 +00:00
foobar
bdd3b13c53 Goto targets should not be indented (some compilers choke on this, iirc) 2004-01-21 01:09:41 +00:00
Sterling Hughes
bd306c8b52 - 2004-01-20 05:31:50 +00:00
Frank M. Kromann
0d6fcd02cb Fix compilation of simplexml when spl is build as shared object 2004-01-19 23:44:03 +00:00
Marcus Boerger
b0620b27be Rename header to prevent name clashes with external files 2004-01-18 23:35:13 +00:00
Marcus Boerger
517c5f5fc5 Necessary as long as SPL is shared/dll 2004-01-18 22:20:54 +00:00
Marcus Boerger
913f5ce8ec Fix Warning 2004-01-18 15:21:49 +00:00
Marcus Boerger
8f4e9d9e42 Enable inherited classes inside SPL and respect order of module init. 2004-01-18 15:16:26 +00:00
Marcus Boerger
bb678c07b5 Use external files only in 001.phpt & tests for bugs 2004-01-18 15:14:03 +00:00
Marcus Boerger
9d5ef0070f Export access to class_entry by function. 2004-01-18 13:19:41 +00:00
Sterling Hughes
6bd7c45f74 update the tests proper-like 2004-01-17 21:47:43 +00:00
Sterling Hughes
594f6433af update the examples 2004-01-17 21:44:22 +00:00
Sterling Hughes
cb7e90119f namespace accesses are now soley URI based as opposed to prefix based. 2004-01-17 21:22:26 +00:00
Derick Rethans
c74bb58721 - Fix typoes 2004-01-17 20:20:18 +00:00
Jon Parise
c303c352d0 Spell 'element' correctly. 2004-01-17 20:02:01 +00:00
Marcus Boerger
9e29f17493 Major bugfix for consistency.
# After long discussions we came to a conclusion on how to make this
# extension consistent in itself.
# Thanks to Rob for all the work
2004-01-17 19:41:32 +00:00
Marcus Boerger
4ee7ba05bc Drop the external xml files no longer needed 2004-01-17 17:34:22 +00:00
Marcus Boerger
c28af3a660 No external xml files 2004-01-17 17:33:10 +00:00
Marcus Boerger
253c97fbfe Don't use external xml files 2004-01-17 17:24:58 +00:00
Sterling Hughes
d022278068 remove the parser errors here, so they accurately reflect what should happen. 2004-01-17 16:39:52 +00:00
Marcus Boerger
665a834a76 Fix parameter list and protos 2004-01-17 16:36:04 +00:00
Marcus Boerger
9c2e37e89a Add test for inherited simplexml classes 2004-01-17 15:57:06 +00:00
Marcus Boerger
9df72efb7c Make inherited sxe classes work 2004-01-17 15:56:29 +00:00
foobar
f4983c0d3f - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00
Sterling Hughes
a895106606 update the profile of how namespaces should work after discussions with
shane and rob richards.  there were a lot of race conditions with regards
to the way namespaces have been handled in XML documents so far, this new
method removes the race conditions, and gives me a real reason to add the
children() and attributes() methods.
2004-01-16 22:26:09 +00:00
Sterling Hughes
7f5b508f26 Add a "profile" of simplexml's expected behaviour in the form of tests.
This will be expanded as issues arise and will be a formal definition
(in code) of simplexml's behaviour.
2004-01-16 20:50:29 +00:00
Marcus Boerger
43b0a9e96b Drop userspace iteration correctly.
# People if you do such things then please fix the class tree.
2004-01-15 09:28:01 +00:00
Marcus Boerger
6915f5a2f5 This is no longer usefull in any way. 2004-01-14 22:07:28 +00:00
Rob Richards
8a40a946de test user define namespace aliases 2004-01-14 19:00:16 +00:00
Rob Richards
ad47abf0f6 add support for $foo["a:bar"]
fix xsearch to only return values for text,element and attribute nodes
fix getChildren and return array
remove most methods
update test
2004-01-13 21:28:41 +00:00
Marcus Boerger
cc5773e775 Update attribute tests.
# There is a memory leak with += when accessing the attributes directly
# But yet ->elem[$n] is not fails in the engine
2004-01-10 13:45:10 +00:00
Marcus Boerger
fffdd96865 - Cleanup class_entry
- allow derived classes
- fix new SimpleXML_Element()
2004-01-10 13:25:31 +00:00
Sterling Hughes
5ca7c382c9 Remove these initializers as they are unused. 2004-01-09 06:12:29 +00:00
Sterling Hughes
406c2156d1 Fix dumping, when dumping a text element, for example:
<?php
$doc = simplexml_load_string('<?xml version="1.0"?>
<namelist>
 <name>
  <first>helly</first>
 </name>
 <name>
  <first>sterling</first>
 </name>
</namelist>');
var_dump($doc->name[0]->first);

Used to not display the node's content, now it does.
2004-01-08 22:40:08 +00:00
Wez Furlong
510dd7cca5 add optional dep on spl for simplexml.
Fix dep handling in buildconf
2004-01-08 21:53:48 +00:00
Marcus Boerger
3fc4dc44ae Add some minimalistic documentation 2004-01-08 21:14:38 +00:00
Marcus Boerger
526c6bd09c Fix windows build issue 2004-01-08 20:27:35 +00:00