Bug #72571 [NEW]: SQLite3::bindValue, SQLite3::bindParam crash
| From: | dedlegprod at gmail dot com | Date: | Sun, 10 Jul 2016 20:34:54 +0000 |
| Subject: | Bug #72571 [NEW]: SQLite3::bindValue, SQLite3::bindParam crash | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-202178@lists.php.net to get a copy of this message | ||
From: dedlegprod at gmail dot com
Operating system: Linux (Arch)
PHP version: 7.0.8
Package: SQLite related
Bug Type: Bug
Bug description:SQLite3::bindValue, SQLite3::bindParam crash
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 bug report at https://bugs.php.net/bug.php?id=72571&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72571&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72571&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72571&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72571&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72571&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72571&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72571&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72571&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72571&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72571&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72571&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72571&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72571&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72571&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72571&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72571&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72571&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72571&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72571&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72571&r=mysqlcfg