com php-src: Merge branch 'PHP-5.6' into PHP-7.0: NEWS ext/sqlite3/sqlite3.c
| From: | Christoph Michael Becker | Date: | Mon, 17 Oct 2016 21:38:28 +0000 |
| Subject: | com php-src: Merge branch 'PHP-5.6' into PHP-7.0: NEWS ext/sqlite3/sqlite3.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95180@lists.php.net to get a copy of this message | ||
Commit: 0b596f81b8f151969898c040db41bbb7c64c275a
Author: Christoph M. Becker <cmbecker69@gmx.de> Mon, 17 Oct 2016 23:37:00 +0200
Parents: f85cc6aead25f6b44d0843487cf2aeb63c51a8a0 86e603a664afdc3a12ead0eaca5d37fa8a379381
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0b596f81b8f151969898c040db41bbb7c64c275a
Log:
Merge branch 'PHP-5.6' into PHP-7.0
We also use ZEND_LONG_(MAX|MIN) now instead of LONG_(MAX|MIN).
Changed paths:
MM NEWS
MM ext/sqlite3/sqlite3.c
Diff:
diff --cc NEWS
index c9c8543,6db7d29..1136fc0
--- a/NEWS
+++ b/NEWS
@@@ -17,30 -9,17 +17,33 @@@ PH
. Fixed bug #73279 (Integer overflow in gdImageScaleBilinearPalette()). (cmb)
. Fixed bug #73280 (Stack Buffer Overflow in GD dynamicGetbuf). (cmb)
+- OCI8
+ . Fixed bug #71148 (Bind reference overwritten on PHP 7). (Oracle Corp.)
+
+- phpdbg:
+ . Properly allow for stdin input from a file. (Bob)
+ . Add -s command line option / stdin command for reading script from stdin.
+ (Bob)
+ . Ignore non-executable opcodes in line mode of phpdbg_end_oplog(). (Bob)
+ . Fixed bug #70776 (Simple SIGINT does not have any effect with -rr).. (Bob)
+ . Fixed bug #71234 (INI files are loaded even invoked as -n --version). (Bob)
+
+- Session:
+ . Fixed bug #73273 (session_unset() empties values from all variables in which
+ is $_session stored).. (Nikita)
+
- SOAP:
. Fixed bug #73037 (SoapServer reports Bad Request when gzipped). (Anatol)
+ . Fixed bug #73237 (Nested object in "any" element overwrites other fields).
+ (Keith Smiley)
+ - SQLite3:
+ . Fixed bug #73333 (2147483647 is fetched as string). (cmb)
+
- Standard:
. Fixed bug #73203 (passing additional_parameters causes mail to fail). (cmb)
- . Fixed bug #73188 (use after free in userspace streams). (Sara)
-13 Oct 2016, PHP 5.6.27
+13 Oct 2016 PHP 7.0.12
- Core:
. Fixed bug #73025 (Heap Buffer Overflow in virtual_popen of
diff --cc ext/sqlite3/sqlite3.c
index 9c14dab,80d6b89..23d0b97
--- a/ext/sqlite3/sqlite3.c
+++ b/ext/sqlite3/sqlite3.c
@@@ -577,15 -588,24 +577,22 @@@ PHP_METHOD(sqlite3, query
}
/* }}} */
-static zval* sqlite_value_to_zval(sqlite3_stmt *stmt, int column) /* {{{ */
+static void sqlite_value_to_zval(sqlite3_stmt *stmt, int column, zval *data) /* {{{ */
{
- zval *data;
+ sqlite3_int64 val;
+
- MAKE_STD_ZVAL(data);
switch (sqlite3_column_type(stmt, column)) {
case SQLITE_INTEGER:
- if ((sqlite3_column_int64(stmt, column)) >= INT_MAX || sqlite3_column_int64(stmt, column)
<= INT_MIN) {
+ val = sqlite3_column_int64(stmt, column);
+ #if LONG_MAX <= 2147483647
- if (val > LONG_MAX || val < LONG_MIN) {
- ZVAL_STRINGL(data, (char *)sqlite3_column_text(stmt, column), sqlite3_column_bytes(stmt,
column), 1);
++ if (val > ZEND_LONG_MAX || val < ZEND_LONG_MIN) {
+ ZVAL_STRINGL(data, (char *)sqlite3_column_text(stmt, column), sqlite3_column_bytes(stmt,
column));
} else {
- ZVAL_LONG(data, sqlite3_column_int64(stmt, column));
+ #endif
+ ZVAL_LONG(data, val);
+ #if LONG_MAX <= 2147483647
}
+ #endif
break;
case SQLITE_FLOAT: