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
Marcus Boerger
fb38ee26a4
Cannot use shared SPL
2004-01-08 19:30:37 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Marcus Boerger
b89ce361fc
Fix test
2003-12-22 23:15:34 +00:00
Wez Furlong
3b450ec431
Add dependencies for these extensions
2003-12-22 13:16:43 +00:00
Marcus Boerger
b766beaac9
Update tests to see where they fail now exactly
2003-12-18 13:35:39 +00:00
Dmitry Stogov
eb973da1d3
two new methods were added
...
$node->count($subnode_name) - returns count of subnodes with specified name
$node->attributes() - returns array of attributes
2003-12-18 13:28:00 +00:00
Dmitry Stogov
4fd476ee43
accessing singular subnode as array
2003-12-17 15:06:40 +00:00
Dmitry Stogov
1292337356
*** empty log message ***
2003-12-17 14:49:10 +00:00
Rob Richards
094861db8c
free nodes correctly to clear node proxies
2003-12-17 10:28:29 +00:00
Marcus Boerger
9e29f2dfcf
Not needed here (copy'n'paste)
2003-12-16 21:02:54 +00:00
Marcus Boerger
5b712c890c
Add a test to check split text content collecting
2003-12-16 20:50:20 +00:00
Marcus Boerger
a08a37dda3
Better comment
2003-12-16 20:40:24 +00:00
Marcus Boerger
1f60a44563
Add myself
2003-12-16 20:36:46 +00:00
Marcus Boerger
4dd4bcdbb5
Add error handling for element/attribute creation/changing
2003-12-16 20:34:19 +00:00
Marcus Boerger
7ef8b1226e
Add test for string conversion capabilities when used with echo/print.
2003-12-16 19:49:33 +00:00
Ilia Alshanetsky
bf36e351ba
Removed duplicate php_libxml_(init|shutdown) they are already done by
...
ext/libxml.
2003-12-16 17:14:06 +00:00
foobar
63df219b31
- Update header + added missing Id tags.
2003-12-09 16:29:54 +00:00
Rob Richards
c821c5b189
export libxml2 and iconv symbols
...
extensions no longer link against either of those
2003-12-08 12:56:47 +00:00
Wez Furlong
a98892900b
allow $node['not_yet_existing_attribute'] = $value; to work
2003-12-07 11:32:40 +00:00
Wez Furlong
08218f5082
Tweak xml related build.
...
Still some warnings for ext/xsl, but I'll leave that to someone else for now.
2003-12-05 21:16:47 +00:00
Marcus Boerger
5ee54820de
Update test
2003-12-05 08:07:14 +00:00
Wez Furlong
05b9b20ed8
Add new (optional!) win32 build infrastructure.
...
Will follow up to internals@ shortly.
2003-12-02 23:17:04 +00:00
Marcus Boerger
fd7b38d752
Fix return value.
2003-11-29 18:16:03 +00:00
Marcus Boerger
68e218e85c
Remove test code
2003-11-29 17:48:44 +00:00
Rob Richards
be974aff6e
Fix bug #26159 - SimpleXML XPath support (patch by Adam Trachtenberg)
...
a few fixes to memory corruption
2003-11-24 11:24:40 +00:00
Marcus Boerger
a7a9ec079a
Add new test
2003-11-23 16:22:11 +00:00
Marcus Boerger
fc117add30
Several improvements to the simplexml_element object:
...
- Allow to use it as an instance of Iterator
- Prepareto use it as a normal object, including spcialization
2003-11-23 16:20:58 +00:00
Marcus Boerger
86676d4d12
Adjust to latest conversion cast changes
2003-11-14 07:41:05 +00:00
Marcus Boerger
3733cf409e
Fix testcase name
2003-11-13 21:16:57 +00:00
Marcus Boerger
2b35596d7f
Fix classname, CDATA handling (semantically identical to text) and
...
iterators (Return sub elements as objects, converted to string you get
the text).
2003-11-13 20:32:38 +00:00
foobar
32b5a41941
- Fixed bug #26072 (--disable-libxml does not work).
2003-11-12 23:42:38 +00:00
Marcus Boerger
bfb73676de
Split into element=property and attribute=dimension overloading.
2003-11-10 20:27:16 +00:00
Ilia Alshanetsky
f884a5b437
Kill unused variables.
2003-11-05 23:44:09 +00:00
Moriyoshi Koizumi
8572fc2af5
Add regression test for XPath support
2003-11-03 22:49:24 +00:00
Moriyoshi Koizumi
2a3e05e865
Fix test
2003-11-03 22:42:56 +00:00
Sterling Hughes
040d945fb7
make this macro safe
2003-11-03 13:55:19 +00:00
Sterling Hughes
6ab221b3f6
remove attributes from this check
2003-11-03 13:50:43 +00:00
Sterling Hughes
e963f0b168
- Stop a crash in xpath
...
- Remove the ability to access attributes via the -> operator, attributes
are accessed via the array indicators
2003-11-03 13:36:23 +00:00
Moriyoshi Koizumi
9547ac2dde
Oops.
2003-10-29 18:04:24 +00:00
Moriyoshi Koizumi
088acb6efb
Update test for an additional check to ensure the variable used for an
...
index would not be modified during deference.
2003-10-29 17:58:40 +00:00
Moriyoshi Koizumi
734254513c
Do not use convert_to_*_ex() for ordinary zval pointers.
2003-10-29 17:50:56 +00:00
Marcus Boerger
6b57bb1675
Add simplexml array handlers that allow to explicitly work with attributes.
2003-10-29 12:06:52 +00:00
Christian Stocker
11a63934d4
added interop test
2003-10-27 11:34:45 +00:00
Rob Richards
a807b34427
cannot import nodes without document
2003-10-27 01:12:53 +00:00
Christian Stocker
70f75fff89
fix test (validation returns a warning, if xml is not valid)
2003-10-26 19:35:08 +00:00
Christian Stocker
4e5d4006fd
- added interop between DOM and SimpleXML example
...
- added xpath example
2003-10-26 19:15:52 +00:00
Christian Stocker
1e46a26f0f
fix example for saving to file
2003-10-26 18:56:03 +00:00
Rob Richards
5191cd3e99
add interop with dom - simplexml_import_dom
...
change write behavior on elements to change actual contents
change clone method to clone node and not document
fix a few libxml mem leaks
2003-10-26 16:00:58 +00:00
Marcus Boerger
7e90647611
Add attribute test
2003-10-26 13:27:26 +00:00
Marcus Boerger
14911a136f
Fix memory corruption
2003-10-26 13:27:03 +00:00
Marcus Boerger
c7995af071
Add foreach test
2003-10-26 13:18:59 +00:00
Marcus Boerger
6131454cca
Add iterator to make foreach work
2003-10-26 13:11:56 +00:00
Marcus Boerger
869ce07c96
And get the last thing working
2003-10-26 01:17:51 +00:00
Marcus Boerger
ad172161e0
Add test
2003-10-26 01:04:25 +00:00
Marcus Boerger
2318a83e81
Fix tests
2003-10-26 01:03:21 +00:00
Marcus Boerger
0d95b23a51
Fix casting (the question is when & what should be freed here).
2003-10-26 00:39:48 +00:00
Marcus Boerger
2befd022b1
Fix test
2003-10-26 00:35:56 +00:00
Marcus Boerger
07d94c2410
Fix test 4 with the help of Rob
2003-10-25 23:06:23 +00:00
Marcus Boerger
46251fa3f8
Show if Schemas are supported
2003-10-25 21:28:01 +00:00
Marcus Boerger
873bcefa52
Fix memleaks
2003-10-25 21:08:33 +00:00
Marcus Boerger
0197d5b916
More testing
2003-10-25 21:07:37 +00:00
Marcus Boerger
0a68fb0222
Fix warning
2003-10-25 20:28:39 +00:00
Marcus Boerger
168f2ac787
Fix test
2003-10-25 20:27:48 +00:00
Marcus Boerger
f67510a0d8
Add some testing
2003-10-25 20:00:04 +00:00
Shane Caraveo
052f9378b2
add global init/shutdown functions for libxml. this is required as
...
shutdown is not safe to call multiple times, and to make streams work
correctly some init stuff has to happen in a specific order
2003-10-19 23:17:56 +00:00
Zeev Suraski
2cc9511cc7
Fix cast callbacks
2003-10-07 15:47:25 +00:00
Moriyoshi Koizumi
506136f9c6
Forgot about this one
2003-10-06 01:04:49 +00:00
Moriyoshi Koizumi
503d74aa29
Fixed bug #25756 (SimpleXML's validate_schema_file() broken)
2003-10-06 01:02:28 +00:00
Moriyoshi Koizumi
30d64ecc3e
Fix test to make sure it can find the external xml file relatively to
...
the script file.
2003-10-05 13:53:16 +00:00
Zeev Suraski
c6c240a455
Sync with new API
2003-10-05 08:08:49 +00:00
Moriyoshi Koizumi
d7398813c3
A temporary voodoo hack to avoid memory leaks.
...
# Stuff of this kind must be removed if any neater way is out there.
2003-10-02 19:45:05 +00:00
Wez Furlong
21329c5e0c
allow building without libxml2 under win32
2003-08-22 15:04:29 +00:00
Wez Furlong
9ada9e5767
fix build
2003-08-19 01:30:27 +00:00
Zeev Suraski
ed21ddd4f3
Fix a gazillion leaks in SimpleXML. One gazillion to go ;)
2003-08-18 22:33:15 +00:00
Zeev Suraski
1fb9d4896a
WTF was that doing here? :)
...
Fix crash
2003-08-18 11:26:12 +00:00
Rob Richards
6fae803c12
fix bug #24957 (var_dump of object segfaults)
2003-08-07 21:39:00 +00:00
Zeev Suraski
538d58dd5f
Use new infrastructure.
...
There are bound to be some messups, please report build/runtime bugs!
2003-08-03 17:44:39 +00:00
Zeev Suraski
785130c09c
Fix interface
2003-07-23 08:53:23 +00:00
foobar
5afd8cbf07
update credits.
2003-07-11 07:44:56 +00:00
Zeev Suraski
d6320007e0
Add missing elements
2003-07-07 12:07:02 +00:00
foobar
f55b83cb18
ws + missing fold tag
2003-07-07 11:43:34 +00:00
Sterling Hughes
73d98824d7
not a temp var unless its a singular var
2003-07-05 00:33:13 +00:00
Sterling Hughes
e0347ab2c4
"real" fix
2003-07-04 22:21:23 +00:00
Sterling Hughes
2935efb446
fix memory cverrun when accessing an empty xml element.
...
guess how many lines it took me to write a basic WSDL parser + API? 20 using
curl + simplexml
2003-07-04 21:58:09 +00:00
Marcus Boerger
a6d0972c05
Fix warnings
2003-07-01 00:49:25 +00:00
Derick Rethans
7a4ed00603
- Rename test and update title
2003-06-30 19:16:41 +00:00
Sterling Hughes
00c83984a3
add a test for shane's bug #24392
2003-06-30 18:09:11 +00:00
foobar
f3ac60d4a4
- Cleanup, simplifying, etc.
2003-06-30 17:23:52 +00:00
Sterling Hughes
57e1c829aa
and my first user doesn't even like goto's. sniffle
2003-06-30 03:11:03 +00:00
Sterling Hughes
2505cf7c2c
satisfy my very first user :)
2003-06-30 03:08:48 +00:00
Rob Richards
a225934450
fix mem leak in sxe_property_read
...
fix compiler warning
2003-06-28 21:38:44 +00:00
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