Nikita Popov
3d7284d09e
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-10 21:21:11 +02:00
Nikita Popov
6c9db02ff7
Fix mysqlnd build without openssl
...
Cherry-pick of 968eb0b38c
, as these
changes were also introduced in lower branches.
2018-06-10 21:20:28 +02:00
Anatol Belski
c79af09bc6
Add check for variable size array feature
...
Usage of VLA is not portable, wile supported by some compilers. For
instance, GCC supports it even if -std=c89 is passed. Even if we would
switch to C99, it would be still not portable at least with VC++. Thus,
adding a centralized check so such code can be guarded and moved to
alloca() if needed.
2018-06-09 20:27:16 +02:00
Nikita Popov
968eb0b38c
Fix mysqlnd build without openssl
2018-06-09 11:04:40 +02:00
Anatol Belski
7bef16c37b
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix VC compilation as variable size array is not supported
NEWS for 7.2.8
2018-06-06 11:21:11 +02:00
Anatol Belski
0bafb530d6
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix VC compilation as variable size array is not supported
Fix MySQL 8 auth
2018-06-06 11:14:15 +02:00
Anatol Belski
f96df64cb2
Fix VC compilation as variable size array is not supported
2018-06-06 11:13:28 +02:00
Johannes Schlüter
cb5c1fbe10
Merge branch 'master' of git.php.net:/php-src
2018-06-06 00:25:01 +02:00
Johannes Schlüter
84f6f693e7
Merge branch 'PHP-7.1'
2018-06-06 00:24:19 +02:00
Johannes Schlüter
d6e81f0bfd
Fix MySQL 8 auth
2018-06-06 00:17:34 +02:00
Dmitry Stogov
5eb1f92f31
Use zend_string_release_ex() instread of zend_string_release() in places, where we sure about string persistence.
2018-05-28 16:27:12 +03:00
Dmitry Stogov
4ad9cf4605
Bit test optimization
2018-05-08 11:58:17 +03:00
Dmitry Stogov
c88be6aee1
Bit check micro-optimization
2018-04-28 14:13:12 +03:00
Johannes Schlüter
9881cb3945
Fix initialisation order
2018-02-20 23:35:57 +01:00
Johannes Schlüter
64ba5d4a06
Merge branch 'PHP-7.2'
2018-02-20 23:33:01 +01:00
Johannes Schlüter
2577cdbea2
Merge branch 'PHP-7.1' into PHP-7.2
2018-02-20 23:32:25 +01:00
Johannes Schlüter
74ed42c169
Fix a memleak with mysqlnd and SSL
2018-02-20 23:28:23 +01:00
Johannes Schlüter
b35a64bf62
Merge branch 'PHP-7.2'
2018-02-20 23:20:55 +01:00
Johannes Schlüter
1c98955d0f
Merge branch 'PHP-7.1' into PHP-7.2
2018-02-20 23:20:28 +01:00
Johannes Schlüter
e3cf72b829
Merge branch 'PHP-7.0' into PHP-7.1
2018-02-20 23:20:02 +01:00
Johannes Schlüter
8f3c29aee1
Fix negotiaton of MySQL auth plugin
2018-02-20 23:13:03 +01:00
Gabriel Caruso
6400264856
Trailing whitespaces
...
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
2018-01-03 14:38:00 +01:00
Xinchen Hui
a6519d0514
year++
2018-01-02 12:57:58 +08:00
Xinchen Hui
7a7ec01a49
year++
2018-01-02 12:55:14 +08:00
Xinchen Hui
ccd4716ec7
year++
2018-01-02 12:53:31 +08:00
Dmitry Stogov
b864e6b58c
Move constants into read-only data segment
2017-12-15 01:55:00 +03:00
Dmitry Stogov
3f4a13095e
Cleanup type conversion
2017-12-07 22:01:41 +03:00
Dmitry Stogov
7067f7ccb4
Fixed incorrect buffer reallocation
2017-11-30 13:54:24 +03:00
Nikita Popov
26f8fc833b
Enable and fix printf() format warnings
...
Add _unchecked() variants of zend_spprintf and zend_strpprintf for
cases where we specifically want to disable these checks, such as
use of %H.
2017-11-16 21:15:36 +01:00
Dmitry Stogov
6bcace1b72
Use single memory pool for result metadata and result set.
2017-11-15 14:07:09 +03:00
Dmitry Stogov
e2c9dfb5de
Cleanup. Make difference between MYSQLND_ROW_BUFFER and MYSQLND_MEMORY_POOL_CHUNK (the last one is completely removed).
2017-11-15 11:33:32 +03:00
Dmitry Stogov
de5cc9017e
Use better buffer reallocation strategy
2017-11-15 02:44:34 +03:00
Dmitry Stogov
e4a7d31b09
Merged allocations
2017-11-15 02:13:16 +03:00
Dmitry Stogov
e176e2d0ef
Merge branch 'master' of git.php.net:php-src
...
* 'master' of git.php.net:php-src:
Try to fix AppVeyor build
Reduce sleep intervals in basic sleep tests
Initialize jit global
Fix wrong return
Clarify bin_to_readable code
2017-11-15 00:54:35 +03:00
Dmitry Stogov
69462bdf4c
Embeded zend_list into st_mysqlnd_error_info, to avoid extra allocation/deallocation.
2017-11-15 00:53:51 +03:00
Nikita Popov
b08253a7a0
Try to fix AppVeyor build
...
Performing arithmetic on void pointers is a GCC extension.
2017-11-14 22:31:34 +01:00
Dmitry Stogov
492bc8ea57
Use mnd_emalloc/mnd_efree
2017-11-14 23:34:06 +03:00
Dmitry Stogov
f1f1f63ce1
Reimplemented MYSQLND_MEMORY_POOL to avoid allocations ouside of pool. Store all data related to result set in the pool.
2017-11-14 23:08:29 +03:00
Dmitry Stogov
4d5330fbe1
Run mysqlmd commands in one step (without separate create/run/free).
2017-11-14 17:32:41 +03:00
Dmitry Stogov
3077a14aea
Use mnd_erealloc()
2017-11-14 16:19:44 +03:00
Dmitry Stogov
148641980c
Merge mysqlnd_field_hash_key structure into st_mysqlnd_field.
2017-11-14 16:14:13 +03:00
Dmitry Stogov
93334b5fc2
Use stack-allocated packets.
2017-11-14 15:10:27 +03:00
Dmitry Stogov
5f47ce9127
last_message is always allocated in Zend MM heap
2017-11-02 23:24:40 +03:00
Dmitry Stogov
a7305eb539
Made "result", "statement" and "last_message" to always use Zend MM heap. (even for persistent connections these entities don't relive request boundary)
2017-11-02 03:27:25 +03:00
Dmitry Stogov
fd57ee8931
Mark persistent connection related data as "thread-local".
2017-11-01 15:21:21 +03:00
Peter Kokot
13f3bd9172
Convert some mysqlnd file encodings to UTF-8
2017-10-19 11:46:54 +01:00
Dmitry Stogov
272f5a1716
Extend zend_string API to avoid reallocation in zend_string_init_interned()
2017-10-19 00:02:56 +03:00
Dmitry Stogov
1dd224dd12
Reuse interned strings from opcache SHM, if possible.
2017-10-16 19:20:16 +03:00
Anatol Belski
756aaaf806
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed bug #75018 , fixed bug #75177
2017-09-13 14:12:53 +02:00
Anatol Belski
b134793b32
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #75018 , fixed bug #75177
2017-09-13 14:12:31 +02:00