summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_debug.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix inconsistenciesAndrey Hristov2010-04-011-93/+135
| | | | | | | | | | | | | | | | | | | | - 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)
* | Make it coupled - what is allocated with mnd_ should be freedAndrey Hristov2010-03-291-0/+40
|/ | | | | | | | 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.
* Fix for complaint from the Zend MM, efree of a NULL pointer.Andrey Hristov2010-03-171-1/+3
|
* decrement correctly!Andrey Hristov2010-01-211-2/+4
|
* Add possibility to restrain the number of levelsAndrey Hristov2010-01-211-6/+24
|
* Fix compiler warningAndrey Hristov2010-01-141-1/+1
|
* make mysqlnd's tracing API more reusableAndrey Hristov2010-01-131-26/+46
|
* Remove the zval caching from mysqlnd. It was disabled versions agoAndrey Hristov2009-12-091-3/+1
| | | | | | due to problems on windows, which were not debugged. Better have code that is disabled not in the core.
* Remove disabled code - threaded fetching. This can be implementedAndrey Hristov2009-12-091-48/+0
| | | | | | on a upper level and by offloading it we reduce the complexity of the core.
* Revert mysqlnd to RC3 state after issues with pconnectsJohannes Schlüter2009-06-251-3/+0
|
* MFH:Andrey Hristov2009-06-161-0/+3
| | | | | | | | | | | | | | | | | | Memory usage optimisation. mysqlnd is not libmysql. mysqlnd does use the Zend allocator, which means that is easier to hit memory_limit if you have big stored (buffered) result sets. Before with libmysql you won't hit memory_limit because libmysql uses libc's allocator and nothing is checked. Now, with mysqlnd the situation is stricter and it is easier to hit memory_limit. We try to optimize for big result sets. If a result set is larger than 10 rows we will start freeing some data to keep memory usage after 10 rows constant. This will help in the cases where a buffered result set is scrolled forward only and just only once, or mysqlnd will need to decode data from the network buffers again - yes, it is a trade-off between CPU time and memory size. The best for big result sets is of course using unbuffered queries - for comparison : 3 Million rows with buffered take at least 180MB, with buffered you will stay at 3MB, and unbuffered will be just 7-8% slower.
* MFH:Andrey Hristov2009-05-281-1/+1
| | | | | | | | | | | Fix a bug with mysqlnd_fetch_field(_direct()). With mysqlnd the optimised function was called, which however, doesn't respect that during store the raw data is not unpacked, to be lazy. The data is unpacked to zvals later, during every row fetch. However, this way max_length won't be calculated correctly. So, if a mysqlnd_fetch_field(_direct) call comes we need to unpack everything and then calculate max_length...and that is expensive, defies our lazy unpacking optimisation.
* - MFH: Removed UG(unicode) checksFelipe Pena2009-03-301-9/+5
|
* MFH Fix #47819 (Getting pdo_mysql.so: undefined symbol: mysqlnd_debug_init atJohannes Schlüter2009-03-301-1/+1
| | | | | startup)
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH:Andrey Hristov2008-11-061-8/+8
| | | | | | Get rid of many defines (which simplifies the code a lot), as well as uint->unsigned int
* MFH:Andrey Hristov2008-09-121-9/+9
| | | | | | | | - More statistics - Fixed endless loop - mysqlnd_stmt_next_result() returned FAIL but as it is defined to be 1 (and PASS is 0), checking for mysqlnd_stmt_more_result() was successful although we were expecting a FAIL.
* - MFH: Added TSRMLS_DC to apply_func_args_t and zend_hash_apply_with_arguments.Felipe Pena2008-07-241-12/+7
|
* - MFH: Fix Windows buildJohannes Schlüter2008-04-231-1/+1
|
* Fix memory leakAndrey Hristov2008-02-201-1/+4
|
* Another fixAndrey Hristov2008-02-141-8/+8
|
* Update mysqlnd - fix bg_storeAndrey Hristov2008-02-141-1/+45
|
* cvs syncAndrey Hristov2008-02-111-2/+4
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* Import mysqlndAndrey Hristov2007-10-051-0/+1345
Patch ext/mysql and ext/mysqli to support mysqlnd