Sterling Hughes
fb14866796
add a new function simplexml_load_string()
2003-05-26 01:41:25 +00:00
Sterling Hughes
1410e81847
several changes improvements, including the new
...
simplexml_save_document_string() function which saves a XML document to a
string variable
2003-05-26 01:37:02 +00:00
Sterling Hughes
97b5a5df4f
sascha points out this is more purdy-like
2003-05-26 01:03:51 +00:00
Sterling Hughes
3192da2d2b
this is right
...
but it shouldn't be
2003-05-26 00:27:30 +00:00
Sterling Hughes
ad509c690a
add a note, and implement this properly later
2003-05-25 22:03:47 +00:00
Sterling Hughes
bb2a324b65
use proper types
2003-05-25 21:58:09 +00:00
Sterling Hughes
3d62c3ebb7
remove compiler warnings
2003-05-25 21:50:30 +00:00
Ilia Alshanetsky
2e361db1fe
Fixed bug #23788 (str|preg_replace clober the array elements).
...
# Should this be MFBed to 4.3 branch?
2003-05-25 21:48:57 +00:00
Sterling Hughes
cf8a7bd235
add/fix assignments for both nodes and attributes
...
add a working get_property_ptr construct
2003-05-25 21:44:54 +00:00
Marcus Boerger
0b4cbe26a7
Add a testcase to foreach/break
2003-05-25 19:24:29 +00:00
Marcus Boerger
13f50103ae
Make foreach on spl'ed objects work with break, too
2003-05-25 19:10:44 +00:00
Marcus Boerger
2f0ea97617
Speling
2003-05-25 12:10:48 +00:00
Sebastian Bergmann
70fa1ff7f5
Hopefully get correct display of version information.
2003-05-25 07:23:41 +00:00
Marcus Boerger
21bbfb503e
Optimizations
2003-05-25 01:36:50 +00:00
Sterling Hughes
981f5051a9
exploit the not yet committed, not yet shown cast_object() object callback.
...
this makes simplexml the mostest bestest xml extension in the whole wide
world.
2003-05-25 00:05:30 +00:00
Marcus Boerger
96034f390b
Optimizing by caching class entries, too.
...
# The comment block inside ZEND_EXECUTE_HOOK_FUNCTION(ZEND_FE_FETCH)
# is a tricky way to create result = array(key => value) very fast.
# But it is close to overoptimizing.
2003-05-24 21:02:33 +00:00
Marcus Boerger
0b0e0e9511
Update after fix
2003-05-24 17:12:58 +00:00
Marcus Boerger
e035046ac2
Add new test
2003-05-24 17:10:34 +00:00
Marcus Boerger
3b2fa8bb96
Fix namespace related problems
2003-05-24 17:10:03 +00:00
Marcus Boerger
135415ca8f
fix error resulting from strlen() -> sizeof() change in engine macros
2003-05-24 15:51:24 +00:00
Marcus Boerger
29a5535394
Fixes and optimizations
2003-05-24 13:47:49 +00:00
Marcus Boerger
7ff718f455
Make this a warning
2003-05-23 20:51:49 +00:00
foobar
a747e1b768
added another test case (due to the problems we saw with 4.3.2RC4)
2003-05-22 23:59:37 +00:00
Derick Rethans
48041d4d7f
- Fixed bug #23751 : Confusing configure warning concerning required cURL
...
version
2003-05-22 13:08:49 +00:00
Sterling Hughes
d844c2841d
rename namespace to use_namespace to avoid a c++ keyword conflict
...
fix whitespace surrounding the enums, use tabs please :)
2003-05-22 03:29:05 +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
Sterling Hughes
5641234ee2
move all the other callbacks
2003-05-21 23:27:12 +00:00
Sterling Hughes
3de6a7d3b2
switch over to using fast_call_user_function() with the callbacks
2003-05-21 23:15:28 +00:00
Jay Smith
1611ebd45e
Fix segfault in pspell_new_config(). Also fix grammar
...
in error messages.
2003-05-21 23:04:18 +00:00
foobar
bde75d5a12
Fixed bug #23738 (ifx_copy_blob() crash). (Jani)
2003-05-21 22:20:07 +00:00
Sara Golemon
af5e2af752
Setup FG(default_context) in RINIT/RSHUTDOWN instead of fg_ctor/fg_dtor.
...
Frees context at right time without double freeing.
2003-05-21 21:36:51 +00:00
Sterling Hughes
7d9a4a0ad8
simplexml property modification works now
2003-05-21 20:39:01 +00:00
Derick Rethans
ec02fe98d8
- Fixed example
2003-05-21 20:16:04 +00:00
Sterling Hughes
956676e68c
foodle
2003-05-21 20:15:05 +00:00
Sterling Hughes
24eee37fed
seems there is only the stupid way to be stupid (implode copying array
...
elements)
at least we check for IS_STRING, which should clear this up 90% of the time
2003-05-21 17:44:08 +00:00
Sterling Hughes
90ae4e0095
be stupid, but at least be smart about being stupid.
2003-05-21 17:38:17 +00:00
Ilia Alshanetsky
e953bbb257
Added missing open_basedir & safe_mode checks
2003-05-21 17:04:08 +00:00
Rasmus Lerdorf
18954d8bd2
Remove bogus commit here too
2003-05-21 17:02:40 +00:00
Sterling Hughes
8d5c30c14b
make brian happy
2003-05-21 16:52:09 +00:00
Sander Roobol
ff36043d14
ob_gzhandler and zlib.output_compression should send a Content-Length
...
header if the length of the complete compressed output is known
# MFH follows in a few minutes, please wait with the release :)
2003-05-21 16:05:03 +00:00
Sterling Hughes
18254e85ef
ilia's request is my command
2003-05-21 15:47:01 +00:00
Sterling Hughes
c418dd14b5
add an example of modifying the XML tree
2003-05-21 14:06:00 +00:00
Wez Furlong
2d1a6e5dc2
MFB context refcounting and text-mode fopen fixes
2003-05-21 13:33:55 +00:00
Georg Richter
445180f228
MYSQL_NEED_DATA isn't defined anymore in mysql.h
2003-05-21 08:47:27 +00:00
Marcus Boerger
e504166277
This depends on libc and CPU used
2003-05-21 07:23:45 +00:00
Sara Golemon
83b7b75c3c
Implement default contexts. For the moment this is useless
...
but it will be used soon for connection pooling.
2003-05-21 04:04:50 +00:00
Ilia Alshanetsky
b078f60fce
Added missing safe_mode checks and corrected a typo in stdout check.
2003-05-21 00:57:34 +00:00
Marcus Boerger
323eedd1b2
Fix build
2003-05-21 00:14:16 +00:00
Frank M. Kromann
03c56a5a1f
Fix for bug 23402. Crash when mssql?bind was used incorrectly
2003-05-21 00:08:10 +00:00
Marcus Boerger
e9c10acc76
Fix test (ssen by Dan Torop)
2003-05-20 22:28:10 +00:00
Sterling Hughes
3c6fd35007
initialize these to NULL
2003-05-20 18:18:56 +00:00
Andrei Zmievski
8571f5eac2
Put some guards in place.
2003-05-20 18:11:09 +00:00
Jay Smith
515f0e3f71
Make get_browser() try harder to find better matches.
2003-05-20 17:59:16 +00:00
Dan Kalowsky
53c90b2344
Adding imap_getacl, patch provided by Holger Burbach
...
(holger.burbach@gonicus.de )
@ Adding imap_getacl functionality. Function provided by Holger Burbach
2003-05-20 17:37:53 +00:00
Sterling Hughes
9ac50a13d7
convert array functions to use fast_call_user_function(), gives a nice
...
performance win.
2003-05-20 16:46:53 +00:00
Dan Kalowsky
99a616b0b9
NIL, NULL, same thing, but changing for consistency sake
2003-05-20 16:34:04 +00:00
Brad House
8b3a698ec0
Properly map mcve_text_code to MCVE_TEXT_Code instead of MCVE_TEXT_AVS.
...
Properly cast MCVE_TTID.
Correct DVAL arguments to MCVE_Gut and MCVE_Gl.
2003-05-20 13:59:04 +00:00
Hartmut Holzgraefe
2bffad8fce
zend_is_callable() already checks this ...
2003-05-20 13:36:38 +00:00
Hartmut Holzgraefe
4b7c5cea4b
proto and typo fixes
2003-05-20 13:35:13 +00:00
Hartmut Holzgraefe
78b874f85e
C++ extensions build fix
2003-05-20 13:32:21 +00:00
Derick Rethans
92d5589a94
- Commit broken support for sxe_properties_get
2003-05-20 13:08:05 +00:00
Derick Rethans
37a9e03654
- Implement two dummy handlers so that var_dump() doesn't crash on it.
2003-05-20 11:17:04 +00:00
Derick Rethans
7dea37a077
- Add Revision to MINFO (I was chasing ghosts ;)
2003-05-20 08:48:18 +00:00
Derick Rethans
813ea0b663
- Make it build with the unbundled libxml again
2003-05-20 08:46:55 +00:00
Sterling Hughes
7e161dafeb
data corruption is for sissy boys
2003-05-20 02:12:03 +00:00
Ilia Alshanetsky
31f0d1c949
Added missing safe_mode & open_basedir checks.
2003-05-20 00:37:00 +00:00
foobar
dab706ee2a
- Go back to using --disable-xml and --enable-xml
...
. Require use of --with-libxml-dir and --with-libexpat-dir for ext/xml.
Allows other extensions to use --with-expat-dir for now.
# still defaults to libxml if --with-libxml-dir and --with-libexpat-dir
# are not used.
2003-05-20 00:20:29 +00:00
Marcus Boerger
daded6e633
Reorganized tests
2003-05-20 00:14:46 +00:00
Marcus Boerger
4a11372805
Fix Test (2nd time)
2003-05-20 00:09:47 +00:00
foobar
5e0a3ed73b
Make this build with libxml too.
2003-05-19 23:45:20 +00:00
foobar
f8354b5c5d
Align the configure --help texts
2003-05-19 23:43:41 +00:00
Marcus Boerger
1778caad0c
Fix protos
2003-05-19 22:52:27 +00:00
Marcus Boerger
0c77fef23a
Fix Test
2003-05-19 22:16:58 +00:00
Sterling Hughes
4cf3e8f3ee
use libxml2 memory management throughout the file, which in turn uses the
...
PHP memory management.
2003-05-19 21:53:33 +00:00
Sterling Hughes
29eb399773
send some more data to the default handler
...
libxml2 is braindead when it comes to handling entities
2003-05-19 21:51:57 +00:00
foobar
4334f66065
Allow build with expat too.
2003-05-19 21:50:23 +00:00
Marcus Boerger
dc379b9d79
Fix test
2003-05-19 21:48:04 +00:00
foobar
efa8e404d8
Remove unnecessary test.
2003-05-19 21:45:49 +00:00
Marcus Boerger
2838dcb713
Add missing ini setting (use default and change expected result accordingly)
2003-05-19 19:14:34 +00:00
Sara Golemon
8e9c159f75
The bucket rewrite was done some time ago...
2003-05-19 18:40:11 +00:00
Derick Rethans
afabd0575c
- Move examples to their own directory
2003-05-19 18:25:20 +00:00
Sterling Hughes
f726a84b1d
use the appropriate accessor
2003-05-19 16:27:46 +00:00
Derick Rethans
92f0da58e6
- Rename stream_register_filter() to stream_filter_register(),
...
stream_register_wrapper() to stream_wrapper_register() and added an alias for
the latter change.
2003-05-19 15:35:06 +00:00
foobar
73415c9e01
- Unbundle libxml and expat. Now this compiles too..
2003-05-19 15:33:19 +00:00
Sterling Hughes
a432df541f
fix attribute handling on the root node
...
simplify node access by defining/using GET_NODE() macro properly
2003-05-19 14:52:15 +00:00
Sterling Hughes
b3772c4f35
add the ability to serialize the contents back to a file
2003-05-19 13:33:01 +00:00
Moriyoshi Koizumi
08bf402440
Fixed bug #23683
2003-05-19 13:26:28 +00:00
Sterling Hughes
44f6100ff0
basic support for modifying XML documents
2003-05-19 13:16:01 +00:00
Sterling Hughes
f408e9eefc
add some macros that simplify the loops
...
remove a unnecessary copy
2003-05-19 12:44:24 +00:00
Ilia Alshanetsky
8e3772a827
Added skip condition.
2003-05-19 04:57:01 +00:00
Sterling Hughes
6bfb5026d6
add sample file
2003-05-19 01:56:14 +00:00
Marcus Boerger
4229a483cf
Really fix this
2003-05-18 23:20:10 +00:00
Wez Furlong
0ab6c816d9
Fix build
2003-05-18 23:05:38 +00:00
Sterling Hughes
26353e4e13
attribute support
2003-05-18 22:39:16 +00:00
Sterling Hughes
aec55ef95a
properly detect blank nodes
2003-05-18 21:13:29 +00:00
Sterling Hughes
e3f351ddb0
make arrays of subnodes work (hacky)
...
drop property support for the moment, this will be re-added soonish
2003-05-18 20:53:21 +00:00
Adam Dickmeiss
5a848c6f25
Display current version as well as compiled version
2003-05-18 20:40:05 +00:00
Sterling Hughes
94925b1c33
add very basic code for the simplexml extension. The following works ::
...
person.xml
--
<person>
<name>
<first>Sterling</first>
<last>Hughes</last>
</name>
</person>
person.php
--
<?php
$p = simplexml_load_file('person.xml');
echo $p->name->last . ', ' . $p->name->first;
?>
Still needs lots of work.
2003-05-18 20:33:26 +00:00
foobar
422309353d
CS
2003-05-18 14:55:18 +00:00
Marcus Boerger
80aa82e24b
Enable bundled submodules when enabling module
2003-05-18 12:36:24 +00:00
Marcus Boerger
66a3e8deb7
Fix test (for now - need EXPECTF/EXPECTREGEX)
2003-05-18 12:10:03 +00:00
Marcus Boerger
dbf0d7572e
Fix unserialize (commit later)
2003-05-18 12:09:08 +00:00
Marcus Boerger
2307193255
Fix unserialize
2003-05-18 12:08:51 +00:00
Moriyoshi Koizumi
586a43cfda
Adjusted the expected output to reflect the change in var_dump()
2003-05-17 23:50:16 +00:00
Sterling Hughes
00e48b7f70
send comments to the default handler like done with expat, add a
...
setcommenthandler function, which exists in expat, but isn't used by the
extension.
2003-05-17 22:09:58 +00:00
Moriyoshi Koizumi
80c75c4d62
MFB(r-1.1.2.7): fix test
2003-05-17 20:06:00 +00:00
Sterling Hughes
2d64d3aff5
pecl
2003-05-17 14:37:28 +00:00
Sterling Hughes
3a5f401a04
move to pecl
2003-05-17 14:32:03 +00:00
Sterling Hughes
a42ae5f191
add a package.xml file
2003-05-17 14:29:31 +00:00
Sterling Hughes
7153eb7378
add bzip2 extension to pecl from php5 cvs
2003-05-17 14:27:07 +00:00
Sterling Hughes
38c96364c6
move this extension to pecl
2003-05-17 14:17:57 +00:00
Sterling Hughes
dd8accf890
apply fix from bug #23539
2003-05-17 14:12:36 +00:00
Marcus Boerger
be7b80dcba
TSRM fix
2003-05-17 11:44:57 +00:00
Sebastian Bergmann
85a13e3e9a
Fix warnings.
2003-05-17 06:21:34 +00:00
Sara Golemon
c9651182c6
MFB(r-1.74.2.8) Bug #14369 . ftp extension allows circumvention of safe_mode restrictions. HEAD version of this patch uses the simpler open_wrapper approach to applying safe mode restrictions. Also allows writting to/from wrappers this way.
2003-05-17 04:21:57 +00:00
Sara Golemon
8924395720
MFB(r-1.333.2.27) Bugfix 23654. If subject is an array and it contains other arrays, we want to pass those subarrays through unchanged rather than attempt to convert them to string.
2003-05-16 23:30:08 +00:00
Moriyoshi Koizumi
b67f2dc98d
Allow libxml to detect the document encoding if encoding parameter passed to
...
XML_ParserCreate_MM is null.
2003-05-16 23:21:48 +00:00
Derick Rethans
0596442eef
- MFB: Fixed bug #23661 : mysql_fetch_array gives no warning on an invalid
...
result_type
2003-05-16 19:09:19 +00:00
Ilia Alshanetsky
7e2a99d091
Fixed bug #23657 (Missing initialization in browscap module init)
2003-05-16 15:13:47 +00:00
Moriyoshi Koizumi
27b8c453b9
copy'n'paste failure
2003-05-16 06:24:57 +00:00
Moriyoshi Koizumi
3d2b9af9eb
Added test case for bug #23650
2003-05-16 06:20:23 +00:00
Moriyoshi Koizumi
8cbb6b6341
Fixed bug #23650 (strip_tags() removes hyphens)
2003-05-16 06:19:51 +00:00
Ilia Alshanetsky
e2444c223b
MFB
2003-05-16 01:09:58 +00:00
Moriyoshi Koizumi
f78ec11339
Fixed test so it won't fail in case the output handler is enabled
2003-05-15 19:20:31 +00:00
Sascha Schumann
289ad3960e
Fix the way we create references to (sometimes non-)existing
...
variables.
Credits go to Rob Richards <rrichards@digarc.com> and Zeev
2003-05-15 13:33:18 +00:00
Ilia Alshanetsky
b9215a1538
Fixed bug #23527 (PostScript Type 1 font do not render properly)
2003-05-15 02:25:50 +00:00
Adam Dickmeiss
58040bfd33
Fix yaz_wait. Async mode incorrectly determine resource
2003-05-14 22:18:12 +00:00
Andrei Zmievski
8781970a78
MFB.
...
@- Updated wddx_deserialize() to take an open stream as an argument. (Andrei)
2003-05-14 18:15:17 +00:00
Sara Golemon
022a1625a3
Implement unlink() method in ftp wrapper ops and do some general cleanup of other code
2003-05-14 18:02:10 +00:00
foobar
6fb825bed4
- Removed remains of ext/fribidi (it's in PECL)
2003-05-14 15:26:38 +00:00
Sara Golemon
65d359d71a
Fold 'options' parameter into wops->unlink method
2003-05-14 15:12:07 +00:00
Wez Furlong
1a521e5ab6
Prep for next release
2003-05-14 13:05:22 +00:00
Sascha Schumann
31dc62a905
MFB segfault fix
2003-05-14 08:27:48 +00:00
Daniela Mariaschi
82d513ee72
better fix bug #20641 .
...
Overflow numeric/decimal datatype on NT
2003-05-14 08:22:54 +00:00
Marcus Boerger
7ddb7f15d4
Enable db<n> builds configured with --with-uniquename
2003-05-14 06:22:35 +00:00
Sara Golemon
5126fbe556
Setup unlink() method in wrapper_ops structure, implement unlink in plainfiles wrapper, explicitly set method NULL in other wrappers (for now), and rewrite unlink userland function to call into wrapper_ops
2003-05-14 06:10:04 +00:00
Moriyoshi Koizumi
f1679e4027
Fixed test so it won't fail in correct situations
2003-05-14 00:36:00 +00:00
Ilia Alshanetsky
f1c20d3b55
Added sqlite_fetch_string(), for speedy fetching of data from database
...
cursor containing only a single column.
2003-05-13 23:51:25 +00:00
foobar
0360a2c012
MFB: removing the crashbug on windows
2003-05-13 22:09:18 +00:00
Marcus Boerger
8dffa02661
Fix this test
2003-05-13 20:37:54 +00:00
Christian Stocker
d3ceb197a2
fixes possible segfault in domxml_xslt_result_dump_mem
2003-05-13 14:52:36 +00:00
Adam Dickmeiss
46dbbff7f0
Fix problem with yaz_record in array mode, when record is unavailable.
2003-05-13 10:31:46 +00:00
Moriyoshi Koizumi
0fc5d74364
oops
2003-05-12 13:28:06 +00:00
Moriyoshi Koizumi
e500e957ba
Applied the right fix for bug #23016
2003-05-12 13:26:16 +00:00
Moriyoshi Koizumi
bc741c67d4
Those pieces were not intended. Partly reverted.
...
# sorry for messing
2003-05-11 09:10:48 +00:00
Moriyoshi Koizumi
ebd92654c1
Added an encoding detection option for expat XML parser.
2003-05-11 09:04:05 +00:00
Moriyoshi Koizumi
4e9e9c6e21
Fixed bug #22463 and bug #23581
2003-05-11 06:36:37 +00:00
Moriyoshi Koizumi
065a192411
Added a test case for bug #23581
2003-05-11 06:33:35 +00:00
Moriyoshi Koizumi
b666d8c679
Added test case for bug #22463
2003-05-11 02:37:17 +00:00