Hartmut Holzgraefe
6a42e63dee
proto fix
25 years ago
Markus Fischer
3f9f54dcca
Please Egon.
25 years ago
Markus Fischer
949d0d7002
- Standardize function to accept either $obj->foo or domxml_foo($obj)
where they should.
- Use xml*Len functions where available.
- Workaround in set_content() to prevent crash.
- Cleaned up php_xpathptr_eval().
- Added NO_ARGS check where missing; moved check for $this always
before arg parsing.
25 years ago
Markus Fischer
31a74b4aec
- Reverted macro moving stupidity (thx to Sterling).
25 years ago
Egon Schmid
3c01151a08
I hope that this is a better explanation as unknown.
25 years ago
Markus Fischer
222fe23275
Last commit:
- Fix segfault in xmldoc().
- Proper free zval in php_xpathptr_eval().
This one:
- Fix segfault in php_xpathptr_eval().
- Fix win32 build (TSRMLS_FETCH issues).
- More sanity checking in php_xpath_get_object(), php_xpath_get_context()
and php_dom_get_object().
- Moved macros into header file.
- Register le_domxmldtd, le_domxmlcdatap (removes anoying warning message on shutdown).
- Fig segfault in node_children() with unsupported node types.
- Fix leak in php_domobject_new() with unsupported note types.
- Fix leak when freeing xpath context/objects.
- Reverted behaviour change to append_child() [old crashes].
- set_content() also sets the node->content property.
# Testers/patches/contribs welcome.
25 years ago
foobar
f1397d5339
Unified the configure messages.
25 years ago
Uwe Steinmann
9ed2694ce0
- introduced several macros to simply code (done by Markus Fischer)
25 years ago
Egon Schmid
feee0f5a08
Fixed some protos. If pi means processing instruction, it should be written IMHO in uppercase characters.
25 years ago
Uwe Steinmann
6affe84ee7
- add functions clone_node(), is_blank_node(), create_entity_reference()
- fixed bug in node_name()
- fixed behavior of append_child(), it now adds a child a not a sibling
25 years ago
Stig Bakken
689252082c
* zend_module_entry change: apino, debug and zts are moved first,
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
25 years ago
Derick Rethans
5a34b26972
- This patch adds proper header file detection on system which
simultaneously isntallied libxml1 and libxml2 (eg. Debian) (patch by
Markus Fischer <mfischer@php.net>)
25 years ago
Jeroen van Wolffelaar
c033288573
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
25 years ago
Joey Smith
0098833e86
Don't manually register the resource, let php_domobject_new do it for us.
This fixes and elusive SIGSEGV.
Bug id'd and fixed by Ivo Hulinsky <huld@fido.cz>.
This fixes #13322 .
25 years ago
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
25 years ago
Sterling Hughes
b5d77099fe
have this go through php's error warning system
25 years ago
Sterling Hughes
6ee9f04f87
ws fix, MFB
25 years ago
Sterling Hughes
645a98ef99
Change DOM-XML's error reporting to E_WARNING which is more appropriate
25 years ago
foobar
e4df7dc7bf
if test -f /usr/local/lib/libexample.s?; then <-- no workie
if test -f /usr/local/lib/libexample.so; then <-- workie
#
# You can all point at me and laugh now.. :(
#
25 years ago
Joey Smith
a4a1543753
Fix bug #13025 .
25 years ago
Joey Smith
5d451c9885
Fix 1st case of #9893 . 2nd case was already fixed in previous commit.
25 years ago
Joey Smith
f0ea3478cb
Some changes to help out previous users of domxml...
node::tagname == node::name.
Add property "type" to textnode types.
25 years ago
foobar
a000bdd93e
libxml 2.4.2 is required now.
25 years ago
Joey Smith
862472efdc
Obviously not complete, but somewhere to start.
25 years ago
Joey Smith
df7967729e
Kill some duplicate PHP_FALIAS()'s.
Many of these were commented out, but I killed them anyways just to be
consistent.
25 years ago
Joey Smith
14f05c17dd
Group PHP_FE and PHP_FALIAS with their own kind.
25 years ago
Joey Smith
a26110de2c
Fix my own ws errors.
25 years ago
Joey Smith
b79868c28c
Register le_domxmltextp.
25 years ago
Joey Smith
109f414557
Don't hammer the resource type right off the bat.
25 years ago
Joey Smith
e3d6fc72e5
Trim ws only lines.
25 years ago
foobar
a870fd2757
ws fix. Also added some missing protos and fold tags.
25 years ago
Joey Smith
022626a8f0
Remove unused variable and fix small mental error.
25 years ago
Andi Gutmans
ad18bd07f1
- More Engine 2 work.
25 years ago
Joey Smith
fc487f4603
Change to Z_* macros.
25 years ago
Rasmus Lerdorf
4d11d90880
Track down a few more functions that don't check for 0 args and use
faster mechanism
25 years ago
Rasmus Lerdorf
8c497f05c4
We don't consistently check for args passed to functions that don't
take any args. In some cases we probably want to skip the check for
performance reasons, but in other cases where performance is unlikely
to be a factor, not throwing a warning on the wrong number of args passed
to a function is at best inconsistent, and at worst it could hide a bug.
So, add a few such checks. There are still lots of cases out there.
25 years ago
Joey Smith
2aca8c67ea
Let domxml compile with ZendEngine2.
25 years ago
Zeev Suraski
f6f6c4d7e6
Whitespace
25 years ago
foobar
9e0ad17dc4
compile fix (missing TSRMLS_CC)
25 years ago
Joey Smith
ca33def60b
K&R-ify the switch statments.
25 years ago
Joey Smith
f8d7307270
Commit acutal code only, will do ws on another pass.
25 years ago
Joey Smith
00418457d3
Revert patch to seperate code from whitespace changes.
25 years ago
Joey Smith
e2a2aa75b0
Restore xpath_eval() and the underlying php_xpathptr_eval().
It still leaks like crazy, but does not appear to crash, and
seems to work correctly.
Anyone who can possibly test this, please do.
@- Restore xpath_eval() and php_xpathptr_eval() for 4.0.7. There
@ are still some known leaks.
25 years ago
foobar
053cac2c3a
Missed these
25 years ago
foobar
f710812427
Yet another TSRM fix.
25 years ago
Zeev Suraski
1159c84ab7
- TSRMLS_FETCH work
- whitespace fixes
25 years ago
Zeev Suraski
aa1772ca72
More TSRMLS_FETCH annihilation
25 years ago
Zeev Suraski
d76cf1da18
More TSRMLS_FETCH work
25 years ago
foobar
6ee8e4bccc
Make this compile in ZTS mode.
25 years ago
Zeev Suraski
1c25b8dd53
Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on the way
25 years ago