Commit Graph

220 Commits

Author SHA1 Message Date
Zeev Suraski
1c25b8dd53 Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on the way 2001-07-30 01:56:43 +00:00
foobar
80b09d007f Simplified this a bit and made more consistent. 2001-07-27 14:02:44 +00:00
Joey Smith
f272469b4c Close Bug #10235.
This makes domxml_root() work again. It now works
equally as well as object method or a simple function.
2001-07-16 11:16:44 +00:00
Joey Smith
cd9fe169e1 This should get xmldocfile() working again.
This should fix bugs:
11192, 10899
2001-07-08 00:54:25 +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
foobar
4e545c1d73 A few modifications to make the ZLIB checks work better. 2001-05-20 23:00:44 +00:00
Sascha Schumann
afdaee9e47 Nuke more quotes 2001-05-12 11:09:05 +00:00
Andrei Zmievski
ae90bcf16d Open season on memory leaks, shoot all you can. 2001-05-11 21:29:47 +00:00
Andrei Zmievski
1db2516277 Start cleaning up domxml memory leaks. Still much stuff to do. 2001-05-11 16:14:19 +00:00
foobar
a972b6aa5b Cleaning up here too. 2001-05-10 00:59:41 +00:00
Daniel Beulshausen
cdbe5f50b0 newer libxml libs are called libxml2.lib 2001-04-30 10:33:17 +00:00
Uwe Steinmann
7ee542a524 - added domxml_version() to retrieve version of libxml 2001-04-09 11:53:06 +00:00
foobar
7449d09be0 Fixed bug: #10040. 2001-03-29 00:22:45 +00:00
foobar
8a26918ed1 Renamed the AC_ prefixed macros defined in acinclude.m4 to PHP_* prefixes.
# Heads up people! I tested this before committing but you never know..
2001-03-27 20:35:04 +00:00
foobar
6751e58f9d Fixed a typo. 2001-03-26 21:42:01 +00:00
Uwe Steinmann
dbc4d4b457 - fixed some bugs with xpath 2001-03-22 06:58:13 +00:00
Uwe Steinmann
e8d48dd7ae - added EntityReference and Notation class
- fixed handling of PI nodes
- implemented more class functions
2001-03-21 05:45:40 +00:00
Sebastian Bergmann
53385a9537 Nuke another warning. 2001-03-20 17:04:45 +00:00
Uwe Steinmann
3dfbbc31ac - fixed lot of compiler warnings 2001-03-20 16:20:42 +00:00
Uwe Steinmann
9fc59ce735 - complete rewrite of domxml module.
It is now mostly conform to DOM Level 2 though some classes and
  methods are still missing
2001-03-20 15:01:13 +00:00
Andi Gutmans
eb6ba01d1c - Fix copyright notices with 2001 2001-02-26 06:11:02 +00:00
Uwe Steinmann
32b8cdde14 - add domxml_unlink_node(), not tested 2001-02-08 15:12:16 +00:00
Sascha Schumann
271617483a Improve use of $withval. This also cures the problem of adding -Lyes/lib
to $LIBS.
2001-02-07 16:01:29 +00:00
foobar
bbca5a86f8 Fixed bug #8946. In some systems the libxml.* is actually libxml2.* 2001-01-29 23:15:11 +00:00
Uwe Steinmann
bcac88e8fb - changed naming of some functions (kept compatibility) 2001-01-26 08:15:57 +00:00
foobar
809bf95a90 Added some missing EXPERIMENTAL files plus some missing extensions
into EXTENSIONS file.
2001-01-19 13:43:41 +00:00
foobar
ab6639564c - Fixed a possible crash bug in xmltree().
# PR: #7052
2001-01-12 16:49:06 +00:00
Andi Gutmans
5e5c59ebcb - Get rid of C++ comments 2001-01-05 14:34:15 +00:00
Uwe Steinmann
db56ddb36c - fixed potential segmfault in xmldoc() and xmldocfile() 2001-01-05 14:11:19 +00:00
Rasmus Lerdorf
2a926135a9 Fix typo 2000-12-28 17:25:11 +00:00
foobar
40677872d5 Removed unused variables. 2000-12-15 12:33:12 +00:00
Daniel Beulshausen
199160d4db link against msvcrt(d).lib, ignoring it isn't a good idea 2000-12-13 11:37:00 +00:00
foobar
98349a9408 Removed unused variable definitions. And libxml can be build NOT
to have support for either XPath or XPtr.
2000-12-09 03:19:46 +00:00
foobar
41f3d66705 Version checking for domxml. Requires >= 2.2.7 at the moment. 2000-12-08 13:09:32 +00:00
Uwe Steinmann
5ff861bd4a - set propper min version 2000-12-07 10:04:18 +00:00
Sascha Schumann
7e28784de3 Fix indentation of configure output 2000-12-06 17:34:58 +00:00
Uwe Steinmann
fb35b3996c - fixed copy and paste error 2000-11-23 09:56:18 +00:00
Hartmut Holzgraefe
1f6878e912 2nd step towards auto-credits 2000-11-20 10:33:33 +00:00
Uwe Steinmann
eea750ebc8 - fixed serveral prototypes
- replaced C++ style comments
2000-11-13 13:27:19 +00:00
Uwe Steinmann
52aba68aa2 - new function set_content() which is a workaround for bug #6457 2000-11-10 11:40:03 +00:00
Uwe Steinmann
0bbb1906bd - Fixed many problems to make xpath working
- Each function now expects an object and not a resource anymore
  I hope this makes it more straightforward for the PHP-Programmer
2000-11-10 10:27:57 +00:00
Uwe Steinmann
b98f580143 - Fixed several error including segm fault (but still one left :-( 2000-11-10 06:09:41 +00:00
Uwe Steinmann
d82bade81c - Started support for XPath/XPtr (completely untested) 2000-11-09 08:42:20 +00:00
foobar
1afebc69c7 Make this compile with libxml2.2.7. 2000-11-08 02:17:36 +00:00
foobar
2ad7083005 No more segfaults. 2000-11-01 05:05:33 +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
Sascha Schumann
57dcb93324 Remove left over ext_skel comment 2000-10-19 14:34:03 +00:00
Rui Hirokawa
e8967fdc58 fixed a mistake. should be . 2000-10-19 12:10:59 +00:00
Rui Hirokawa
6eb45b5964 modified the configure scripts to make shared extension. 2000-10-18 22:17:41 +00:00
foobar
b3450c2246 Now it really checks that libxml version is >= 2.0 2000-10-05 00:51:46 +00:00
Daniel Beulshausen
b6f0d041f9 deleted a few unnecceasary defines and added the Release_TS_Inline path to the libpath 2000-08-24 17:48:30 +00:00
Daniel Beulshausen
3af4ba7e01 projectfile for the domxml extension 2000-08-22 18:01:50 +00:00
Hartmut Holzgraefe
e67defffbe last patch reverted, i didn't get the whole picture here 2000-08-10 08:31:40 +00:00
Hartmut Holzgraefe
e59bcdbfb8 duplicate alias entry removed 2000-08-10 08:13:15 +00:00
Uwe Steinmann
edcbd1862e - got rid of php_ prefix in Modulename and some structs 2000-08-07 11:55:48 +00:00
Uwe Steinmann
6de4e2e382 - made compilation as dynamic lib possible 2000-08-07 11:40:54 +00:00
David Croft
83513d9580 Changed lots of PHP 3 licence headers to PHP 4, mainly in .h files.
Added a few RCS $Id$ tags.

# Note: I have avoided changing any .h files if the corresponding .c file
# had not already been changed as I am not sure if there are any legal
# issues here. So some extensions still have PHP 3 headers.
2000-07-24 01:40:02 +00:00
Egon Schmid
9194a0fb12 Some cosmetic changes. 2000-07-15 13:00:41 +00:00
Sascha Schumann
16017f6d78 Change header protection macros to conform to standard.
Draft 3 of IEEE 1003.1 200x, "2.2 The Compilation Environment"

  All identifiers that begin with an underscore and either an uppercase
  letter or another underscore are always reserved for any use by the
  implementation.
2000-07-02 23:46:51 +00:00
Uwe Steinmann
c454a4156e - added prototype 2000-06-19 19:45:53 +00:00
Hartmut Holzgraefe
87a491d7b6 C++ // comments are evil ... 2000-06-16 18:24:02 +00:00
Uwe Steinmann
785fd93311 - fixed problems with missing attributes due to a change
in libxml 2.0.0
2000-06-15 07:05:38 +00:00
Andi Gutmans
6ce07a85e4 - Change register_internal_class to zend_register_internal_class for
- consistency.
- Andrei: I'm still thinking about the _ex you want me to implement
2000-06-09 08:41:59 +00:00
Joey Smith
663d46ea23 Use common naming convention. 2000-06-06 05:42:11 +00:00
Joey Smith
edfd7f9a80 Get the version #'s right... 2000-06-06 05:13:07 +00:00
Andi Gutmans
3701bc4207 - ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch 2000-06-05 19:47:54 +00:00
Uwe Steinmann
a8401a33c6 - should now compile and configure with libxml 2.0.0 2000-06-05 15:39:29 +00:00
Hartmut Holzgraefe
df4547a3df another bunch of proto fixes 2000-05-23 23:13:02 +00:00
Zeev Suraski
e043439ff6 Update the license with the new clause 6 2000-05-18 15:34:45 +00:00
Sascha Schumann
7613e064f8 Remove trailing empty lines 2000-05-01 22:38:42 +00:00
Sascha Schumann
0d36199cf9 Large test commit IV 2000-05-01 22:04:52 +00:00
Sascha Schumann
de2cea47c0 Large commit test III 2000-05-01 22:00:09 +00:00
Sascha Schumann
a493cdc92c Large test commit II 2000-05-01 21:57:01 +00:00
Sascha Schumann
a481fddfb3 Improved in-tree shared libraries build system
The following new/revived shared modules are available now:

  ... MySQL (*)
  ... PCRE (*)
  ... Session
  ... SWF

  (*) capable of using bundled library or external library

All changes:

  The m4 macro PHP_EXTENSION was revamped. Uses LIB_BUILD now.
  This effectively means that all extensions have to use dynlib.

  ext/mysql/config.m4 was revamped.
  Uses LIB_BUILD for building bundled library.

  ext/pcre/config.m4 was revamped.
  Uses LIB_BUILD for building bundled library.

  ext/ext_skel was changed to reflect that more modules should be
  compileable as shared module.

  ext/Makefile.in has been simplified enormously.

  Dependencies are now stored in the build tree.

  Empty dependencies are not generated by buildconf anymore. They
  are now dynamically created during the build process.

  Implicit rules for .S were removed.

  The NO_RECURSION feature was removed.

  "libs.mk" has been added to all cvsignore files in ext.
2000-05-01 02:42:55 +00:00
Sascha Schumann
953fe189da Overall UNIX build system improvements:
* Makefile header is now completely dynamic
* Absolute paths in (top_)?(src|build)dir and VPATH
  (fixes Tru64 support)
* VPATH does not contain variables anymore
  (fixes UnixWare support)
2000-04-30 03:20:09 +00:00
Zeev Suraski
64f91d80fa Object overloading API changed slightly (llist is now a pointer) 2000-04-10 20:21:02 +00:00
Colin Viebrock
731404c0ba phpinfo() prettying
I will get to the rest of the functions later tonight or tomorrow
(i.e. from hyperwave to snmp)
2000-04-05 22:30:19 +00:00
Uwe Steinmann
db160e8164 - should fix a problem with ifdef 2000-04-04 16:03:39 +00:00
Sascha Schumann
b4db46606e Some white-space changes 2000-03-26 19:47:28 +00:00
Uwe Steinmann
83304f3d2c - support for libxml 2.0 beta 2000-03-15 15:08:08 +00:00
Uwe Steinmann
6ac297fbc1 - changed libgz to libz (Bug #3614) 2000-03-15 08:09:14 +00:00
Uwe Steinmann
db065413d1 - fixed invalid class names
- added standalone, encoding attribute to DocDocument class
2000-03-14 20:58:10 +00:00
Uwe Steinmann
d037fdc8be - several fixes and cleanups in hw module 2000-03-08 17:51:58 +00:00
Stig Bakken
d02fe90b00 Change extension names in all extensions' zend_module_entry to their
directory name.
2000-03-06 18:44:01 +00:00
Uwe Steinmann
92943a0c3f - root property in Dom Doc class is now reference to array element in
children property
2000-03-06 13:11:21 +00:00
Uwe Steinmann
dd4f37a4cf - tiny changes to testscript and domxml 2000-03-03 12:38:20 +00:00
Uwe Steinmann
8afd1b1d97 - xmltree() now returns an 'Dom Document' object with prop root and
children. root contains just the root element, children is an array
  with all nodes on root level, e.g. comment, pi, element
2000-03-03 08:44:25 +00:00
Uwe Steinmann
bd09614526 - added property type to obejct xml doc 2000-03-03 08:02:22 +00:00
Uwe Steinmann
11c654bbcd - some minor changes, cleanups 2000-03-02 18:56:06 +00:00
Uwe Steinmann
2552876786 - dom class now distinguishes between $dom->root() and $dom->children()
$dom->root() returns just the element, $dom->children() all nodes e.g.
  comments
2000-03-02 16:58:07 +00:00
Uwe Steinmann
ad311c35c7 - The root node of a xml doc is now an array since it is possible
to have a comment or pi and an element on root level.
2000-03-02 16:39:50 +00:00
Uwe Steinmann
d693d6b2cb - started to implement overload class for xml node 2000-03-01 21:16:24 +00:00
Zeev Suraski
bf5cb890b0 - Convert 'PHP3' to 'PHP'
- Avoid declaring crypt() related salt types twice
2000-02-26 03:20:55 +00:00
Egon Schmid
c0b3d86d91 More protos. 2000-02-25 08:54:12 +00:00
Uwe Steinmann
5283b0b821 - added support for namespaces
- made entities in attributes possible
2000-02-22 20:24:56 +00:00
Uwe Steinmann
5f34cfddbc - dom tree isn't editable anymore. Will probably change back in the future 2000-02-22 17:03:01 +00:00
Zeev Suraski
9b621d1c8f Get the license right... (this won't make it to RC1 of B4) 2000-02-19 23:21:46 +00:00
Uwe Steinmann
d526de3fa8 - fixed bug if attribute value is entity 2000-02-17 20:30:00 +00:00
Uwe Steinmann
995c565fba - change some function name into php style 2000-02-17 15:05:24 +00:00
Uwe Steinmann
992e808451 - added funktion xmltree(), renamed dom() to xmldoc() and domfile()
to xmldocfile().
- testdom covers most of the functionality
2000-02-10 15:24:13 +00:00
Uwe Steinmann
e548a31510 - removed stupid leftover in testdom
- added more functions to domxml
2000-02-09 20:06:23 +00:00
Uwe Steinmann
9603c7cc83 - new function to read and parse xml doc from file 2000-02-09 14:07:44 +00:00
Uwe Steinmann
06c586932a - fixed several bugs an did some testing. Parsing and creating simple
XML docs should work. See the script testdom.
2000-02-09 12:46:32 +00:00
Uwe Steinmann
fb46032cbb - fixed several bugs, left some for tomorrow :-) 2000-02-03 21:11:58 +00:00
Uwe Steinmann
a6869f2333 - more functions added but none of them tested 2000-02-03 17:21:23 +00:00
Uwe Steinmann
ef4cd692e0 - support libxml installed in gnome 2000-02-02 20:57:49 +00:00
Uwe Steinmann
5c3917478a - resumed work on domxml and found a way to circumwent a segm fault
(see the source). No solution to fix it, yet. Probably needs some
  understanding of zend, which I don't have.
- added more functions
2000-01-25 17:00:09 +00:00
Sascha Schumann
43ae2bffbb Happy Y2K patch! Happy new year (or the new millennium, depending on whether
you start counting at 0 or 1).
2000-01-01 01:32:05 +00:00
Sascha Schumann
cf5a5fb1dd Whoops, defining them to empty values generates many parse errors.
Defaulting to 1.
1999-12-30 04:52:19 +00:00
Sascha Schumann
2c99bef442 Get rid of config.h.stub. Note that you should embed a comment about
what the respective define does into the AC_DEFINE macro. I.e.

AC_DEFINE(HAVE_FOO, 1, [Whether you have FOO])
1999-12-30 04:07:46 +00:00
Sascha Schumann
f2f8d38efa Integration of -ng changes. Changes:
- added support for externally built modules,
- improved support for in-tree shared modules,
- fixed diversion bugs,
- configure displays some informative messages,
- faster static build
  (libtool isn't used anymore for compiling non-PIC objects),
- dependencies comparable to automake's without requiring GNU make or GCC,
- working make clean for non-GNU makes.
1999-12-30 02:59:53 +00:00
Zeev Suraski
502bb9c746 More php3 cleanup 1999-12-17 21:34:28 +00:00
Zeev Suraski
fb1c77bd4f - Made PHP_VERSION and PHP_OS work again
- More php3_ cleanup
@- Restored the PHP_VERSION and PHP_OS constants (Zeev)
1999-12-17 20:55:31 +00:00
Uwe Steinmann
ec7088e1df - improved configuration due to compile problems which suddently show up 1999-12-09 07:15:36 +00:00
Uwe Steinmann
512c641794 - Several small corrections, typos, ... 1999-12-07 10:49:19 +00:00
Sascha Schumann
5b983c944f Clean up php3.*\.h files. The files itself are renamed, and references in all
.*\.[ch] files were changed. There is a slight chance that my script missed
a few changes, please correct them manually.
1999-12-04 19:19:57 +00:00
Uwe Steinmann
5d3ae9c2b2 - made domxml compile 1999-11-25 06:56:40 +00:00
Egon Schmid
2671eaa33b Descriptions should be different for different function names. 1999-11-24 12:10:15 +00:00
Uwe Steinmann
ad9b5927dc - new xml parser with dom support 1999-11-24 06:21:48 +00:00