]> granicus.if.org Git - php/commit
Fix #76665: SQLite3Stmt::bindValue() with SQLITE3_FLOAT doesn't juggle
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 26 Jul 2018 11:15:19 +0000 (13:15 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 26 Jul 2018 11:15:19 +0000 (13:15 +0200)
commited7e3bc70a89a0838a5b7e44928cbd65aec50bb1
treedef9f623a82f74cc19ce27ca7ba55ea4760f8711
parent40bd84d3e3d3fefdc16c10319e35fcfea359054a
Fix #76665: SQLite3Stmt::bindValue() with SQLITE3_FLOAT doesn't juggle

We need to ensure that a zval IS_DOUBLE before we access it as such.
In this case we apply common type juggling to do so.
NEWS
ext/sqlite3/sqlite3.c
ext/sqlite3/tests/bug76665.phpt [new file with mode: 0644]