summaryrefslogtreecommitdiff
path: root/ext/mysqlnd
Commit message (Collapse)AuthorAgeFilesLines
* decouple the methods in MYSQLND_STMT from the data,Andrey Hristov2010-03-165-161/+179
| | | | | | | | needed to move to a new structure MYSQLND_STMT. Makes the code cleaner and less error-prone. Also fix PDO/MySQL which directly touch mysqlnd internals instead of using API calls.
* allow persistency of PSAndrey Hristov2010-03-1210-124/+134
|
* Fixed bug #51242 (Empty mysql.default_port does not default to 3306 anymore, ↵Adam Harvey2010-03-091-3/+4
| | | | but 0).
* Fix the text. Correct english and a bit shorter.Andrey Hristov2010-02-241-4/+4
|
* add better description to the problemAndrey Hristov2010-02-241-1/+5
|
* add typedefs for all structure methods, and then reuse these typedefsAndrey Hristov2010-02-151-165/+338
|
* make send_close a hook, tooAndrey Hristov2010-02-092-7/+7
|
* Pass tsrmls to all functions, which might need it in the future.Andrey Hristov2010-02-036-142/+122
| | | | | | We are anyway breaking the internal ABI in 5.3.2 so this won't hurt and make us prepared for the future.
* Fix second bug in that code, + instead of += thus not increasingAndrey Hristov2010-02-011-1/+1
| | | | | | a pointer and mangling data. Again, ext/mysql and ext/mysqli doesn't have access to this codepath.
* Fix a bug in mysqlnd where a pointer was not incrementedAndrey Hristov2010-02-011-0/+1
| | | | | | | | 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.
* decrement correctly!Andrey Hristov2010-01-211-2/+4
|
* Add possibility to restrain the number of levelsAndrey Hristov2010-01-212-7/+25
|
* Fix possible lock-ups when a trigger triggers a trigger.Andrey Hristov2010-01-191-37/+16
| | | | | | | Hanging was possible on the subsequent try to acquire a mutex. Now it is correctly implemented and if a trigger is being executed then no other trigger will be fired, on recursive calls.
* Make it GCC only feature (tracing). VC7 and up do the workAndrey Hristov2010-01-191-1/+1
| | | | | too and it might be tweaked later.
* fix windowsAndrey Hristov2010-01-191-0/+13
|
* Fix compiler warning, copy&paste errorAndrey Hristov2010-01-141-1/+1
|
* Fix compiler warningAndrey Hristov2010-01-141-1/+1
|
* remove redefinition of bit_uint8korrAndrey Hristov2010-01-141-10/+0
|
* more PHPAPI for phpize-d buildsAndrey Hristov2010-01-131-8/+8
|
* export more functionality for phpize buildsAndrey Hristov2010-01-1311-34/+35
|
* make mysqlnd's tracing API more reusableAndrey Hristov2010-01-135-41/+73
|
* more typedef cosmeticsAndrey Hristov2010-01-112-14/+14
|
* remove stale exportAndrey Hristov2010-01-111-2/+0
|
* cosmetics. typedef-ed types should be in capital caseAndrey Hristov2010-01-118-133/+131
|
* remove extern defintion of a variable that is no moreAndrey Hristov2010-01-112-6/+3
| | | | | | used outside of the file where it is declared. Also really export with PHPAPI the protocol init/deinit functions
* this function should be exporten in all cases, not only under PHP6Andrey Hristov2010-01-112-1/+3
|
* missed to commit in 5_3, here it comes, reusability of statsAndrey Hristov2010-01-111-1/+1
|
* and another change to make the stats API re-usableAndrey Hristov2010-01-113-13/+9
|
* Rework the statistics macros to be reusable by external entities.Andrey Hristov2010-01-114-141/+94
| | | | | | Rename handlers to triggers. Dynamically allocate space for the statistics thus allow reusability.
* Add the remaining code for statistics triggersAndrey Hristov2010-01-083-9/+45
|
* export some calls to init/deinit code outside of the moduleAndrey Hristov2010-01-085-10/+10
|
* improve the stats subsystem. Reduce the number of macro definitionsAndrey Hristov2010-01-088-193/+156
| | | | | | 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-085-11/+64
|
* Change of way the packet objects are created/initialisedAndrey Hristov2010-01-079-176/+388
| | | | | | | | 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.
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-032-2/+2
|
* move network creation to the init hookAndrey Hristov2009-12-282-5/+21
|
* Unify. The typedef-ed structs in mysqlnd are always capitalized.Andrey Hristov2009-12-232-12/+12
|
* install mysqlnd headers to allow shared build of extensionsJohannes Schlüter2009-12-221-0/+1
|
* Fix double calls to free_contents if the connection cannot beAndrey Hristov2009-12-221-2/+3
| | | | | | opened. mysqlnd have no probs, external code should not have too. In any case, double call is not needed.
* move state setting to the right place, in mysqlnd_init, no moreAndrey Hristov2009-12-221-2/+2
| | | | | in mysqlnd::connect
* Move this function to MYSQLND_NET as it works on theAndrey Hristov2009-12-215-54/+53
| | | | | php stream
* magic numbers to macrosAndrey Hristov2009-12-211-18/+20
|
* Move compression and decompression code to separate functionsAndrey Hristov2009-12-212-19/+49
| | | | | which can be overloaded on purpose.
* refactoring : move more network related functions toAndrey Hristov2009-12-174-364/+365
| | | | | | | mysqlnd_net.c . Now communication is split on two levels: - logical (functions send and receive) - physical (functions network_read and network_write)
* During refactoring of the function mysqlnd_stream_write_w_header() it wasAndrey Hristov2009-12-171-91/+47
| | | | | | | | | | 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);'
* call free_contents in every case, in case something is not freedAndrey Hristov2009-12-161-0/+1
| | | | | by the calling code
* Remove unneeded dereferencesAndrey Hristov2009-12-161-14/+6
|
* move MYSQLND_NET code to a separate file.Andrey Hristov2009-12-167-285/+352
| | | | | | mysqlnd_wireprotocol is about the protocol not the transport layer
* remove duplicated codeAndrey Hristov2009-12-151-8/+2
|
* Move code out of mysqlnd_conn::connect to mysqlnd_net::connect.Andrey Hristov2009-12-153-76/+96
| | | | | | Thus mysqlnd_conn::connect() does less of what it should not do - think about the transport level.