#
aa8f43fa |
| 06-Apr-2010 |
Andrey Hristov |
Recommit with an Windows build fix: Fix inconsistencies - memory allocated with spprintf, or likes, outside of mysqlnd's allocator functions should not be freed by the mysqlnd's allocator
Recommit with an Windows build fix: Fix inconsistencies - memory allocated with spprintf, or likes, outside of mysqlnd's allocator functions should not be freed by the mysqlnd's allocator (a wrapper around emalloc/malloc). - memory allocated by the mysqlnd's allocator should only be freed by it. - add a mode to track memory usage (malloc/free)
show more ...
|
#
96e2651f |
| 01-Apr-2010 |
Pierre Joye |
- revert revision 297277, break the builds (declaration must go 1st, size of void * and other known situations). Also Johannes, can you check that commit pls? Thought we were in bugs fixing only for
- revert revision 297277, break the builds (declaration must go 1st, size of void * and other known situations). Also Johannes, can you check that commit pls? Thought we were in bugs fixing only for 5.3
show more ...
|
#
d339672e |
| 01-Apr-2010 |
Andrey Hristov |
Fix inconsistencies - memory allocated with spprintf, or likes, outside of mysqlnd's allocator functions should not be freed by the mysqlnd's allocator (a wrapper around emalloc/malloc).
Fix inconsistencies - memory allocated with spprintf, or likes, outside of mysqlnd's allocator functions should not be freed by the mysqlnd's allocator (a wrapper around emalloc/malloc). - memory allocated by the mysqlnd's allocator should only be freed by it. - add a mode to track memory usage (malloc/free)
show more ...
|
#
f534df71 |
| 01-Apr-2010 |
Andrey Hristov |
Fix inconsistencies - memory allocated with spprintf, or likes, outside of mysqlnd's allocator functions should not be freed by the mysqlnd's allocator (a wrapper around emalloc/malloc).
Fix inconsistencies - memory allocated with spprintf, or likes, outside of mysqlnd's allocator functions should not be freed by the mysqlnd's allocator (a wrapper around emalloc/malloc). - memory allocated by the mysqlnd's allocator should only be freed by it. - add a mode to track memory usage (malloc/free)
show more ...
|
#
94cd357f |
| 29-Mar-2010 |
Andrey Hristov |
Make it coupled - what is allocated with mnd_ should be freed with mnd_ and vice versa. Added mnd_pestrndup and mnd_pestrdup, which wrap the normal calls to be able to track this calls.
Make it coupled - what is allocated with mnd_ should be freed with mnd_ and vice versa. Added mnd_pestrndup and mnd_pestrdup, which wrap the normal calls to be able to track this calls. Fixed some failing tests.
show more ...
|
#
4870cac7 |
| 29-Mar-2010 |
Andrey Hristov |
Make it coupled - what is allocated with mnd_ should be freed with mnd_ and vice versa. Added mnd_pestrndup and mnd_pestrdup, which wrap the normal calls to be able to track this calls.
Make it coupled - what is allocated with mnd_ should be freed with mnd_ and vice versa. Added mnd_pestrndup and mnd_pestrdup, which wrap the normal calls to be able to track this calls. Fixed some failing tests.
show more ...
|
#
ec36ac16 |
| 26-Mar-2010 |
Andrey Hristov |
Fix tests that fail when the MySQL's socket file is not /tmp/mysql.sock as it is in when compiled from source and the default for mysqlnd. SuSE for example uses /var/run/mysql/mysql.sock . Al
Fix tests that fail when the MySQL's socket file is not /tmp/mysql.sock as it is in when compiled from source and the default for mysqlnd. SuSE for example uses /var/run/mysql/mysql.sock . Also, sql.safe_mode (ext/mysql and ingres) needs the socket. Fix possible crashes in mysqlnd. When packets are shorter, functions should return error.
show more ...
|
#
7868bca4 |
| 26-Mar-2010 |
Andrey Hristov |
Fix tests that fail when the MySQL's socket file is not /tmp/mysql.sock as it is in when compiled from source and the default for mysqlnd. SuSE for example uses /var/run/mysql/mysql.sock . Al
Fix tests that fail when the MySQL's socket file is not /tmp/mysql.sock as it is in when compiled from source and the default for mysqlnd. SuSE for example uses /var/run/mysql/mysql.sock . Also, sql.safe_mode (ext/mysql and ingres) needs the socket. Fix possible crashes in mysqlnd. When packets are shorter, functions should return error.
show more ...
|
#
ccfd9cd7 |
| 12-Mar-2010 |
Andrey Hristov |
allow persistency of PS
|
Revision tags: php-5.3.2, php-5.2.13, php-5.3.2RC3, php-5.3.2RC2, php-5.2.13RC2 |
|
#
7b68aab2 |
| 01-Feb-2010 |
Andrey Hristov |
Fix second bug in that code, + instead of += thus not increasing a pointer and mangling data. Again, ext/mysql and ext/mysqli doesn't have access to this codepath.
|
#
befab3e8 |
| 01-Feb-2010 |
Andrey Hristov |
Fix a bug in mysqlnd where a pointer was not incremented and thus wrong data was saved MYSQLND_FIELD::db. However, this wasn't caught because there is no code in mysql/mysqli/pdo_mysql wh
Fix a bug in mysqlnd where a pointer was not incremented and thus wrong data was saved MYSQLND_FIELD::db. However, this wasn't caught because there is no code in mysql/mysqli/pdo_mysql which reads that field of the structure. The problem was found during code review.
show more ...
|
Revision tags: php-5.2.13RC1 |
|
#
176e6dd2 |
| 13-Jan-2010 |
Andrey Hristov |
make mysqlnd's tracing API more reusable
|
#
dc09fa81 |
| 11-Jan-2010 |
Andrey Hristov |
more typedef cosmetics
|
#
2331e285 |
| 11-Jan-2010 |
Andrey Hristov |
cosmetics. typedef-ed types should be in capital case
|
#
1a108f1b |
| 11-Jan-2010 |
Andrey Hristov |
remove extern defintion of a variable that is no more used outside of the file where it is declared. Also really export with PHPAPI the protocol init/deinit functions
|
#
d20fdd60 |
| 08-Jan-2010 |
Andrey Hristov |
improve the stats subsystem. Reduce the number of macro definitions in half by smartly introducing 2 new macros. Make MYSQLND::stats a pointer from being aggregated and add triggers.
|
#
3264e519 |
| 08-Jan-2010 |
Andrey Hristov |
add restart_psession and end_psession hooks
|
#
73b23fca |
| 07-Jan-2010 |
Andrey Hristov |
Change of way the packet objects are created/initialised If the protocol gets changed, ever, we can decide at runtime easily which protocol to use by instantiating the right protocol obje
Change of way the packet objects are created/initialised If the protocol gets changed, ever, we can decide at runtime easily which protocol to use by instantiating the right protocol object. But this is restricted to the structure of the packets, not the flow.
show more ...
|
Revision tags: php-5.3.2RC1 |
|
#
41ac91ae |
| 21-Dec-2009 |
Andrey Hristov |
Move this function to MYSQLND_NET as it works on the php stream
|
#
ce349e35 |
| 21-Dec-2009 |
Andrey Hristov |
magic numbers to macros
|
#
028bd4ba |
| 17-Dec-2009 |
Andrey Hristov |
refactoring : move more network related functions to mysqlnd_net.c . Now communication is split on two levels: - logical (functions send and receive) - physical (functions network_read an
refactoring : move more network related functions to mysqlnd_net.c . Now communication is split on two levels: - logical (functions send and receive) - physical (functions network_read and network_write)
show more ...
|
#
22528b14 |
| 17-Dec-2009 |
Andrey Hristov |
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 que
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);'
show more ...
|
#
a1ef2d9f |
| 16-Dec-2009 |
Andrey Hristov |
Remove unneeded dereferences (oops, committed the trunk changes from a wrong directory, which splitted this commit).
|
#
b3546d1b |
| 16-Dec-2009 |
Andrey Hristov |
move MYSQLND_NET code to a separate file. mysqlnd_wireprotocol is about the protocol not the transport layer
|
Revision tags: php-5.2.12 |
|
#
c101f7f5 |
| 15-Dec-2009 |
Andrey Hristov |
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.
|