summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_priv.h
Commit message (Collapse)AuthorAgeFilesLines
* second shot on removing TSRMLS_*Anatol Belski2014-12-141-2/+2
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-11/+11
|
* s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
|
* master renames phase 1Anatol Belski2014-08-251-1/+1
|
* ported mysql and mysqlndAnatol Belski2014-08-191-1/+1
|
* Second set of changes to mysqlnd for phpng.Andrey Hristov2014-05-201-7/+0
| | | | | | A bit problematic is that the streams seem not to be completely ported. Also there are some hacks in the streams about EG(regular_list) and EG(persistent_list) and these need to be carefully checked. The test suite should catch them, however.
* Refactor the result set data structures. Move more to the buffered and ↵Andrey Hristov2014-03-051-0/+6
| | | | | | | unbuffered substructures. Add methods to these too. Preparing for pluggable interface for returning data to the engine (zvals, c-style, something else)
* Bump yearXinchen Hui2014-01-031-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
| | |
| | * use the method in all builds. Thus it can be used for detectionAndrey Hristov2011-11-221-7/+0
| | | | | | | | | | | | | | | of state transitioning in every case
| | * fix macrosAndrey Hristov2011-05-311-10/+10
| | |
| | * - Year++Felipe Pena2011-01-011-1/+1
| | |
| | * - More features for the profiling, create aggregates and dump themAndrey Hristov2010-10-291-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on file close. - Also add a trace modifier to switch on and off the profiling. - With additional compiler switch the profiling can be completely omitted, of course it makes sense only when --enable-debug. Because otherwise there is no tracing, thus no profiling. - Added a fix for Windows for handling trace files on different devices (special handing of ':' )
| | * Switch from using PHP_MAJOR_VERSION to separate define forAndrey Hristov2010-08-121-3/+9
| | | | | | | | | | | | | | | | | | unicode. Unicode is no more, but these are "bookmarks" where to change mysqlnd, if Unicode becomes trendy again.
| | * Handle OOM cases, in case of persistent connections this is realAndrey Hristov2010-04-291-0/+4
| | | | | | | | | | | | | | | and the Zend MM won't help.
| | * - Fix copyrightsFelipe Pena2010-04-201-2/+2
| | |
| | * CS + WS changesAndrey Hristov2010-04-151-4/+4
| | |
| | * Recommit with an Windows build fix:Andrey Hristov2010-04-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-3/+3
| | | | | | | | | | | | 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-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
| | * export more functionality for phpize buildsAndrey Hristov2010-01-131-3/+3
| | |
| | * move MYSQLND_NET code to a separate file.Andrey Hristov2009-12-161-3/+0
| | | | | | | | | | | | | | | | | | mysqlnd_wireprotocol is about the protocol not the transport layer
| | * Compressed protocol support + extensibility for mysqlndAndrey Hristov2009-11-201-2/+1
| | |
| | * Move definitionAndrey Hristov2009-10-221-8/+0
| | |
| | * Fix (by Andrey) and test for bug #49442 . Don't use efree() for memory ↵Ulf Wendel2009-09-161-3/+5
| | | | | | | | | | | | allocated with malloc()... If a connection gets created by mysqli_init(), mysqlnd makes it 'persistent'. 'Persistent' means that mysqlnd uses malloc(). mysqlnd does use malloc() instead of ealloc() because it is unknown if the connection will become a true persistent connection in the sense of ext/mysqli. It is unknown if the user wants a persistent connection or not until the user calls mysqli_real_connect(). To avoid tricky conversions mysqlnd uses malloc(), which sets a private persistent flag in the mysqlnd structures. A precondition for the crash to happen was that the private persistent flag is set. The flag is also set when creating a real persistent connection (in the sense of ext/mysqli) and so the bug can happen with mysql_init()/mysqli_real_connect() and mysql_connect('p:<host>', ...). Therefore we test both cases. Note the (tricky?) difference between the implementation detail'mysqlnd private persistent flag = use malloc()' and persistent connections from a user perspective. Although mysqlnd will always set its private persistent flag and use malloc() for connections created with mysqli_init() it is still up to the user to decide in mysqli_real_connect() if the connection shall become a (true) persistent connection or not.
| | * - MFH: Improve mysqlnd's internal method registrationJohannes Schlüter2009-02-161-4/+4
| | |
| | * MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
| | |
| | * MFH:Andrey Hristov2008-11-061-2/+2
| | | | | | | | | | | | | | | | | | Get rid of many defines (which simplifies the code a lot), as well as uint->unsigned int
| | * MFB:Andrey Hristov2008-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 64bit fixes: - fixes to sprintf modifiers, cleaning warnings - use _t types, like uint64_t instead of uint64, thus skipping series of typedefs.
| | * MFH: constify stringsJohannes Schlüter2008-08-191-2/+3
| | |
| | * Update ext/mysql's and ext/mysqli's testsAndrey Hristov2008-04-241-17/+0
| | | | | | | | | | | | | | | | | | Add mysqli_stmt_more_result()/mysqli_stmt_next_result(), but only in mysqlnd builds as libmysql doesn't support this feature.
| | * Fixed a bunch of bugs reported inAndrey Hristov2008-03-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #44352 mysqli_connect_error() false negative for host errors From now on the mysqli object doesn't have that magic properties, like error, which were readable but not visible through isset(), property_exists() and var_dump(). All other ext/mysqli classes were fixed too. Now it will be easier to debug mysqli based applications.
| | * new 6.0 flagAndrey Hristov2008-02-111-1/+1
| | |
| | * some config.w32 fixesAndrey Hristov2008-01-281-3/+0
| | | | | | | | | | | | | | | | | | moved mysqlnd's block allocator to a separate file and also now it's part of the connection, no MT problems.
| | * More optimizations - less MM callsAndrey Hristov2008-01-281-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clearly separated fetching (physical reading) from decoding phases (data interpretation). Threaded fetching added but disabled as needs more work for Windows. For Linux needs some touches to add pthreads if this is enabled, probably with a compile-time switch. The code reorganisation makes it easy to add also async API, similar to cURL's one.
| | * Merge with internal versionAndrey Hristov2008-01-231-2/+2
| | |
| | * strncpy->strlcpyAndrey Hristov2008-01-081-1/+1
| | |
| | * - Fix problems with double definitionsAndrey Hristov2008-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | - Clean up a bit a type mess - 4 types less. No need to have aliases for the same thing (unification is the name). - New macro for Johannes mysqlnd_stmt_ro_result_metadata
| | * MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
| | |
| | * Sync mysqlnd. Should still compile with 5_2 for those who want to use theAndrey Hristov2007-10-161-0/+10
| | | | | | | | | | | | | | | | | | current stable branch. mysqli from 5_3 patched for mysqlnd should be also compilable with 5_2.
| | * Import mysqlndAndrey Hristov2007-10-051-0/+191
| | | | | | | | | | Patch ext/mysql and ext/mysqli to support mysqlnd
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * use the method in all builds. Thus it can be used for detectionAndrey Hristov2011-11-221-7/+0
| | | | | | | | | | of state transitioning in every case
| * Now really split the method tables and have differentAndrey Hristov2011-10-311-0/+1
| | | | | | | | | | | | | | methods for the handle and the data object. Add auxiliary functions to work with the new methods. Add possibility to clone a connection object - shadow copy.
| * Split struct MYSQLND in struct MYSQLND and struct MYSQLD_CONN_DATA.Andrey Hristov2011-10-311-3/+3
| | | | | | | | | | A step in the direction of keeping internal data private
| * Move from directly referencing an aggregated structure to using aAndrey Hristov2011-10-251-2/+2
| | | | | | | | | | | | pointer to a structure. The structure is still aggregated but we add a level of indirection for possible plugins to overwrite the storage
| * move plugin specific stuff to one file. create object factoryAndrey Hristov2011-10-241-5/+1
| | | | | | | | | | for similar objects