Bug #72571 [Opn->Ver]: SQLite3::bindValue, SQLite3::bindParam crash

From: Date: Mon, 11 Jul 2016 01:21:00 +0000
Subject: Bug #72571 [Opn->Ver]: SQLite3::bindValue, SQLite3::bindParam crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202181@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72571&edit=1 ID: 72571 Updated by: cmb@php.net Reported by: dedlegprod at gmail dot com Summary: SQLite3::bindValue, SQLite3::bindParam crash -Status: Open +Status: Verified Type: Bug Package: SQLite related Operating System: Linux (Arch) PHP Version: 7.0.8 Block user comment: N Private report: N New Comment: Confirmed: <https://3v4l.org/hXF48>. Previous Comments: ------------------------------------------------------------------------ [2016-07-10 20:34:51] dedlegprod at gmail dot com Description: ------------ Hello! I'm using archlinux, php 7.0.8 and sqlite3 module version => 0.7-dev, library => 3.13.0. I'm getting crash in SQLite3::bindValue and SQLite3::bindParam. The crash seems to occur when invalid index is passed. Test script: --------------- <?php $db = new SQLite3("./test.db"); $stmt = $db->prepare("select 1, 2, 3 from sqlite_master where 1 = ?"); // bindParam crash $i = 0; $stmt->bindParam(0, $i); // bindValue crash $stmt->bindParam(0, 1); // not reached $stmt->execute(); $db->close(); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72571&edit=1

« previous php.bugs (#202181) next »