Bug #72570 [Asn->Csd]: Segmentation fault when binding parameters on a query without placeholders

From: Date: Sun, 10 Jul 2016 12:40:33 +0000
Subject: Bug #72570 [Asn->Csd]: Segmentation fault when binding parameters on a query without placeholders
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202173@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72570&edit=1 ID: 72570 Updated by: mbeccati@php.net Reported by: mbeccati@php.net Summary: Segmentation fault when binding parameters on a query without placeholders -Status: Assigned +Status: Closed Type: Bug Package: PDO PgSQL Operating System: Any PHP Version: 7.0.8 Assigned To: mbeccati Block user comment: N Private report: N New Comment: Automatic comment on behalf of mbeccati Revision: http://git.php.net/?p=php-src.git;a=commit;h=4d677ae0e2465188f59ec9226ee16011692286c8 Log: Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders Previous Comments: ------------------------------------------------------------------------ [2016-07-10 11:25:05] mbeccati@php.net Description: ------------ Running a query without placeholders and binding one or more parameters results in a segmentation fault. Since 7.0.8: https://github.com/php/php-src/commit/66ad4fc393d687f4ca255dd3788529856942bbaa Test script: --------------- $db = new PDO("..."); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $stmt = $db->prepare("SELECT 1"); try { $stmt->execute([1]); } catch (PDOException $e) { var_dump($e->getCode()); } Expected result: ---------------- string(5) "08P01" Actual result: -------------- Termsig=11 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72570&edit=1

« previous php.bugs (#202173) next »