Rob Richards
edae935c26
namespace/tagname validation fixes (Adam Trachtenberg)
...
added new test
2004-05-27 11:15:45 +00:00
Rob Richards
9e3956b313
constructors throw DOMException
...
add DOM_PHP_ERR DomException code
validate tagnames in constructors
use C style comments
update TODO
2004-05-16 10:30:16 +00:00
Marcus Boerger
43d3d8a0a4
Fix class names
2004-03-29 19:31:29 +00:00
Stanislav Malyshev
5b0f6b1f34
Update for new read_property API
2004-03-21 18:28:38 +00:00
Rob Richards
76ee5707f7
Fix bug #27436 dom_import_simplexml innaccurate
...
extensions register callbacks to export nodes
prevents segfault passing invalid objects to import functions
2004-03-01 12:09:24 +00:00
Rob Richards
43eb077107
add dtor to cleanup iterator related data
2004-02-17 19:57:48 +00:00
Rob Richards
ec2ea131fb
implement clone functionality to fix segfault
...
DomNode->clone() creates new doc proxy if document is cloned
remove printf from xpath
fix remaining invalid object state issues
2004-02-17 11:13:47 +00:00
Rob Richards
c3a57206cc
allow certain methods to be called statically again:
...
domdocument (all load methods)
domimplementation (all methods)
switch to zend_parse_method_parameters for consistancy
insure object parameters are correct class types
convert zvals to correct type if needed for property writes
fix a few segfaults found while testing
2004-02-15 17:07:34 +00:00
Ilia Alshanetsky
91f46b7880
Fixed compile warnings.
2004-02-04 14:15:16 +00:00
Zeev Suraski
8424be849f
- Update with new destructor code
2004-02-04 11:14:47 +00:00
Rob Richards
7e619b7f5f
update constructors so they cant be called statically
2004-01-22 21:16:05 +00:00
Rob Richards
38f8ed0e0a
fix getElementsByTagName and getElementsByTagNameNS - allow *
2004-01-13 14:13:21 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Rob Richards
d1b8a0f2a9
no longer need to cleanup temp var
2003-12-17 18:59:05 +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
Rob Richards
3084e72ef1
fix getElementsByTagname iteration
2003-12-08 17:08:10 +00:00
Rob Richards
6fa6d3c470
check node type for ->attributes and ->childNodes
2003-12-02 15:17:02 +00:00
Rob Richards
2a5092c03a
remove call to xmlMemoryDump
2003-11-30 12:30:29 +00:00
Rob Richards
6ac34646ac
implement namednodemap and nodelist
...
fix xsl/dom integration under windows
update tests and examples
2003-11-29 20:40:18 +00:00
Christian Stocker
29a46b2ff6
changing dom_object_get_data to php_dom_object_get_data and PHP_DOM_EXPORT it
...
(by Rob Richards)
2003-11-28 21:55:59 +00:00
Rob Richards
207dc90924
add interop with simplexml - dom_import_simplexml
...
fix cloneNode with elements
2003-10-26 15:57:02 +00:00
Rob Richards
44164170f3
implement namespace nodes
...
fix getElementsByTagName
fixes to attribute namespaces
remove safemode stuff as its handled in streams
2003-10-20 15:50:34 +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
Rob Richards
6c9bbe70bf
some namespace fixes
...
fix compiler warning
2003-10-06 21:28:01 +00:00
Rob Richards
c21e78ddf2
implement isDefaultNameSpace and baseURI
...
nodeName and tagName return qualified names
fix removeAttributeNode - takes domAttr as parameter
better uri and file handling for document load method
fix possible segfault when document is freed
set get_property_ptr_ptr handler to NULL
2003-10-05 11:52:22 +00:00
Zeev Suraski
c6c240a455
Sync with new API
2003-10-05 08:08:49 +00:00
Rob Richards
b437ac77bc
add property_get_ptr handler
...
fix possible segfault in xpath
add wide character support for characterdata
2003-09-29 11:43:26 +00:00
Rob Richards
315bf401ba
move some document properties internally
...
add xpath namespace support (by Shane)
2003-09-08 18:28:35 +00:00
Sebastian Bergmann
afdecc374d
ZTS fix.
2003-09-03 18:13:11 +00:00
Rob Richards
fd5758781c
changes to php_dom.h for last commit
...
replaced removed closing tags - doh
2003-09-03 10:48:02 +00:00
Rob Richards
5630dd0be2
add document HTML load/save methods
...
add document standalone validate method
cleanup some prototype declarations
domexception inherits from default exception
2003-09-03 10:11:53 +00:00
Rob Richards
09481c642b
implement stricterrorcheck
...
fix clonenode
cleanup error routines
2003-08-24 10:23:43 +00:00
Wez Furlong
21329c5e0c
allow building without libxml2 under win32
2003-08-22 15:04:29 +00:00
Rob Richards
d7e6bdaa0f
fix infinite loop in normalize
2003-08-20 18:58:03 +00:00
Wez Furlong
9ada9e5767
fix build
2003-08-19 01:30:27 +00:00
Zeev Suraski
391c027da6
Get rid of PZVAL_UNLOCK() - fix untested
2003-08-18 23:13:25 +00:00
Rob Richards
7ba3cb8c1e
remove xml debug code
2003-07-27 20:21:36 +00:00
Rob Richards
43bc2f0b6d
reworking xml namespace support
...
add node lookupNamespaceURI and lookupPrefix
add attr isId
2003-07-27 17:57:06 +00:00
Rob Richards
e8a87e5430
initial xpath implementation
...
make dom_object generic
2003-07-24 13:18:40 +00:00
Zeev Suraski
6c24e1577c
API update
2003-07-22 13:50:00 +00:00
Rob Richards
d85845a64b
fix for Bug #24715 segfault in dom_document_create_element
...
removed xmlmemorydump debug code
2003-07-19 14:59:29 +00:00
Rob Richards
d75618e780
implement read only exceptions
...
implement notation nodes
changes for spec conformance
2003-07-12 17:29:20 +00:00
Rob Richards
16fb3e91c0
remove global error handling - use of libxml globals is a bad thing
...
add domDocument properties for parsing options:
validateOnParse, resolveExternals, preserveWhiteSpace, substituteEntities
implement custom parsing to avoid use of globals
implement local errors while parsing
errors displayed until error objects implemented
2003-07-10 11:17:25 +00:00
Rob Richards
4cd06845f9
implement node proxies: next phase of interop
2003-07-07 19:37:32 +00:00
Marcus Boerger
46b4ab47be
Fit the error handler into the naming scheme and get rid of trailing new lines
2003-06-16 00:18:28 +00:00
Marcus Boerger
e208b0e77e
Add an error handler (thx to timm for the idea)
2003-06-15 23:57:48 +00:00
Rob Richards
2a02045596
remove code no longer needed
...
fix format Output property
2003-06-15 19:58:42 +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
6414becb62
fix xml_parser_inited on win32
...
add common structs for better interoprability
2003-06-14 15:27:15 +00:00
Rob Richards
5b19e1ec92
add node->isSupported()
...
add domimplementation->hasFeature()
add formatOutput property (extends DOM)
call xmlFreeDoc when doc is no longer referenced rather than custom code
save and savexml now format based on formatOutput property
2003-06-12 20:02:05 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Rob Richards
6d72c89408
implmentation of document ref counting for persistance
...
re-work of internal object handling
2003-06-09 20:20:55 +00:00
Sterling Hughes
208aa6152d
i ain't know domdom
2003-06-07 15:09:24 +00:00
Sterling Hughes
d65e9b3818
leftover.
...
its wholeText not whole_text
2003-06-07 15:07:42 +00:00
Rob Richards
0565d9724b
fix more memory overruns
...
initial definition for document ref counting
fixed property access to support all objects
clear property handler from invalid objects until ref count implemented
2003-06-07 13:30:58 +00:00
Rob Richards
29b5fbcc53
fix double free issue
...
fix property access within invalid objects and failed reads
2003-06-06 19:04:32 +00:00
Sterling Hughes
ee5f79487e
fix a bunch of memory overruns, and uninitialized variable uses
...
fixes crash on sample script rob sent me
2003-06-05 18:54:25 +00:00
Sterling Hughes
49bef1ac9a
fig segv on make install (double destroy badness)
2003-06-05 17:48:25 +00:00
Rob Richards
1b046ed40e
Inital cut of new dom extension
...
PHP5 only
2003-06-05 17:06:52 +00:00