1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Commit Graph

17723 Commits

Author SHA1 Message Date
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