Andrey Hristov
22528b14a4
During refactoring of the function mysqlnd_stream_write_w_header() it was
...
found that there is a bug in the way the data is sent, although a very rare
one which will only affect very large queries which have length 16777214. The
communication will hang. A way to test it is to execute the following:
./php -r '$c=mysqli_connect("127.0.0.1","root","root","test");
$q="insert into test.tblob values(\"".str_repeat("a",256*256*256-1-34)."\")";
$c->query($q);'
2009-12-17 12:30:58 +00:00
Andrey Hristov
d233b0b2af
call free_contents in every case, in case something is not freed
...
by the calling code
2009-12-16 14:38:30 +00:00
Andrey Hristov
a1ef2d9fb3
Remove unneeded dereferences
...
(oops, committed the trunk changes from a wrong directory, which splitted
this commit).
2009-12-16 14:06:09 +00:00
Andrey Hristov
b3546d1b5e
move MYSQLND_NET code to a separate file.
...
mysqlnd_wireprotocol is about the protocol not the transport
layer
2009-12-16 12:59:38 +00:00
Pierre Joye
6ec6a9d62e
- add a test case and update the skip clause
2009-12-16 10:09:34 +00:00
Andrey Hristov
5e1c95fda4
remove duplicated code
2009-12-15 17:39:30 +00:00
Andrey Hristov
c101f7f542
Move code out of mysqlnd_conn::connect to mysqlnd_net::connect.
...
Thus mysqlnd_conn::connect() does less of what it should not do - think
about the transport level.
2009-12-15 17:33:06 +00:00
Andrey Hristov
70690e1163
remove C++ comments
2009-12-15 14:48:24 +00:00
Andrey Hristov
523471f7e8
export this function
2009-12-15 14:26:24 +00:00
Andrey Hristov
0371ef1070
refactor: move code that belongs to MYSQLND_NET out of MYSQLND
2009-12-15 13:13:51 +00:00
Ilia Alshanetsky
d0f6848e66
Fixed bu #50392 (date_create_from_format() enforces 6 digits for 'u' format character)
2009-12-15 12:34:12 +00:00
Felipe Pena
c00a91a024
- Added SKIPIF
2009-12-15 00:37:43 +00:00
Felipe Pena
286f36e702
- Fixed memory leak when E_STRICT message is getted
2009-12-14 21:44:56 +00:00
Jani Taskinen
9f210d53cc
- Fix test
2009-12-14 09:42:55 +00:00
Jani Taskinen
16dbf3060b
- Fix test
2009-12-14 09:26:49 +00:00
Pierrick Charron
c2fccc1606
- Fixed bug #50469 (Fixed typo in imagepsencodefont error string).
2009-12-14 04:09:18 +00:00
Pierrick Charron
7d4643193d
- Fixed bug #50458 (PDO::FETCH_FUNC fails with Closures)
2009-12-14 03:44:33 +00:00
Felipe Pena
93a406ac9c
- Fixed bug #49174 (crash on queryString set)
2009-12-13 19:53:44 +00:00
Felipe Pena
4411621217
- Fixed bug #50209 (Compiling with libedit cannot find readline.h)
...
(patch by tcallawa at redhat dot com)
2009-12-13 17:06:47 +00:00
Felipe Pena
eb3eea2669
- Fixed tests for when running using libedit
2009-12-13 16:53:24 +00:00
Ilia Alshanetsky
d56c1fdf14
Fixed bug #50451 (http wrapper breaks on 2048 char long headers)
...
# Improvement on the fix for bug #49851
2009-12-13 15:44:22 +00:00
Felipe Pena
5eae703705
- Fixed bug #50445 (PDO-ODBC stored procedure call from Solaris 64-bit causes seg fault).
...
(Original patch by davbrown4 at yahoo dot com)
2009-12-11 22:30:46 +00:00
Pierre Joye
af206a90ae
- fix build, come on, it is not that hard to test before commit, is it?
2009-12-11 16:35:42 +00:00
Pierre Joye
a2cf15fcc6
- #50334 , add sha support for VC6 too, not merged in trunk as we don't support vc6 there
2009-12-11 16:07:57 +00:00
Pierre Joye
560ed89bfb
- #50334 , use our own implementations of stpncpy and mempcy, avoiding weird behaviors on certain platforms like solaris
2009-12-11 15:57:01 +00:00
Jani Taskinen
70a2b56337
fix test
2009-12-11 15:06:50 +00:00
Andrey Hristov
13c8bba00a
Make MYSQLND_NET dynamically allocated structure with allocator
...
and deallocator. More member functions will come.
2009-12-11 11:58:57 +00:00
Andrey Hristov
a9295f0343
remove stale comment
2009-12-11 10:21:34 +00:00
Andrey Hristov
0c7a9b8010
Move two functions which are used in the extension as methods of
...
the connection. Two functions less in the global namespace.
2009-12-11 10:18:00 +00:00
Christopher Jones
1aebd220f8
Add new 'fetch' test and make several small test fixes
2009-12-10 19:07:08 +00:00
Christopher Jones
e435285b39
Remove text recently merged to online doc
2009-12-10 17:28:19 +00:00
Andrey Hristov
a633de0020
bump version number
2009-12-10 11:59:14 +00:00
Andrey Hristov
00d76a8445
Add plugin storage for MYSQLND_STMT too
2009-12-10 11:18:05 +00:00
Andrey Hristov
c8c250df80
Fix pdo build, forgot to remove the zval caching from pdo-mysql
2009-12-10 09:35:10 +00:00
Jani Taskinen
01eae78ec3
- not needed anymore
2009-12-10 09:23:06 +00:00
Jani Taskinen
5e7fddab93
- Fix test mess (testing the deprecated ini option is pointless when using the func does same thing)
2009-12-10 09:22:54 +00:00
Ilia Alshanetsky
47b3371122
Fixed bug #49851 (http wrapper breaks on 1024 char long headers).
2009-12-10 03:23:05 +00:00
Pierre Joye
7179910573
- [DOC] expose MPIR version when mpir is used instead of gmp
2009-12-10 02:25:47 +00:00
Andrey Hristov
06a417b6a9
Remove stub code which never actually was used for anything.
...
Things like this can be built on top of the core.
2009-12-09 20:38:11 +00:00
Andrey Hristov
6f598e62ff
Remove the zval caching from mysqlnd. It was disabled versions ago
...
due to problems on windows, which were not debugged. Better have
code that is disabled not in the core.
2009-12-09 20:21:05 +00:00
Andrey Hristov
d8a8d823ce
Fix compilation warnings
2009-12-09 18:11:03 +00:00
Pierre Joye
8d58b31495
- #50334 , fix build for platform without endian.h (like solaris)
2009-12-09 17:40:19 +00:00
Andrey Hristov
4d2735007d
Remove disabled code - threaded fetching. This can be implemented
...
on a upper level and by offloading it we reduce the complexity of
the core.
2009-12-09 16:57:03 +00:00
Jani Taskinen
64fb1fca1f
- Add one test from HEAD
2009-12-09 13:25:10 +00:00
Ulf Wendel
671ebe958a
Adapting tests to accept actual behaviour found in 5.2, 5.3 and 6.0. The behaviour is wrong according to the documentation: mysqli_connect_error() should return an empty string (not NULL), if there is no error. However, changing this would break BC and most users will not notice the difference between NULL and empty string anyway.
2009-12-09 12:06:10 +00:00
Pierre Joye
77afccc28c
- #50334 , add CRYPT_SHA* constants and tests [DOC]
2009-12-09 01:43:23 +00:00
Pierre Joye
2e6c08b289
- drop non used code and fix warning
2009-12-09 00:32:14 +00:00
Pierre Joye
9001b4036a
- #50334 , crypt ignores sha512 and add support for sha256/512 to php's crypt [DOC]
2009-12-09 00:20:14 +00:00
William Martin
d06e06007a
Backported 5.3 tests to 5.2 and added more RecursiveIteratorIterator tests
2009-12-08 19:51:56 +00:00
Ilia Alshanetsky
752b9fde5a
Upgraded to Sqlite 3.6.21
2009-12-08 13:24:27 +00:00