summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_debug.c
Commit message (Collapse)AuthorAgeFilesLines
* bump yearXinchen Hui2013-01-061-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* - fix buildPierre Joye2010-11-151-13/+13
|
* - More features for the profiling, create aggregates and dump themAndrey Hristov2010-10-291-37/+168
| | | | | | | | | | | 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 ':' )
* rename and remove usage of inttypes.h, not neededAndrey Hristov2010-10-251-1/+0
|
* profiling in trace modeAndrey Hristov2010-10-221-4/+34
|
* fix some uninitialized variables. also fix shadowing of global symbolsAndrey Hristov2010-10-071-3/+3
|
* WS fixesAndrey Hristov2010-09-231-3/+3
|
* small macro fixAndrey Hristov2010-09-221-3/+3
|
* Switch from using PHP_MAJOR_VERSION to separate define forAndrey Hristov2010-08-121-1/+1
| | | | | | unicode. Unicode is no more, but these are "bookmarks" where to change mysqlnd, if Unicode becomes trendy again.
* Fix sprintf modifiers all around the place. In most casesAndrey Hristov2010-06-211-3/+3
| | | | | | %u should be used. Where size_t is used then MYSQLND_SZ_T_SPEC should be the modifier
* Fix crashes in the allocator in case of OOM.Andrey Hristov2010-05-271-4/+4
|
* Fix shared buildAndrey Hristov2010-05-251-1/+1
|
* When OOM hits the wire, don't crash.Andrey Hristov2010-05-211-7/+7
|
* Add possibility to control the allocator in when PHP is compiledAndrey Hristov2010-05-041-10/+110
| | | | | with debug
* Fix compiler warnings - unused functionsAndrey Hristov2010-05-031-54/+41
|
* Change the way the allocator is called - through an abstractionAndrey Hristov2010-04-221-0/+165
| | | | | | to give the possibility of pluggability. Thanks to the macros already used the changes are not pervasive.
* - Fix copyrightsFelipe Pena2010-04-201-2/+2
|
* More int/uint comparison warning fixesAndrey Hristov2010-04-151-2/+2
|
* CS + WS changesAndrey Hristov2010-04-151-25/+20
|
* Fix the Windows build (void* arithmetic) as well as --disable-zlibAndrey Hristov2010-04-061-9/+9
| | | | | build.
* Stricly CAndrey Hristov2010-04-061-3/+3
|
* Recommit with an Windows build fix:Andrey Hristov2010-04-061-96/+135
| | | | | | | | | | | | 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-135/+96
| | | | 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-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