Bug #70636 [Opn->Fbk]: Throw exception when using params bind on limit statment
| From: | requinix@php.net | Date: | Mon, 05 Oct 2015 18:46:32 +0000 |
| Subject: | Bug #70636 [Opn->Fbk]: Throw exception when using params bind on limit statment | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196411@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70636&edit=1
ID: 70636
Updated by: requinix@php.net
Reported by: xcoolcc at gmail dot com
Summary: Throw exception when using params bind on limit
statment
-Status: Open
+Status: Feedback
Type: Bug
Package: PDO MySQL
Operating System: Linux 64bit
PHP Version: 5.6.14
Block user comment: N
Private report: N
New Comment:
Did you disable emulated prepares? Enable the exception error reporting mode? And is your bug report
about it throwing an exception when you think it should not, or not throwing an exception when you
think it should?
Previous Comments:
------------------------------------------------------------------------
[2015-10-04 16:22:56] xcoolcc at gmail dot com
Description:
------------
Throw exception when using params bind on limit statment
Test script:
---------------
$sql = "SELECT * FROM
users LIMIT :APL";
$stmt = $pdo->prepare($sql);
$stmt->execute(['APL'=>1]);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70636&edit=1