Antony Dovgal
becb273c16
MF51: fix #37077 (stream_socket_server() leaks when the port is not allowed)
2006-04-14 10:01:34 +00:00
Dmitry Stogov
930bf30460
Fixed calling header functions through __call()
2006-04-14 09:11:48 +00:00
Antony Dovgal
1262002a95
MF51:
...
AIX #define's accept as naccept
add a workaround
2006-04-13 13:21:59 +00:00
Antony Dovgal
52972cc61f
MF51:
...
fix bug #37061 (curl_exec() doesn't zero-terminate binary strings) - we get the data length from cURL, so it's binary safe.
fix leak appearing when re-using curl handle
2006-04-13 11:26:43 +00:00
Dmitry Stogov
fa9135ff2d
Fixed bug #37054 (SoapClient Error Fetching http headers)
2006-04-13 08:18:54 +00:00
Sara Golemon
d05836890b
Preserve full name of filter for use in stream_get_meta_data()
2006-04-13 04:41:08 +00:00
Sara Golemon
0b84c73635
Allow http:// wrapper to automatically apply correct unicode.from.* filter based on content-type header
2006-04-12 22:40:56 +00:00
Antony Dovgal
a44fe39f40
fix test title
2006-04-12 22:21:13 +00:00
Johannes Schlüter
e7747e8d74
- Fix bug #37060 (Type of retval of Countable::count() is not checked)
2006-04-12 19:29:52 +00:00
Antony Dovgal
000cf5ca7f
MF51: fix #37059 (oci_bind_by_name() doesn't support RAW and LONG RAW fields)
...
add tests
2006-04-12 19:22:12 +00:00
Antony Dovgal
a892880c1c
MF51: correct fix for bug #37055
2006-04-12 17:59:57 +00:00
Antony Dovgal
d929074b2f
add test
2006-04-12 15:19:39 +00:00
Antony Dovgal
2a098164c3
MF51: fix #37057 (xmlrpc_decode() may produce arrays with numeric string keys which are unaccessible)
2006-04-12 15:14:43 +00:00
Antony Dovgal
33a2dc7495
MF51: fix #37055 (incorrect reference counting for persistent OCI8 connections)
2006-04-12 13:38:05 +00:00
Antony Dovgal
11e39d17c1
MF51: add default timezone to the tests
2006-04-11 19:34:35 +00:00
Derick Rethans
9844b76e56
- Fixed bug #36988 (mktime freezes on long numbers)
2006-04-11 17:56:49 +00:00
Derick Rethans
a3349bd3ff
- Use pcre convenience function that also caches.
...
#- Patch by pierre.
2006-04-11 14:41:56 +00:00
foobar
b8cdb46cce
- More safe_mode left-overs.
2006-04-11 11:32:06 +00:00
Ilia Alshanetsky
490609ffc4
MFB51: fixed test
2006-04-10 23:48:38 +00:00
Marcus Boerger
c4b1606466
- Coverity issue 59
2006-04-10 23:19:23 +00:00
Marcus Boerger
f3d39723c7
- Better order for SEGV prevention
2006-04-10 19:50:56 +00:00
Marcus Boerger
40678e7f81
- Fix possible SEGV
2006-04-10 19:48:27 +00:00
Marcus Boerger
af871bf437
- Fix condition
2006-04-10 18:23:15 +00:00
foobar
6af3218f81
more cleanup (lingering ini settings which do not exist anymore, etc.)
2006-04-10 15:09:15 +00:00
foobar
672266c735
- Cleanup
2006-04-10 15:06:51 +00:00
foobar
b42a8b2f31
cleanup
2006-04-10 14:59:33 +00:00
Dmitry Stogov
1c4d488cc8
Fixed bug #36908 (wsdl default value overrides value in soap request).
2006-04-10 13:29:57 +00:00
Dmitry Stogov
d532322b72
Fixed test
2006-04-10 12:50:14 +00:00
foobar
a6a3c9059d
- Fixed bug #36909 (ld: Undefined symbols: _lchown)
2006-04-10 11:56:04 +00:00
Dmitry Stogov
159008041c
ZTS fix
2006-04-10 10:11:29 +00:00
foobar
0e8b5470be
fix credits
2006-04-10 09:46:32 +00:00
Andrei Zmievski
909a0f5cd0
MFB
2006-04-09 23:38:30 +00:00
Edin Kadribasic
141f969fe7
MFB: Fixed bug #36935
2006-04-09 23:15:57 +00:00
Ilia Alshanetsky
f58ef85af5
MFB51: Fixed bug #36875 (is_*() functions do not account for open_basedir).
2006-04-09 17:58:02 +00:00
Derick Rethans
74c0864346
- Fixed bug #37017 in a different way and added a test case.
2006-04-09 12:58:56 +00:00
Derick Rethans
0be2a7c956
- Fixed superfluous parameter.
2006-04-09 12:58:29 +00:00
Derick Rethans
7ca9d09689
- Added the date_parse() function that returns a parsed date/time string
...
including warnings and errors.
- Added the timezone_name_from_abbr() function that exposes the guessing
mechanism that tries to find a timezone identifier from a timezone
abbreviation and GMT offset.
- Fixed a bug where combined date formats 'c' and 'r' were cut off due to
insufficient space in the buffer.
- Implemented better error and warning handling that is also used for the
date_parse() function.
- Fixed the date::RFC3339 class constant.
- Fixed bug #37017 (strtotime fails before 13:00:00 with some time zones
identifiers)
- Fixed problems with "T" in front of a time string was seen as a time zone
string.
- Fixed a problem were 5 and 6 character timezone abbreviations where not
correctly parsed.
2006-04-08 14:57:42 +00:00
Antony Dovgal
7cf30db27e
MF51: fix memory corruptions and leaks when cloning ArrayObjects and ArrayIterators
2006-04-07 22:53:34 +00:00
Andrei Zmievski
589d830c32
Disallowed numeric named captures.
2006-04-07 21:20:10 +00:00
Pierre Joye
056c98d9f0
- MFB: revert leak fix, something else went wrong
2006-04-07 14:05:21 +00:00
Pierre Joye
a29f09dcc5
- MFB: fix leak when an error occured in socket_read, free tmpbuf
2006-04-07 13:34:53 +00:00
Andrei Zmievski
84a6481eff
That is not the bug you're looking for.
2006-04-06 22:37:42 +00:00
Andrei Zmievski
a389cb5a8c
Even more stuff from Friedl.
2006-04-06 22:02:02 +00:00
Andrei Zmievski
7272c63055
More stuff from Friedl..
2006-04-06 21:23:56 +00:00
Andrei Zmievski
f37190dc57
MFB
2006-04-06 21:16:28 +00:00
Sara Golemon
5a9feaa6b1
Plug leak which occurs in unicode mode
2006-04-06 20:05:43 +00:00
Sara Golemon
b6f62cabff
Silence false positives on test results
2006-04-06 20:03:27 +00:00
Sara Golemon
78d1f7ea40
Silence false positives in test failures
2006-04-06 19:51:36 +00:00
Antony Dovgal
48afd4ee03
MF51: fix #36981 (SplFileObject->fgets() ignores max_length)
2006-04-06 19:11:06 +00:00
Antony Dovgal
e931d970ab
add new tests
2006-04-05 14:09:31 +00:00
Antony Dovgal
cd4730e6c7
add missing defines to .w32
2006-04-05 14:07:57 +00:00
Antony Dovgal
be7135bc8e
fix #36934 (OCILob->read() doesn't move internal pointer when reading 0's)
...
no support for Unicode CLOBs in Oracle < 10, sorry.
2006-04-05 14:07:16 +00:00
Antony Dovgal
4e85f445f0
add test
2006-04-05 12:29:35 +00:00
Ilia Alshanetsky
1df7d39695
Fixed bug #36957 (serialize() does not handle recursion).
2006-04-05 02:28:39 +00:00
Frank M. Kromann
476f0a2ae1
MFP51: Fix #33694 invalid sql or timeouts makes it impossible to reuse persistent connections
2006-04-04 18:49:44 +00:00
Seiji Masugata
e241504917
fixed commnet typo, and duplicate logic.
2006-04-04 15:14:28 +00:00
Derick Rethans
1bad8fea12
- No need to have this one twice here... (Thanks Steph)
2006-04-04 06:04:49 +00:00
Marcus Boerger
f2004b6f28
- WS
2006-04-03 19:58:03 +00:00
Marcus Boerger
091360caa1
- Fix issue related to #36941 (when referencing itself)
2006-04-03 19:52:02 +00:00
Antony Dovgal
50b05cf884
add test for gmp_nextprime()
2006-04-03 18:11:56 +00:00
Antony Dovgal
c53b85fae5
add gmp_nextprime() function
...
patch by ants dot aasma at gmail dot com
2006-04-03 17:46:12 +00:00
Seiji Masugata
d8271224ad
added mb_stristr( ), mb_strrichr( ).
2006-04-03 15:32:43 +00:00
Ilia Alshanetsky
a24cb8773f
MFB51: Fixed an unlikely, but possible memory leak.
2006-04-03 13:46:35 +00:00
Antony Dovgal
0b0fff07b2
fix spelling in error messages:
...
greater/less thEn -> greater/less thAn
2006-04-03 09:14:50 +00:00
Sara Golemon
53450fae8a
Update tests for working with unicode
2006-04-03 05:57:40 +00:00
Sara Golemon
6d42d94715
Silence false positive test failures
2006-04-02 17:49:10 +00:00
Sara Golemon
37b1114556
Make some tests pass.
...
compression is just a binary thing.
Write unicode and suffer my wrath!
2006-04-02 17:41:04 +00:00
Marcus Boerger
8e97252506
- Behavior fix for #36941
2006-04-02 15:04:04 +00:00
Marcus Boerger
8e64e23044
- Fix warning
2006-04-02 12:48:37 +00:00
Marcus Boerger
ac099ca676
- Bugfix #36941 (ArrayIterator does not clone itself)
2006-04-01 22:39:42 +00:00
Antony Dovgal
1160f87d1d
MF51: fix segfault when assigning value by ref and add test
2006-04-01 19:14:01 +00:00
Sara Golemon
b2523b29b8
Update filename handling and mark various functions for unicode safety
2006-04-01 00:05:31 +00:00
Pierre Joye
ed35661f1e
- move setSchema to the 2.6.20 block, this method is only available from
...
this version
2006-03-31 23:20:58 +00:00
Sara Golemon
fd606a8d78
Add API hooks and unicode.filesystem_encoding for handling unicode
...
conversions of filename entries.
Normal path conversions will simply use this converter,
Certain other protocols (such as http) which specify a
required character set (utf8), may override the conversion
by defining a path_encode() and/or path_decode() wrapper ops method.
2006-03-31 22:51:37 +00:00
Marcus Boerger
e08784867c
- Add XMLReader::setSchema
2006-03-31 20:50:29 +00:00
Antony Dovgal
ec376e510c
MF51: fix compile failure with old GCC (see bug #36931 )
2006-03-31 11:11:26 +00:00
Marcus Boerger
e365c4b7c4
- Fix build
2006-03-30 23:03:53 +00:00
Marcus Boerger
b7244fc2c0
- MFB Make readable
2006-03-30 22:03:02 +00:00
Marcus Boerger
2c8b47ca31
- Add another test
2006-03-30 21:45:27 +00:00
Antony Dovgal
8c63a3bce7
MF51: fix tests
2006-03-30 20:43:55 +00:00
Antony Dovgal
4f1da95828
fix TSRM build
2006-03-30 19:59:51 +00:00
Ilia Alshanetsky
0f48af3cec
MFB51: Fixed XSS inside phpinfo() with long inputs.
2006-03-30 19:16:28 +00:00
Marcus Boerger
72a8396032
- Return NULL instead of '' if node does not exist
2006-03-30 17:36:46 +00:00
Seiji Masugata
cbd37caefc
added mb_stripos( ), mb_strripos( ).
2006-03-30 15:43:54 +00:00
Antony Dovgal
cb2232e808
MF51: fix #36922 (missing MYSQLI_REPORT_STRICT constant in userspace)
2006-03-30 11:23:11 +00:00
Sara Golemon
51b9a0f269
Make php_stream_copy_to_mem() unicode aware and
...
update userspace function file_get_contents().
Note: fgc()'s second parameter (use_include_path) has been changed
to be a bitmask "flags" parameter instead.
For the most commonly used values (TRUE, 1) this will continue functioning
as expected since the value of FILE_USE_INCLUDE_PATH is (coincidentally) 1.
The impact to other values should be noted in the migration6 guide.
This change makes it possible to allow fgc() to return binary file
contents (default) or unicode transcoded contents (using FILE_TEXT flag).
2006-03-30 00:22:51 +00:00
Sara Golemon
1c97a0d78c
Update php_stream_passthru() to handle unicode data.
...
This updates userspace functions fpassthru() and readfile()
UG(output_encoding) is used by php_stream_passthru() to translate
unicode stream contents back to an outputable character set.
Note: readfile()'s second parameter (use_include_path) has been changed
to be a bitmask "flags" parameter instead.
For the most commonly used values (TRUE, 1) this will continue functioning
as expected since the value of FILE_USE_INCLUDE_PATH is (coincidentally) 1.
The impact to other values should be noted in the migration6 guide.
This change makes it possible to allow readfile() to output binary file
contents (default) or unicode transcoded contents (using FILE_TEXT flag).
2006-03-29 22:52:24 +00:00
Antony Dovgal
87f6b66a62
fix typo
2006-03-29 16:30:54 +00:00
Seiji Masugata
e42f182be3
added mb_strrchr( ).
2006-03-29 15:47:07 +00:00
Antony Dovgal
6a53a49c8b
MF51: fix bug #36898 (__set() leaks in classes extending internal ones)
...
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)
2006-03-29 15:08:52 +00:00
Andrei Zmievski
d57e79782e
Bug!
2006-03-29 05:56:06 +00:00
Sara Golemon
30a2bd1d11
Another (and hopefully last) major streams commit.
...
This moves unicode conversion to the filter layer
(rather than at the lower streams layer)
unicode_filter.c has been moved from ext/unicode to main/streams
as it's an integral part of the streams unicode conversion process.
There are now three ways to set encoding on a stream:
(1) By context
$ctx = stream_context_create(NULL,array('encoding'=>'latin1'));
$fp = fopen('somefile', 'r+t', false, $ctx);
(2) By stream_encoding()
$fp = fopen('somefile', 'r+');
stream_encoding($fp, 'latin1');
(3) By filter
$fp = fopen('somefile', 'r+');
stream_filter_append($fp, 'unicode.from.latin1', STREAM_FILTER_READ);
stream_filter_append($fp, 'unicode.to.latin1', STREAM_FILTER_WRITE);
Note: Methods 1 and 2 are convenience wrappers around method 3.
2006-03-29 01:20:43 +00:00
Yasuo Ohgaki
f028fcecb5
restore E_WARNING in correct place
2006-03-29 01:10:27 +00:00
Seiji Masugata
b5cd8f02d8
added mb_strstr( ).
2006-03-28 16:05:16 +00:00
Antony Dovgal
8629171612
fix tests
2006-03-28 09:13:35 +00:00
Antony Dovgal
c5f35d7d95
MF51: fix #36851 (Documentation and code discrepancies for NULL data)
2006-03-28 09:13:22 +00:00
Andrei Zmievski
3eee3a5fd6
Fix collator instantiation.
2006-03-28 04:33:29 +00:00
Andrei Zmievski
cbbfebc428
Fix typos.
2006-03-28 03:28:08 +00:00
Ilia Alshanetsky
75c7f810ea
MFB51: Check 2nd parameter of tempnam() against path components.
2006-03-27 23:41:05 +00:00
Andrei Zmievski
e85495f6f1
Fix UErrorCode check.
2006-03-27 23:05:38 +00:00
Andrei Zmievski
d761aa7eb2
Typo.
2006-03-27 22:16:53 +00:00
Andrei Zmievski
626be75d6c
Make a UTODO note.
2006-03-27 21:19:12 +00:00
Andrei Zmievski
a8c291f8fe
Proto updates.
2006-03-27 19:24:18 +00:00
Antony Dovgal
036fc47efb
fix possible NULL dereference
2006-03-27 16:43:02 +00:00
Seiji Masugata
d28ec107ac
added mb_list_mime_names( ).
2006-03-27 15:20:02 +00:00
Dmitry Stogov
d1d9ce8fed
Test for strtr() with non-ascii encoding
2006-03-27 14:37:14 +00:00
Dmitry Stogov
9d9adb2f35
Unicode support
2006-03-27 14:19:18 +00:00
Dmitry Stogov
c4d2bc4c46
Fixed test
2006-03-27 14:08:10 +00:00
Dmitry Stogov
daca456e1a
Fixed test
2006-03-27 13:53:19 +00:00
Dmitry Stogov
c744d73d04
Unicode support
2006-03-27 13:37:47 +00:00
Dmitry Stogov
159bfd55e1
Unicode support
2006-03-27 10:25:35 +00:00
Dmitry Stogov
06cfa710b4
Fixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed test
2006-03-27 10:15:02 +00:00
Dmitry Stogov
bdfa3b1d36
Fixed ZTS build
2006-03-27 06:02:42 +00:00
Andrei Zmievski
b36d2dfef6
Rewrite unicode_encode() and unicode_decode() functions. Apply the new
...
conversion error semantics.
2006-03-27 03:19:30 +00:00
Yasuo Ohgaki
0821437bdb
remove pg_execute() E_WARNING error when query plan is not defined
2006-03-27 02:59:41 +00:00
Andrei Zmievski
db50082fe9
Add unicode_get_error_mode() and unicode_get_subst_char().
2006-03-26 21:22:59 +00:00
Ilia Alshanetsky
3bf02bde43
MFB51: Fixed bug #36857 (Added support for partial content fetching to the
...
HTTP streams wrapper).
2006-03-26 17:12:26 +00:00
Derick Rethans
ad6a972de3
- Implemented basic collation support. For some reason "new Collator" gives segfaults when the object's collation resource is used.
...
- The following example shows what is implemented:
<?php
$orig = $strings = array(
'côte',
'cote',
'côté',
'coté',
'fluÃe',
'flüÃe',
);
echo "German phonebook:\n";
$c = collator_create( "de@collation=phonebook" );
foreach($c->sort($strings) as $string) {
echo $string, "\n";
}
echo $c->getAttribute(Collator::FRENCH_COLLATION) == Collator::ON
? "With" : "Without", " french accent sorting order\n";
echo "\nFrench with options:\n";
$c = collator_create( "fr" );
$c->setAttribute(Collator::CASE_FIRST, Collator::UPPER_FIRST);
$c->setAttribute(Collator::CASE_LEVEL, Collator::ON);
$c->setStrength(Collator::SECONDARY);
foreach($c->sort($strings) as $string) {
echo $string, "\n";
}
echo $c->getAttribute(Collator::FRENCH_COLLATION) == Collator::ON
? "With" : "Without", " french accent sorting order\n";
?>
2006-03-26 11:06:24 +00:00
Andrei Zmievski
1709428494
Implement to-Unicode conversion error behavior. Note the adjusted APIs.
2006-03-26 06:19:24 +00:00
Sara Golemon
a64789a452
Expand stream_context_create() to allow specifying params
...
as well as options. Ignore the internal name change of the first arg.
The first arg is still for options, the second arg is for actual params.
2006-03-26 04:40:11 +00:00
Andrei Zmievski
c254b21cca
Add protos.
2006-03-26 03:33:10 +00:00
Seiji Masugata
c8de944309
fixed compiler warning.
2006-03-26 02:23:25 +00:00
Derick Rethans
3df5f17231
- Commit intermediate work so that I can hack on it on some plane.
2006-03-26 02:15:47 +00:00
Andrei Zmievski
930bde5897
* Remove unicode.from_error_mode and unicode.from_subst_char from INI
...
settings.
* Add unicode_set_error_mode() and unicode_set_subst_char() functions to
manipulate these global settings.
2006-03-26 01:48:33 +00:00
Antony Dovgal
ae7fbe8132
MF51: fix #36859 (DOMElement crashes when calling __construct when clone'ing)
2006-03-26 00:23:37 +00:00
Marcus Boerger
31513f9a8b
- Make IteratorIterator base class of most SPL iterators
2006-03-26 00:22:45 +00:00
Marcus Boerger
1b6598618b
- Fix docu
2006-03-26 00:22:03 +00:00
Sara Golemon
f67ed7f3d4
Allow bidirectional encoding option via single context param
2006-03-24 22:27:13 +00:00
Sara Golemon
dfc827d108
Fix stream_get_line():
...
Checking type isn't nearly as important as checking nullness...
2006-03-24 21:37:42 +00:00
Sara Golemon
0b2b16e6c7
Update fgetss() for unicode
2006-03-24 21:32:39 +00:00
Andrei Zmievski
fe0cccc003
Use intern->type for break iterator.
2006-03-24 21:06:36 +00:00
Sara Golemon
880dd406f2
Add php_stream_get_record_unicde() API call.
...
Update stream_get_line() userspace function to handle unicode streams.
2006-03-24 19:22:24 +00:00
Antony Dovgal
d4cdad2c2e
add new tests
2006-03-24 12:08:19 +00:00
Antony Dovgal
9cee8be28e
first check for NULL, then use the pointer
2006-03-24 10:21:56 +00:00
Dmitry Stogov
0623f8471a
Fixed SoapFault::getMessage()
2006-03-24 08:46:14 +00:00
Marcus Boerger
b2b921a10f
- Fix arginfo for (Recursive)RegExIterator
2006-03-23 22:25:46 +00:00
Marcus Boerger
3865420180
- My eyes hurt
2006-03-23 21:26:50 +00:00
Seiji Masugata
5fdede19a4
added mb_list_encodings_alias_names( ).
2006-03-23 20:14:41 +00:00
Marcus Boerger
12182b1e12
- Make spl_autoload_register() return bool
2006-03-23 19:34:20 +00:00
Antony Dovgal
4b33fba3f5
return FALSE if driver doesn't support quoting and returns 0
...
also fixes PECL bug #6365
2006-03-23 19:03:30 +00:00
Ilia Alshanetsky
96afde2af7
MFB51:
...
Added myself to PDO and PDO_MySQL credits
Added Wez to PDO_MySQL credits
Added Tony to Q&A team credits
Regenerated the credits file
2006-03-23 18:39:12 +00:00
Antony Dovgal
24efa95ab0
add missing skipif sections
2006-03-23 15:05:02 +00:00
Antony Dovgal
b45ea555bc
fix typos
2006-03-23 14:55:48 +00:00
John Coggeshall
d9a412a146
Under threat of being slept with by Marcus, adding new getParent() method
...
for node traversals
2006-03-23 14:22:40 +00:00
Marcus Boerger
d512b99ef3
- Make spl_autoload_unregister() accept any callable like spl_autoload_register()
2006-03-23 12:55:58 +00:00
Marcus Boerger
bf72bc827c
- Add new test
2006-03-23 12:20:35 +00:00
Marcus Boerger
59da8ffea1
- Add new test
2006-03-23 11:57:15 +00:00
Marcus Boerger
6b923244b0
- MF51 Add missing bug title and synch with other tests
2006-03-23 11:49:53 +00:00
Dmitry Stogov
7983262579
Fixed possible memory corruption
2006-03-23 11:42:41 +00:00
Pierre Joye
bddafa9a9f
. MFB: Fixed fetching of string value bigger than 128bytes when no options
...
are used
2006-03-23 01:37:38 +00:00
Antony Dovgal
c2e7761de4
fix leak, add test
2006-03-22 23:12:38 +00:00
Antony Dovgal
932c5d9e0e
MF51: prevent segfault when exception is thrown from Countable::count()
2006-03-22 22:06:08 +00:00
Antony Dovgal
e0cd1b87a8
MFH: fix #36825 (Exceptions thrown in ArrayObject::offsetGet cause segfault)
...
fix similar issue in offsetExists()
remove redundant semicolons
2006-03-22 21:57:10 +00:00
Antony Dovgal
af0ac4f3bc
no magic_quotes anymore
2006-03-22 19:41:42 +00:00
Antony Dovgal
a4c6a19335
use set_time_limit(), this test takes forever on AIX
2006-03-22 19:27:28 +00:00
Ilia Alshanetsky
87d97c8423
Simplify and optimize code.
2006-03-22 17:32:21 +00:00
Derick Rethans
3056defb26
- Moved strtotitle to ext/standard and implemented the fallback case to
...
non-unicode with ucwords. There is also an implementation for unicode ucwords
but that returns different results then strtotitle as it uppercases the
first character of every word, and doesn't *titlecase* a word. The test case
shows that.
2006-03-22 10:20:20 +00:00
Antony Dovgal
49b16f7254
MF51: fix #36820 (Privileged connection with an Oracle password file fails)
2006-03-22 09:46:13 +00:00
Pierre Joye
02bf0e70bf
- add tests files
2006-03-21 19:02:00 +00:00
Pierre Joye
6d0980e954
- update, wrong file added
2006-03-21 18:57:04 +00:00
Pierre Joye
d91f0cabd4
- first serie of tests
2006-03-21 18:49:45 +00:00
Pierre Joye
0bd3e9d370
- typo
...
- bump api version
2006-03-21 18:45:31 +00:00
Pierre Joye
96f0a94e63
- add enchant_broker_list_dicts
2006-03-21 18:10:45 +00:00
Pierre Joye
0040af1960
- fix proto
2006-03-21 17:25:41 +00:00
Pierre Joye
88b8784f18
- cs
2006-03-21 17:18:57 +00:00
Antony Dovgal
dce1fffbc8
change oci_field_type() to return VARCHAR2 instead of VARCHAR
...
(fixes feature request #36800 )
2006-03-21 15:47:38 +00:00
Ilia Alshanetsky
7f18e7f62c
MFB51: Fixed bug #36802 (mysqli_set_charset() crash with a non-open connection).
2006-03-21 15:35:48 +00:00
Antony Dovgal
0ba446fa06
reimplement php_oci_lob_read() and fix PECL bug #5995
...
now the function dosn't try to read data by blocks, as this is nearly impossible
to do with Unicode and regular LOBs in the same time
2006-03-21 15:07:14 +00:00
Derick Rethans
7f7300ae0b
- Update windows file too (not tested, but should work).
2006-03-21 13:57:16 +00:00
Derick Rethans
c86cf4fbea
- Make ext/unicode an extension that is always there and can not be disabled.
2006-03-21 13:56:50 +00:00
Dmitry Stogov
82864571ad
Fixed compatibility with auto_globals_jit
2006-03-21 12:27:10 +00:00
Dmitry Stogov
089646babf
Fixed bug #36721 (The SoapServer is not able to send a header that it didn't receive)
2006-03-21 12:05:10 +00:00
Pierre Joye
af08bfab19
- replace the pkg version in phpinfo
2006-03-21 11:28:20 +00:00
Pierre Joye
d072da5a1c
- cs
2006-03-21 11:13:12 +00:00
Pierre Joye
d9b40c179a
- convert package to 2.0, prepare changelog for 1.0.1
2006-03-21 10:38:59 +00:00
Rui Hirokawa
0fb7618d6e
added mb_check_encoding() to detect possible invalid encoding attack.
2006-03-21 07:47:43 +00:00
Rui Hirokawa
52a935ffd2
changed a option name based on PHP naming convension.
2006-03-21 02:19:59 +00:00
Rui Hirokawa
2832532138
MF PHP_5_1
2006-03-21 02:11:55 +00:00
Ilia Alshanetsky
f7875f813c
MFB51: Fixed bug #36689 (Removed arbitrary limit on the length of syslog
...
messages).
2006-03-21 00:59:41 +00:00
Pierre Joye
5956f9a398
- add some UTF-8 hindi files, first of a serie of data used
...
by the tests (will follow)
2006-03-20 23:44:47 +00:00
Antony Dovgal
c2eabef473
shutdown syslog module before freeing basic_globals
2006-03-20 23:33:07 +00:00
Antony Dovgal
6901e09492
MF51: fix #36808 (syslog ident becomes garbage between requests)
2006-03-20 23:07:31 +00:00
Marcus Boerger
dd4f59c9c0
- Drop PDO::setDefaultFetchMode()
2006-03-20 22:18:15 +00:00
Marcus Boerger
ee3a559a58
- WS
2006-03-20 22:17:41 +00:00
Antony Dovgal
1df7e13f48
fix #36741 (userstreams testcase have off-by-one error on fseek())
2006-03-20 22:08:59 +00:00
Marcus Boerger
56ed3211a6
- Added PDO_ATTR_DEFAULT_FETCH_MODE which controls the default fetch mode
2006-03-20 20:54:34 +00:00
Antony Dovgal
ba1ac82bc9
don't leak memory even though the code is not stable yet
2006-03-20 20:09:20 +00:00
Antony Dovgal
9557d44ed8
fix buffer overrun
2006-03-20 14:10:23 +00:00
Antony Dovgal
882df6e4d4
initialize retval
2006-03-20 13:53:56 +00:00
Dmitry Stogov
323a2d30ed
Fixed bug #36749 (SOAP: 'Error Fetching http body' when using HTTP Proxy)
2006-03-20 10:37:09 +00:00
Pierre Joye
9e3b87056f
- fix compilation warning
2006-03-20 00:07:08 +00:00
Antony Dovgal
6fd8aaae87
this check should be present in HEAD as well, no only in 5_1
2006-03-19 22:57:47 +00:00
Antony Dovgal
2c750d7f84
make the code a bit cleaner - no need for two different checks that are doing effectively the same
2006-03-19 22:12:39 +00:00
Marcus Boerger
1aeff811c0
- Make all compile without errors/warnings
2006-03-19 20:57:53 +00:00
Marcus Boerger
3273a5eab9
- Little reordering now and disable a bit of tony's code to make it compile again
2006-03-19 20:53:58 +00:00
Marcus Boerger
6154b639ed
- Handle attributes in dbh ctor (jean pütz aka tony)
2006-03-19 20:33:51 +00:00
Marcus Boerger
98ddfbba1a
- CS
2006-03-19 20:26:20 +00:00
Marcus Boerger
ef6d420aad
- Explicitly make the default default FETCH_BOTH
2006-03-19 20:08:29 +00:00
Marcus Boerger
786d78f683
- Prevent default fetch mode (0) from passing down to actual fetching and
...
make it behave like FETCH_BOTH which is the intended overall default
2006-03-19 19:46:18 +00:00
Marcus Boerger
31409d3bed
- Must use > 0 here (decrement after check)
2006-03-19 19:05:28 +00:00
Marcus Boerger
74dd417dfe
- Simplify, default mode transfer also in prepare
2006-03-19 19:04:32 +00:00
Ilia Alshanetsky
d6118f1b6e
MFB51: Properly calculate the size of the result array.
2006-03-19 17:35:56 +00:00
Antony Dovgal
41e5bcd8c5
MFB: fix several leaks in date_sun*() functions
2006-03-18 23:44:30 +00:00
Marcus Boerger
e20ff8009b
- Need to change Pierre's patch abit
2006-03-18 23:35:34 +00:00
Marcus Boerger
88c4284df7
- Add test
2006-03-18 23:13:43 +00:00
Marcus Boerger
d82abbf8d4
- Add PDO::setDEfaultFetchMode() (Pierre)
2006-03-18 23:10:40 +00:00
Marcus Boerger
637443e794
- Simplify
2006-03-18 23:09:47 +00:00
Antony Dovgal
8ff44542ff
check stream for NULL before writing to it
...
remove unnecessary semicolons
2006-03-18 22:25:29 +00:00
Antony Dovgal
612fbc1b6b
MFB: Added support for BINARY_DOUBLE and BINARY_FLOAT to PDO_OCI and OCI8 (also fixes bug #36764 )
2006-03-18 22:06:45 +00:00
Rob Richards
7fc0756e55
MFB51: Fixed bug #36756 (DOMDocument::removeChild corrupts node)
...
add test
2006-03-18 11:46:13 +00:00
Omar Kilani
aa8ab527f2
Fix PECL bug #7147 - rework comma insertion whilst encoding.
...
Add tests to package.xml.
2006-03-18 04:15:16 +00:00
Marcus Boerger
792e4d9f4d
- Fix TSRM
2006-03-17 23:14:55 +00:00
Andrei Zmievski
25b95e4250
Make is_string() return TRUE for both Unicode and binary strings.
2006-03-17 23:00:20 +00:00
Andrei Zmievski
a75b8f5f35
Fix compiler errors by using NULL_ZSTR where zstr is expected.
...
# I guess we need to use NULL_ZSTR instead of NULL when passing NULL to
# functions that expect zstr parameter.
2006-03-17 22:52:55 +00:00
Andrei Zmievski
6b165251db
Calculate the size of the tmp[] buffer directly at compile time.
2006-03-17 22:51:20 +00:00
Antony Dovgal
f5aecbf18c
MFB: fix #36727 (segfault in pdo_pgsql bindValue() when no parameters are defined)
2006-03-17 22:17:15 +00:00
Derick Rethans
c6b425432a
- Actually make this is_binary() too.
2006-03-17 14:53:57 +00:00
Derick Rethans
2ffc93140d
- Fixed bug in ucfirst() implementation. If the tmp_len = 0 then it will not
...
write the uppercased character to the buffer, but only returns the length of
the uppercased letter as per
http://icu.sourceforge.net/apiref/icu4c/ustring_8h.html#a50 .
- Updated is_string():
If Unicode semantics is turned on, return "true" for Unicode strings only.
If Unicode semantics is turned off, return "true" for native strings only.
- Added is_binary() function that returns "true" for native strings only.
- Added first implementation of upgraded strtr function. It works except if
combining sequences or surrogates are used in the non-array method of calling
this function.
2006-03-17 14:29:05 +00:00
Antony Dovgal
8c5059c3ad
MFB: fix #36743 (In a class extending XMLReader array properties are not writable)
2006-03-17 10:17:36 +00:00
Ilia Alshanetsky
16ff5e5592
MFB51:
...
Allow PDO_MYSQL_ATTR_DIRECT_QUERY to be set via constructor
Allow getAttribute() to fetch MySQL specific attributes.
Eliminate unnecessary auto-commit call on connect.
2006-03-17 00:15:28 +00:00
Dmitry Stogov
86780519d4
Disabled dl(). Now it is enabled only when a SAPI layer registers it explicitly. Only CLI, CGI and EMBED do this.
2006-03-16 16:53:10 +00:00
Seiji Masugata
c9dfb792c5
added option parameter mb_list_encodings( ).
2006-03-16 15:21:12 +00:00
Edin Kadribasic
5db1a8cad0
Added pg_field_table() as per req: #36750
2006-03-16 14:58:56 +00:00
Dmitry Stogov
9d7ca01c8b
Dropped allow_call_time_pass_reference, the error is maden E_STRICT.
2006-03-16 11:32:00 +00:00
Dmitry Stogov
7c0e534157
Dropped zend.ze1_compatibility_mode
2006-03-16 10:33:23 +00:00
Dmitry Stogov
22055cb8fd
Dropped register_long_arrays, added E_CORE for all dropped setting
2006-03-16 09:44:42 +00:00
Antony Dovgal
37ab9aa474
prepare to the 1.2 release
2006-03-16 07:31:01 +00:00
Marcus Boerger
ff359fab7f
- Fix test
2006-03-16 00:40:11 +00:00
Dmitry Stogov
09619a30cb
Fixed Bug #36614 (Segfault when using Soap)
2006-03-15 16:14:40 +00:00
Ilia Alshanetsky
111046ceed
MFB51: Fixed memory leak on unused bind var.
2006-03-15 15:27:08 +00:00
Derick Rethans
c76917a773
- Fixed two memory issues:
...
- In the first one we were calculating the tmp_len wrong which made the
u_strFromUTF32() function try to convert too many code points.
- The second issue was a bit more subtle as the "what" string wasn't
duplicated but still modified. This string is passed as data to the
function and this kind of data the engine tries to free when the function
ends. Because we were re-allocating the data the original memory location
was already freed resulting in a double free error when the engine tries to
free the argument as it was passed to the function.
2006-03-15 12:20:49 +00:00
Derick Rethans
52bec1ea36
- Reduce space in serialization. The first 128 bytes will now use just the
...
character and everything above will use \uXXXX. It seems that unserialize
doesn't work at all yet on the U: element so that I added to my to-do list.
2006-03-15 09:50:47 +00:00
Sara Golemon
df77705572
Switch (zstr) casts to use ZSTR() macro.
2006-03-15 00:28:57 +00:00
Omar Kilani
6d841fe6a0
Mark as stable.
2006-03-15 00:15:05 +00:00
Sara Golemon
b576354982
More stream updates.
...
fgets() will work now as will anything which calls one of the
_php_stream_get_line() family of functions.
The one exception here is when the legacy defines are used on a unicode
stream. At the moment they'll simply return NULL, I'll update these
to do sloppy conversion in a bit.
'make (u)test' still doesn't work, but it's a different doesn't work.
2006-03-14 21:15:05 +00:00
Antony Dovgal
49ec971d85
add brackets and clarity
2006-03-14 15:14:59 +00:00
Ilia Alshanetsky
24d06926d4
MFB51: Fixed offset/length parameter validation in substr_compare() function.
2006-03-14 14:55:27 +00:00
Edin Kadribasic
7b156d6236
MFB: Fixed build
2006-03-14 11:14:05 +00:00
Edin Kadribasic
bcf85422c2
MFB: more verbose phpinfo() output
2006-03-14 11:04:13 +00:00
Pierre Joye
ff2822a82b
- MFB: #36697 , truecolor image lost im->transparent
2006-03-14 03:46:59 +00:00
Marcus Boerger
9eebea0a45
- Fix tests
2006-03-13 22:59:36 +00:00
Seiji Masugata
8c8ac4802b
fixed compiler warning.
2006-03-13 15:04:03 +00:00
Derick Rethans
f7bfe18307
This makes file_put_contents() work for:
...
<?php
declare(encoding="latin1");
$a = "1234å67890";
file_put_contents( "/tmp/testuc.1", $a);
file_put_contents( "/tmp/testuc.2", (string) $a);
$context = stream_context_create();
stream_context_set_params($context, array( "output_encoding" => "latin1" ) );
file_put_contents( "/tmp/testuc.3", $a, FILE_TEXT, $context);
file_put_contents( "/tmp/testuc.4", (string) $a, FILE_TEXT, $context);
?>
But it still throws a warning on ".3". It's a small design issue that I
didn't want to touch right now.
2006-03-13 15:01:44 +00:00
Ilia Alshanetsky
fef63cd5e5
MFB51: Added overflow checks to wordwrap() function.
2006-03-13 14:37:32 +00:00
Sara Golemon
48798021b5
Refactor streams layer for PHP6.
...
Don't be frightened by the size of this commit.
A significant portion of it is restoring the read buffer semantics back
to what PHP4/5 use. (Or a close aproximation thereof).
See main/streams/streams.c and ext/standard/file.c for a set of
UTODO comments covering work yet to be done.
2006-03-13 04:40:11 +00:00
Marcus Boerger
946c955ce7
- Fix ReflectionParameter
...
. Reintroduce getClass()
. Change getDeclaringClass() to return what it suggests
. Add getDeclaringFunction()
. Add getPosition()
# This also fixes Bug #36687 ReflectionParameter::getDeclaringClass returns
# wrong result
2006-03-12 15:34:46 +00:00
Marcus Boerger
352d4a6d8c
- Prefix test names
...
- Add missing skipif
2006-03-12 12:11:22 +00:00
Rui Hirokawa
3b5a116511
fixed a possible null injection caused by missuse of mbstring.substitute_character.
2006-03-12 07:54:03 +00:00
Marcus Boerger
6d09a7f151
- Drop supoerflous skipif
2006-03-11 00:25:07 +00:00
Marcus Boerger
d5b5583565
- Add test
2006-03-11 00:23:10 +00:00