summaryrefslogtreecommitdiff
path: root/ext/mysqlnd
Commit message (Collapse)AuthorAgeFilesLines
...
* remove C++ commentsAndrey Hristov2009-12-151-2/+2
|
* export this functionAndrey Hristov2009-12-152-2/+2
|
* refactor: move code that belongs to MYSQLND_NET out of MYSQLNDAndrey Hristov2009-12-153-98/+152
|
* - fix build, come on, it is not that hard to test before commit, is it?Pierre Joye2009-12-111-1/+3
|
* Make MYSQLND_NET dynamically allocated structure with allocatorAndrey Hristov2009-12-114-93/+136
| | | | | and deallocator. More member functions will come.
* remove stale commentAndrey Hristov2009-12-111-1/+0
|
* Move two functions which are used in the extension as methods ofAndrey Hristov2009-12-116-111/+100
| | | | | the connection. Two functions less in the global namespace.
* bump version numberAndrey Hristov2009-12-101-2/+2
|
* Add plugin storage for MYSQLND_STMT tooAndrey Hristov2009-12-103-2/+19
|
* Remove stub code which never actually was used for anything.Andrey Hristov2009-12-097-187/+1
| | | | | Things like this can be built on top of the core.
* Remove the zval caching from mysqlnd. It was disabled versions agoAndrey Hristov2009-12-0913-891/+68
| | | | | | due to problems on windows, which were not debugged. Better have code that is disabled not in the core.
* Fix compilation warningsAndrey Hristov2009-12-091-41/+38
|
* Remove disabled code - threaded fetching. This can be implementedAndrey Hristov2009-12-099-796/+2
| | | | | | on a upper level and by offloading it we reduce the complexity of the core.
* I svn-commit.2.tmp (Modified) ↵Andrey Hristov2009-12-031-3/+1
| | | | | | | | Row 2 Col 28 11:45 Ctrl-K H for help fix compilation on windows and with other compilers who don't like void* arithmetic
* - disable this debug code until it is actually fixedPierre Joye2009-12-031-0/+2
|
* fix segfault introduced by Pierre in a recent commitAndrey Hristov2009-12-031-1/+1
| | | | | | | | old code was doing something like conn + sizeof(MYSQLND) * MYSQLND + plugin * sizeof(void) * sizeof(MYSQLND) because `conn` is not casted to void*. `conn` has to be casted to void * and then the whole experession will be void * and the calculations will work.
* fix macro so that 5-byte BIT values are decoded correctlyAndrey Hristov2009-12-021-4/+4
|
* - void is NaN, you can't do math ops on void. Declarations go first. Fix TS ↵Pierre Joye2009-11-303-3/+3
| | | | build
* fix debug windows build as well as remove a compilation warningAndrey Hristov2009-11-264-4/+5
| | | | | (a header not included)
* Update charset tableAndrey Hristov2009-11-241-3/+43
|
* Compressed protocol support + extensibility for mysqlndAndrey Hristov2009-11-2015-353/+840
|
* Fix: log slow queries in stats regardless of mysqlnd.log_mask setting.Ulf Wendel2009-10-231-1/+1
|
* Don't forget to update the length tooAndrey Hristov2009-10-221-0/+1
|
* Have the lengths also to skip many calls to strlenAndrey Hristov2009-10-222-2/+25
|
* Updating mysqlnd version number.Ulf Wendel2009-10-221-2/+2
|
* Fixing stats, updating test to accept new statsUlf Wendel2009-10-221-1/+0
|
* Move definitionAndrey Hristov2009-10-222-8/+9
|
* Count number of affected_rows for normal and PS queriesAndrey Hristov2009-10-224-1/+15
|
* Fixing host info for TCP/IP and aligning mysqlnd and libmysqlUlf Wendel2009-10-191-3/+4
|
* Extending mysqlnd statistics/monitoring. Now counting COM_* commands.Ulf Wendel2009-10-163-1/+61
|
* Making mysqlnd emit no warnings when fetching pooled persistent connections ↵Ulf Wendel2009-10-154-7/+8
| | | | that have timed out or are unusable for any other reason - bug #49761
* Fixing problems when calling connect (again and again) on a valid connection ↵Ulf Wendel2009-10-152-3/+15
| | | | handle. Most of the patch comes from Andrey.
* Avoid buffer resizing and let the initial buffer allocation happen a couple ↵Ulf Wendel2009-10-081-2/+0
| | | | of lines later with conn->m->set_client_option(conn, MYSQLND_OPT_NET_CMD_BUFFER_SIZE, ...). Andrey, I leave it to you to change the default size to 128k.
* Fixing pconnect statistics.Ulf Wendel2009-10-081-3/+2
|
* Increase the minimal size of the command buffer, which is usedAndrey Hristov2009-10-073-3/+20
| | | | | | for sending queries and in the future commpressed patch for reading almost all packets from the wire instead of using stack buffers.
* revert the last changeAndrey Hristov2009-10-062-5/+0
|
* count the queriesAndrey Hristov2009-10-062-0/+5
|
* Fix ZTS buildAndrey Hristov2009-09-305-21/+23
|
* Use mnd_ wrappers wherever possible. Needed forAndrey Hristov2009-09-306-27/+33
| | | | | statistics.
* Fix trace output. DBG_RETURN should be used in tracedAndrey Hristov2009-09-301-2/+2
| | | | | functions.
* Fixing a leak in mysqlnd when passing invalid fetch modes to mysqlnd.Ulf Wendel2009-09-301-15/+4
|
* - fix TS build, this macro contains code and declaration, always put it ↵Pierre Joye2009-09-281-2/+2
| | | | right after your declaration
* Fix possible crash when conn is NULLAndrey Hristov2009-09-251-1/+1
|
* - Fix the build issue with php_mysqlnd_config.h ending up in wrong build ↵Jani Taskinen2009-09-242-7/+7
| | | | directory
* Fixed compilation errorDmitry Stogov2009-09-231-0/+4
|
* sync with branch, after Ulf's commitsAndrey Hristov2009-09-221-1/+3
|
* Check for the different types and create the Andrey Hristov2009-09-221-3/+4
| | | | | | corresponding configuration file, so it can be used by mysqli, even if mysqlnd is not enabled at all.
* Afix not included by the fix committed by Ulf.Andrey Hristov2009-09-171-1/+1
| | | | | | | pemalloc and then efree - too bad! Sorry for committing in two passes, my big tree is already patched with compressed.
* Fix (by Andrey) and test for bug #49442 . Don't use efree() for memory ↵Ulf Wendel2009-09-163-7/+9
| | | | 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.
* Fix and tests for bug #49511 . mysqlnd and the MySQL Client Library ↵Ulf Wendel2009-09-163-0/+7
| | | | (libmysql) use different networking APIs. mysqlnd does use PHP streams whereas libmysql uses its own wrapper of the operating level network calls. PHP sets by default a read timeout of 60s for streams - php.ini, default_socket_timeout. This default applies to all streams that set no other timeout value. mysqlnd has not set any other value and therefore it connections of long running queries can have been cut off after default_socket_timeout seconds resulting in a 2006 - MySQL Server has gone away error message. The MySQL Client Library sets a default timeout of 365 * 24 * 3600 seconds (1year) and waits for other timeouts to happen, e.g. TCP/IP timeouts. mysqlnd now uses the same very long timeout. The value is configurable through a new php.ini setting: mysqlnd.net_read_timeout. mysqlnd.net_read_timeout gets used by any extension (ext/mysql, ext/mysqli, PDO_MySQL) that uses mysqlnd. mysqlnd tells PHP Streams to use mysqlnd.net_read_timeout. Please note that there may be subtle differences between MYSQL_OPT_READ_TIMEOUT from the MySQL Client Library and PHP Streams. E.g. MYSQL_OPT_READ_TIMEOUT is documented to work only for TCP/IP connections and, prior to MySQL 5.1.2, only for Windows. PHP streams may not have this limitation. Please check the streams documentation, if in doubt.