summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_net.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2014-08-271-1/+1
|\ | | | | | | | | * PHP-5.5: fixed DBG_INF macro name
| * fixed DBG_INF macro nameAnatol Belski2014-08-271-1/+1
| |
| * Bump yearXinchen Hui2014-01-031-1/+1
| |
* | Add some trace info as well as update CLIENT_ flagsAndrey Hristov2014-07-161-0/+5
| |
* | Bump yearXinchen Hui2014-01-031-1/+1
|/
* Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2013-08-041-1/+1
|\ | | | | | | | | | | | | | | * PHP-5.4: non living code related typo fixes Conflicts: Zend/zend_compile.c
| * non living code related typo fixesVeres Lajos2013-08-041-1/+1
| |
* | Merge branch 'PHP-5.4' into PHP-5.5Xinchen Hui2013-01-061-1/+1
|\ \ | |/
| * Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2013-01-061-1/+1
| |\
| | * bump yearXinchen Hui2013-01-061-1/+1
| | |
| | * - Year++Felipe Pena2012-01-011-1/+1
| | |
| | * Fix valgrind error (sending of initialized bytes over the network).Andrey Hristov2011-08-311-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | When the compression was successful the compressed data + uninitialized data at the end was sent to the server, because the length of the compressed payload wasn't correctly calculated (actually the length of the uncompressed payload as assumed). However, the uncompress() function has internally the length of the real payload and skips the binary trash at the end - thus no data damage occurs!
| | * Apply r315270 to 5.3Xinchen Hui2011-08-241-0/+11
| | | | | | | | | | | | | | | | | | Fixed test script failed when host mysql doesn't listen on 3306 Fxied test script failed due to mysql_pconnect trigger a warning
| | * - Move the access behind the check.Johannes Schlüter2011-05-161-2/+2
| | | | | | | | | | | | | | | # I can't find an unsafe call, but let's play safe
| | * remove unneeded includesAndrey Hristov2011-03-221-1/+0
| | |
| | * - Year++Felipe Pena2011-01-011-1/+1
| | |
| | * count preciser in case of errorAndrey Hristov2010-12-151-3/+5
| | |
| | * fix recent TSRM build break, with --enable-debugAndrey Hristov2010-10-051-2/+2
| | |
| | * We do not need this TSRMLS_FETCH() call as we do not use any TSRM stuff in ↵Kalle Sommer Nielsen2010-10-041-1/+0
| | | | | | | | | | | | | | | | | | here, so we can get a minor boost here in ZTS mode.
| | * OPT_COMPRESS support for mysqlnd_conn::set_client_optionAndrey Hristov2010-09-011-3/+1
| | | | | | | | | | | | | | | To be used by mysqli_options
| | * Fix for Bug #51583 Bus error due to wrong alignment in mysqlndAndrey Hristov2010-07-151-1/+6
| | |
| | * Fix sprintf modifiers all around the place. In most casesAndrey Hristov2010-06-211-11/+11
| | | | | | | | | | | | | | | | | | %u should be used. Where size_t is used then MYSQLND_SZ_T_SPEC should be the modifier
| | * fix type mismatch, this is fresh misunderstandingAndrey Hristov2010-06-181-1/+1
| | |
| | * Use only memory that has been allocatedAndrey Hristov2010-05-251-6/+7
| | |
| | * OOM fixesAndrey Hristov2010-05-141-1/+1
| | |
| | * Export the methods of MYSQLND_NETAndrey Hristov2010-05-131-12/+25
| | |
| | * Merge safe_mode changes into extensions that are in sync in both branchesKalle Sommer Nielsen2010-04-261-0/+4
| | |
| | * - Fix copyrightsFelipe Pena2010-04-201-2/+2
| | |
| | * CS + WS changesAndrey Hristov2010-04-151-8/+10
| | |
| | * Fix for bug#49234 method not found ssl_setAndrey Hristov2010-04-151-2/+183
| | | | | | | | | | | | | | | Patch was tested and compiles on Windows. (Thanks Kalle)
| | * Fix the Windows build (void* arithmetic) as well as --disable-zlibAndrey Hristov2010-04-061-0/+10
| | | | | | | | | | | | | | | build.
| | * Recommit with an Windows build fix:Andrey Hristov2010-04-061-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| | * - revert revision 297277, break the builds (declaration must go 1st, size of ↵Pierre Joye2010-04-011-10/+10
| | | | | | | | | | | | void * and other known situations). Also Johannes, can you check that commit pls? Thought we were in bugs fixing only for 5.3
| | * Fix inconsistenciesAndrey Hristov2010-04-011-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
| | * Better fix for bug #51347 mysqli_close / connection memory leakAndrey Hristov2010-04-011-9/+8
| | |
| | * Fixed bug #51347 mysqli_close / connection memory leakAndrey Hristov2010-04-011-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Streams API registers every stream as resource, which lands then in EG(regular_list), however doesn't clean that when the stream is closed. At the end this is a para-leak. At the end of the script all memory is cleaned, however this is a problem for long runnig scripts that open connections. For every opened and closed connection about 150 Bytes on 32bit and 250 Bytes on 64bit will be "lost", according to memory_get_usage().
| | * Fix compiler warning, copy&paste errorAndrey Hristov2010-01-141-1/+1
| | |
| | * export some calls to init/deinit code outside of the moduleAndrey Hristov2010-01-081-2/+2
| | |
| | * improve the stats subsystem. Reduce the number of macro definitionsAndrey Hristov2010-01-081-2/+2
| | | | | | | | | | | | | | | | | | in half by smartly introducing 2 new macros. Make MYSQLND::stats a pointer from being aggregated and add triggers.
| | * add restart_psession and end_psession hooksAndrey Hristov2010-01-081-1/+16
| | |
| | * Change of way the packet objects are created/initialisedAndrey Hristov2010-01-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Move this function to MYSQLND_NET as it works on theAndrey Hristov2009-12-211-0/+50
| | | | | | | | | | | | | | | php stream
| | * Move compression and decompression code to separate functionsAndrey Hristov2009-12-211-19/+47
| | | | | | | | | | | | | | | which can be overloaded on purpose.
| | * refactoring : move more network related functions toAndrey Hristov2009-12-171-9/+349
| | | | | | | | | | | | | | | | | | | | | mysqlnd_net.c . Now communication is split on two levels: - logical (functions send and receive) - physical (functions network_read and network_write)
| | * call free_contents in every case, in case something is not freedAndrey Hristov2009-12-161-0/+1
| | | | | | | | | | | | | | | by the calling code
| | * move MYSQLND_NET code to a separate file.Andrey Hristov2009-12-161-0/+310
| | | | | | | | | | | | mysqlnd_wireprotocol is about the protocol not the transport layer
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * move plugin specific stuff to one file. create object factoryAndrey Hristov2011-10-241-13/+2
| | | | | | | | | | for similar objects
| * shift code around to two new files - mysqlnd_driver.c Andrey Hristov2011-10-211-26/+6
| | | | | | | | | | | | and mysqlnd_ext_plugin.c (mysqlnd extension plugin)
| * MYSQLND_NET refactored not to use any direct reference to MYSQLND (the ↵Andrey Hristov2011-10-101-144/+259
| | | | | | | | | | | | | | connection) QC will need an ifdef-layer to compile with this