Commit Graph

321 Commits

Author SHA1 Message Date
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
Antony Dovgal
9980f28f69 fix test 2006-08-06 20:17:42 +00:00
Antony Dovgal
2517da1a29 add test 2006-08-06 20:10:05 +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
Antony Dovgal
ea4f125a87 comparing libxml documents and nodes is not yet possible and we can't fix it
fix test instead
2006-08-04 08:11:39 +00:00
Antony Dovgal
bfceaaf1d1 unicode_semantics -> unicode.semantics 2006-06-28 15:07:14 +00:00
Hannes Magnusson
e18bb1ce3d Fix/add SKIPIF 2006-06-27 00:09:23 +00:00
Hannes Magnusson
992ffac970 MFB: saveXML() -> asXML() alias 2006-06-26 15:36:45 +00:00
Antony Dovgal
3d0e1456e4 fix test 2006-06-20 19:12:12 +00:00
Antony Dovgal
381269b354 fix test 2006-06-20 13:07:44 +00:00
Marcus Boerger
16f403f79a - Readd NULL as allowed classname to skip parameter 2006-05-23 22:22:35 +00:00
Marcus Boerger
b1154bd4f7 - Add new test 2006-05-23 21:56:36 +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
d1b5f0deaa - Do not provide ns info in first sxe creation 2006-04-14 14:11:54 +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
daca456e1a Fixed test 2006-03-27 13:53:19 +00:00
Antony Dovgal
d4cdad2c2e add new tests 2006-03-24 12:08:19 +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
7df141811e add test 2006-03-05 16:12:54 +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
3dd6bb16aa - Fix test 2006-02-26 16:40:01 +00:00
Marcus Boerger
30806dbc2b - Missing conversion 2006-02-26 16:12:21 +00:00
Marcus Boerger
1dd351d649 - Use get_property_ptr_ptr handler to prevent SEGV as in bug #35785
# Issue not completley solved though
2006-02-26 15:48:28 +00:00
Marcus Boerger
24d83ebd0f - Add another write case 2006-02-26 13:37:54 +00:00
Marcus Boerger
ebef7961a3 - Unicode support 2006-02-26 12:00:39 +00:00
Marcus Boerger
d1f3c48041 - Added ability to add elements by index if such elements already exist
- Added SimpleXMLElement::getName() to access the node name
# This allows to retrieve the name of the root element which is otherwise
# only available by converting the sxe object into a dom object.
2006-02-25 23:41:06 +00:00
Marcus Boerger
b13105ee4c - Add ability to add new nodes via properties 2006-02-24 15:49:13 +00:00
Dmitry Stogov
0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
09ca61c125 Made server wide switch for unicode on/off (according to PDM). 2006-02-13 10:23:59 +00:00
Antony Dovgal
d163171c17 MF51: initialize variables 2006-02-06 10:54:49 +00:00
Marcus Boerger
c67d8b2152 - Iterator API was changed 2006-02-05 23:31:47 +00:00