Commit Graph

204 Commits

Author SHA1 Message Date
Marcus Boerger
299a17ba37 - Fix #30266 2005-03-11 01:11:54 +00:00
Rasmus Lerdorf
9c530d79e7 No reason to call empty RINIT, RSHUTDOWN and MSHUTDOWN functions here 2005-02-07 22:16:46 +00:00
Christian Stocker
5950725144 fix for bug #29657 xml_* functions throw non descriptive error, compared to php4
fix for bug #29711 libxml and non iso-8859-1.
If no encoding specified, it defaults to UTF-8 now
2004-08-19 12:18:25 +00:00
Rob Richards
e32f012e65 Fix bug #27821 xml_parse segfaults when xml_set_object called from class method
fix memleaks in compat.c
2004-04-07 16:24:17 +00:00
Christian Stocker
1d0596dbef - omit WARNING instead of ERROR for x_p_c_ns
- fix SKIPIF code in tests
2004-02-23 16:19:40 +00:00
Christian Stocker
830d453a2f remove compiler warnings 2004-02-23 09:19:25 +00:00
Christian Stocker
2f310c3e4f - make it compile with libxml2 2.5 again
- disable xml_parser_create_ns with libxml2 2.5 for the time being
- the #if s can be removed, once we insist on libxml2 2.6
2004-02-23 08:21:07 +00:00
Andrey Hristov
8b763f14b7 HEAD is bundled with ZE2 2004-01-17 17:44:27 +00:00
foobar
69e6b296e0 Kill warning (bug #26937) 2004-01-16 19:11:33 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +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
Moriyoshi Koizumi
cbddbca787 NULL pointers can be passed to free_fcn. This is the correct behaviour. 2003-12-08 07:15:32 +00:00
Moriyoshi Koizumi
f0725828f0 Add XML_SAX_IMPL constant to determine which implementation (libxml / expat)
is selected for SAX interface.
2003-11-04 16:15:52 +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
8767205afa Fix Win32 linkage problems 2003-08-31 12:41:53 +00:00
Ilia Alshanetsky
93bcd55eaf emalloc -> safe_emalloc 2003-08-12 00:58:52 +00:00
Zeev Suraski
90b29aa076 Replace fast_call_user_function() with zend_call_function() 2003-08-05 10:29:03 +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
Rob Richards
a5a859361b increment refcount for arrays passed to xml_set_handler 2003-07-29 13:34:50 +00:00
Rob Richards
4d31aa4444 Fix bug #24801 (xml_call_handler() causes segmentation fault) 2003-07-27 20:32:55 +00:00
Sterling Hughes
e158cd285e Not really the best way to solve this. But it doesn't give a segfault on
self-referential structures, which is always a bonus
2003-07-02 20:05:13 +00:00
Rob Richards
c104c0d676 use xmlInitParser instead of xmlInitThreads
reentrant safe as well
2003-06-14 18:14:05 +00:00
Rob Richards
e6502514fb fix common libxml init and deinit routines 2003-06-14 15:08:48 +00:00
Rob Richards
68ff4becab export xml_parser_inited under win32 2003-06-14 11:22:13 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Sterling Hughes
7b42eccfd6 prevent double destroy and double init badness 2003-06-05 17:48:51 +00:00
Ilia Alshanetsky
8dc90d446f Fix compiler warnings. 2003-05-27 00:50:00 +00:00
Sebastian Bergmann
70fa1ff7f5 Hopefully get correct display of version information. 2003-05-25 07:23:41 +00:00
Sterling Hughes
bf022fd49f use zval_ptr_dtor() instead of the more verbose and less correct version 2003-05-22 03:08:48 +00:00
Sterling Hughes
8b50ea61a7 take advantage of the fast_call_user_function() api call for all of the
callbacks.
2003-05-22 03:04:11 +00:00
Moriyoshi Koizumi
ebd92654c1 Added an encoding detection option for expat XML parser. 2003-05-11 09:04:05 +00:00
Moriyoshi Koizumi
83ad8e3ae3 Added initialisation for thread safety 2003-05-08 16:01:50 +00:00
Moriyoshi Koizumi
1ba4e590ef WS fix 2003-05-08 15:12:04 +00:00
Moriyoshi Koizumi
2b5cebba16 Fixed memleak when the libxml compat layer is used. 2003-05-08 15:07:26 +00:00
Moriyoshi Koizumi
21661d3bde Added even better allocator codes for both expat & libxml 2003-05-07 15:21:31 +00:00
Sterling Hughes
a0351b093f Bundle libxml and add compatibility layer 2003-05-06 19:38:49 +00:00
Sterling Hughes
1d32bcf0bc no need to comment out, it doesn't belong there '.' 2003-05-01 03:47:54 +00:00
Moriyoshi Koizumi
cb38be1bd2 Fixed segfault in xml_parser_create()
# due to too many %s in printf spec
2003-04-03 01:00:45 +00:00
Sterling Hughes
ecef1df39c This broke the xml extension, and pres2, commented out for now 2003-03-21 05:26:56 +00:00
Stig Bakken
0e6fca4f22 * email address change 2003-03-18 12:06:09 +00:00
Ilia Alshanetsky
72b356c1bc Removed pointless memory allocation checks. 2003-01-18 19:28:10 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Marcus Boerger
4ce4a1c32c php_error -> php_error_docref 2002-12-05 21:53:25 +00:00
Thies C. Arntzen
6aaa7bc345 use FREE_ZVAL when freeing zvals 2002-11-18 17:34:55 +00:00
Sascha Schumann
2909e5c9c9 centralize #include "build-defs.h" and drop (sometimes inconsistent) other
instances
2002-10-24 13:15:49 +00:00
James Cox
5d4080ec38 remove uneeded def 2002-09-06 10:34:30 +00:00
Anantha Kesari H Y
8f14aafe97 NetWare related changes/modifications 2002-09-06 10:20:39 +00:00
Markus Fischer
c7a1d96f8a - Fix a possible memory leak in xml_set_handler().
I stumbled over this while trying out 'pear package' which, while doing
  xml parsing, re-assigns the variaous callback handlers depending
  on the version during xml processing.

  If this check causes problems, let me know.
2002-04-13 05:06:33 +00:00
Stig Bakken
704713caf8 * remove extra end-fold 2002-04-09 17:32:39 +00:00
Hartmut Holzgraefe
8c0fd5bc35 proto fixes 2002-03-21 16:10:08 +00:00
Sebastian Bergmann
90613d2282 Maintain headers. 2002-02-28 08:29:35 +00:00
Jon Parise
ea089d09ae Add a note that this statement will never be reached. 2002-01-27 07:23:21 +00:00
Andi Gutmans
66d88ba07b - Fix bug in XML extension which exists due to a not perfect work around
- with ZE1. In ZE2 the correct code seems to work well.
2001-12-29 18:10:01 +00:00
Hartmut Holzgraefe
dcda91c1a1 proto fix 2001-12-17 21:01:06 +00:00
Thies C. Arntzen
7155e1311f add todo 2001-12-14 09:42:39 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
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)
2001-10-11 23:33:59 +00:00
Jeroen van Wolffelaar
6cfba2a3ea 2nd phase in back-substitution those macro's
I've got pretty much everything now...
2001-09-25 22:49:04 +00:00
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. 2001-09-25 21:58:48 +00:00
Derick Rethans
78747bd2df - Don't wrap lines... this is annoying while coding. 2001-09-09 13:29:31 +00:00
foobar
c902ad74f0 null terminate the returned string in here too. 2001-08-18 23:43:04 +00:00
foobar
1ffbcc5ecf ws fix. 2001-08-18 23:07:10 +00:00
Sebastian Bergmann
fd5eea8b96 Fix warning. 2001-08-12 18:57:35 +00:00
Thies C. Arntzen
d5b1a7f440 tags need to be UTF8-decoded as well.
guys, case_folding can only work when the parser target encoding equal (or
compatible) with the locale setting of the system as we use toupper to "do it"
2001-08-12 18:44:42 +00:00
Zeev Suraski
aa1772ca72 More TSRMLS_FETCH annihilation 2001-07-31 05:44:11 +00:00
Zeev Suraski
c43806f415 Zend compatibility patch 2001-07-30 08:24:42 +00:00
Zeev Suraski
797a079a95 More TSRMLS_FETCH work, and a bit of cleanup 2001-07-30 06:18:13 +00:00
Zeev Suraski
7b1c400631 More TSRMLS_FETCH annihilation (Zend compatibility patch) 2001-07-30 04:58:07 +00:00
Andi Gutmans
d42f85427a - Use object macros 2001-07-28 18:40:18 +00:00
Zeev Suraski
d87cc976e1 Redesigned thread safety mechanism - nua nua 2001-07-28 11:36:37 +00:00
Zeev Suraski
fe6f8712a4 - Get rid of ELS_*(), and use TSRMLS_*() instead.
- Move to the new ts_allocate_id() API
This patch is *bound* to break some files, as I must have had typos somewhere.
If you use any uncommon extension, please try to build it...
2001-07-27 10:16:41 +00:00
Thies C. Arntzen
0ef0f8e32b ZVAL_BOOL(v,0) -> ZVAL_FALSE(v) 2001-07-11 12:42:25 +00:00
Zeev Suraski
66d94bc655 Nuke zval_reset 2001-07-11 11:39:10 +00:00
Zeev Suraski
d70ce7be27 var_reset -> ZVAL_RESET 2001-07-11 09:39:09 +00:00
Thies C. Arntzen
6708768c07 xml_utf8_encode: make sure the returned data is zero-terminated 2001-07-09 06:49:34 +00:00
Rasmus Lerdorf
81e2cf03ac Fix folding and clean up some extensions 2001-06-06 13:06:12 +00:00
Rasmus Lerdorf
25c3a3a39d vim-6 does folding - clean up a bunch of missing folding tags plus
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
Stig Bakken
1beda9ee1e * include "config.h" if HAVE_CONFIG_H is defined (for standalone dso build) 2001-05-24 10:07:29 +00:00
Thies C. Arntzen
56cebea057 added expat version to phpinfo(); 2001-05-14 11:35:25 +00:00
Thies C. Arntzen
cd2f057f1a bump bundled expat to 1.95.1
win32 project _needs_ updating and i don't have windows
2001-05-11 17:57:37 +00:00
Andi Gutmans
01ed33d1b6 - Pointed out by Andrei. zval_ptr_dtor() should be used instead of the
zval_del_ref() function which should be nuked.
2001-02-27 20:16:35 +00:00
Andi Gutmans
eb6ba01d1c - Fix copyright notices with 2001 2001-02-26 06:11:02 +00:00
Thies C. Arntzen
72ec2e8f12 fixed SEGFAULT when using xml_set_object. Zend does not yes support
cyclic references!
2001-02-15 13:41:04 +00:00
Daniel Beulshausen
315e790ccc remove stupid ifdef's 2001-01-05 18:09:43 +00:00
Daniel Beulshausen
fe8238e6e9 include config.w32.h under win32 2001-01-05 17:07:02 +00:00
Rui Hirokawa
32c3af8c39 added libxml-1.95 support and some new functions related to namespace support. changed config.m4 to support xml extension as shared module. 2001-01-05 06:36:51 +00:00
Thies C. Arntzen
1fb4c6dfe8 revert last fix. the problem is now fixed globally in Zend. 2000-12-24 10:58:44 +00:00
Thies C. Arntzen
009064bc4d fix #8363.
fix call_user_function when parser->object is not set.
2000-12-23 21:46:44 +00:00
Zeev Suraski
be895bcb96 Fix call_user_function() with objects - it could leak under certain circumstances 2000-12-13 22:50:10 +00:00
Thies C. Arntzen
825457ae64 update my email. 2000-10-29 09:14:55 +00:00
Sascha Schumann
39387c7781 Remove second_arg_force_ref, defined in Zend
Submitted by: Bill Stoddard
2000-10-26 18:15:18 +00:00
Andrei Zmievski
f1dcb32c9f Use zend_register_list_destructors_ex() instead. 2000-10-25 17:44:02 +00:00
Andrei Zmievski
7b4983c8f8 Mega-patch to get better resource information for modules.
* Fixed a bug in zend_rsrc_list_get_rsrc_type()
  * Switched register_list_destructors() to use
    zend_register_list_destructors_ex() instead
  * Updated all relevant modules to provide the resource type name
    to register_list_destructors() call
  * Updated var_dump() to output resource type name instead of number

@- Made resource type names visible, e.g. var_dump() and
@  get_resource_type() display "file" for file resources. (Andrei)
2000-10-20 18:25:16 +00:00
Andrei Zmievski
4285af4244 @- Fixed problem with having $this as the XML parser object. (Andrei) 2000-08-31 14:09:59 +00:00
Andrei Zmievski
1955412c3d @- Added ability for each xml_set_*_handler() function to take the
@  array($obj, 'method') syntax for the handler argument as well
@  as the normal function name. (Andrei)
2000-08-22 19:32:07 +00:00
Stanislav Malyshev
50161c9ee8 Fix XML by-reference passing 2000-08-20 15:59:54 +00:00
Sascha Schumann
0c03253635 Stop including dl/phpdl.h. 2000-06-24 15:36:04 +00:00
Andi Gutmans
2987d5216e - More #if WIN32|WINNT -> #ifdef PHP_WIN32 conversions 2000-06-15 23:45:05 +00:00
Andi Gutmans
3701bc4207 - ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch 2000-06-05 19:47:54 +00:00
Sascha Schumann
4686a3b50e Use #ifdef COMPILE_DL_EXTNAME solely. 2000-05-23 09:33:51 +00:00