Commit Graph

242 Commits

Author SHA1 Message Date
Rob Richards
142356ba19 fix possible crash 2007-07-31 15:07:15 +00:00
Rob Richards
8c18516f5a MFB: fix bug #41947 (SimpleXML incorrectly registers empty strings as namespaces
add test
2007-07-10 12:26:37 +00:00
Sara Golemon
2f4713a9a9 Fix behavior of empty($sxe->element) and empty($sxe['prop'])
when used on empty elements properties (apply PHP emptiness rules)
2007-07-04 05:05:32 +00:00
Rob Richards
7b62431305 MFB: fix bug #41861 (getNamespaces() returns namespaces of node's siblings)
add test
2007-07-03 15:02:40 +00:00
Dmitry Stogov
1a666b7166 Allow unicode XML 2007-07-02 11:53:08 +00:00
Rob Richards
889bc9eab4 MFB: fix bug #41867 (getName is broken)
add test
2007-07-02 11:36:28 +00:00
Dmitry Stogov
85279a4dce Allowed loading XML from unicode strings 2007-06-29 13:58:34 +00:00
Nuno Lopes
643d8671e8 MFB:fix memleak in sxe_prop_dim_read() 2007-06-24 11:43:34 +00:00
Dmitry Stogov
25b9b800b5 Fixed wrong fic for bug #41582 2007-06-13 13:38:59 +00:00
Antony Dovgal
878577579c fix #41582 (SimpleXML crashes when accessing newly created element) 2007-06-05 10:02:02 +00:00
Ilia Alshanetsky
de573ba7ff MFB 2007-05-28 23:14:57 +00:00
Rob Richards
97771fcc74 MFB: fix bug #37386 (autocreating element doesn't assign value to first node)
all single SimpleXMLElements are addressable using offset 0
use correct node for xpath context node
add test
2007-03-26 20:16:16 +00:00
Antony Dovgal
f3867ec5e3 fix leak, convert unicode values to string before assigning
change error message to use zend_error() since there is no active function
2007-02-20 14:04:59 +00:00
Antony Dovgal
296f20f657 fix #38406 (crash when assigning objects to SimpleXML attributes) 2007-02-20 13:21:54 +00:00
Antony Dovgal
41e02dad89 MFB: #40451 (addAttribute() may crash when used with non-existent child node) 2007-02-12 21:13:01 +00:00
Marcus Boerger
8d030d1275 - Implement debug helper 2007-01-18 23:23:50 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Rob Richards
4b81343bd3 MFB: fix bug #39760 (cloning fails on nested SimpleXML-Object)
add test
2006-12-30 15:42:24 +00:00
Antony Dovgal
573ff9aaa5 add missing folding marker 2006-11-29 22:53:21 +00:00
Rob Richards
f799b0b19b MFB: correct fix for bug #39662 to fix leak and tree corruption
fix test
2006-11-29 08:52:08 +00:00
Antony Dovgal
d2e03795d9 fix #39662 (Segfault when calling asXML() of a cloned SimpleXMLElement) 2006-11-28 18:57:37 +00:00
Andrei Zmievski
83e0dbb3d2 - Add an extra parameter to the cast_object handler that can be used by
various types as needed.
- Use that parameter to pass a specific converter for
  IS_UNICODE/IS_STRING types.
2006-10-13 14:52:19 +00:00
Dmitry Stogov
128548a5c0 Disabled autoconversion of hash keys (from string to unicode) for PHP arrays 2006-09-19 10:38:31 +00:00
Nuno Lopes
984a56c9ab MFB 2006-09-06 15:32:19 +00:00
Sebastian Bergmann
8551b6d2dc Sync with php_trim() API change. 2006-08-16 08:51:34 +00:00
Rob Richards
71613983c0 MFB: fix bug #38424 (Different attribute assignment if new or existing)
add test
2006-08-14 11:58:49 +00:00
Rob Richards
a3e906515c add unicode support
update tests (binary string must be passed to simplexml_load_string)
2006-08-08 20:52:45 +00:00
Antony Dovgal
dbe2092313 implement zend_unicode_to_string() and zend_string_to_unicode()
part #2 (of 2)
2006-08-08 16:59:11 +00:00
Rob Richards
c7f8bace60 MFB: asXML() needs to return bool when serializing doc and filename is passed in
do not copy the content of the outputbuffer twice in asXML()
fix compiler warnings
2006-08-07 10:11:04 +00:00
Christian Stocker
92b3f6b90c Fix #38354 (Unwanted reformatting of XML when using AsXML)
(MFB)
2006-08-06 19:39:38 +00:00
Antony Dovgal
61312ae102 fix #38347 (Segmentation fault when using foreach with an unknown/empty SimpleXMLElement) 2006-08-06 17:41:39 +00:00
Antony Dovgal
2103816e06 avoid extra strlen() call, we have the length of the data 2006-08-06 13:27:38 +00:00
Hannes Magnusson
992ffac970 MFB: saveXML() -> asXML() alias 2006-06-26 15:36:45 +00:00
Marcus Boerger
16f403f79a - Readd NULL as allowed classname to skip parameter 2006-05-23 22:22:35 +00:00
Marcus Boerger
ccd2bc0005 - Fix SEGV in case class to generate is not derived from SimpleXMLElement
by issueing an error
2006-05-23 21:37:17 +00:00
Marcus Boerger
2a36ccbaa6 - Proto fix/add 2006-05-17 00:07:05 +00:00
Marcus Boerger
c3b47f5aa4 - Fix properties access to children() result
- Allow access by namespace prefix
2006-04-14 15:15:21 +00:00
Marcus Boerger
311a7af62d - Allow access to namespaced root by specifying prefix on creation
- Fix access to non namespaced root
2006-04-14 14:07:51 +00:00
Marcus Boerger
4e44e0b147 - If node no longer exists then there won't be any data 2006-04-14 12:18:15 +00:00
Marcus Boerger
c4b1606466 - Coverity issue 59 2006-04-10 23:19:23 +00:00
Antony Dovgal
6a53a49c8b MF51: fix bug #36898 (__set() leaks in classes extending internal ones)
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)
2006-03-29 15:08:52 +00:00
Dmitry Stogov
7c0e534157 Dropped zend.ze1_compatibility_mode 2006-03-16 10:33:23 +00:00
Rob Richards
032edbfb92 implement addChild() and addAttribute() methods
add test
2006-03-06 20:16:03 +00:00
Antony Dovgal
def2ab1ac1 MF51: fix #36611 (assignment to SimpleXML object attribute changes argument type to string) 2006-03-05 15:58:09 +00:00
Rob Richards
6c2c57e2bd fix crash passing non-string member to sxe_prop_dim_exists
allow offsets to be used when calling isset/unset
fix tests
add test
2006-03-05 14:01:13 +00:00
Dmitry Stogov
c366cc6d1a Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings 2006-03-02 13:12:45 +00:00
Rob Richards
96cb8329e5 nuke tests for libxml2 version - will always be > 2.6.0 2006-03-01 15:36:34 +00:00
Marcus Boerger
10a5901abf - Fix count/foreach interaction 2006-02-27 13:32:25 +00:00
Marcus Boerger
d8b7f1dea0 - MFB 2006-02-27 11:55:23 +00:00
Marcus Boerger
30806dbc2b - Missing conversion 2006-02-26 16:12:21 +00:00