php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72570 Segmentation fault when binding parameters on a query without placeholders
Submitted: 2016-07-10 11:25 UTC Modified: 2016-07-10 11:28 UTC
From: mbeccati@php.net Assigned: mbeccati (profile)
Status: Closed Package: PDO PgSQL
PHP Version: 7.0.8 OS: Any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mbeccati@php.net
New email:
PHP Version: OS:

 

 [2016-07-10 11:25 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-10 11:28 UTC] mbeccati@php.net
-Assigned To: +Assigned To: mbeccati
 [2016-07-10 11:28 UTC] mbeccati@php.net
-PHP Version: 7.0.9RC1 +PHP Version: 7.0.8
 [2016-07-10 12:40 UTC] mbeccati@php.net
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
 [2016-07-10 12:40 UTC] mbeccati@php.net
-Status: Assigned +Status: Closed
 [2016-07-14 10:11 UTC] ab@php.net
Automatic comment on behalf of mbeccati
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0f182c2495f3aa84aed76485a4406b383c77c785
Log: Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders
 [2016-07-19 08:39 UTC] stas@php.net
Automatic comment on behalf of mbeccati
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0f182c2495f3aa84aed76485a4406b383c77c785
Log: Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders
 [2016-07-19 08:55 UTC] stas@php.net
Automatic comment on behalf of mbeccati
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0f182c2495f3aa84aed76485a4406b383c77c785
Log: Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders
 [2016-07-20 11:29 UTC] davey@php.net
Automatic comment on behalf of mbeccati
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0f182c2495f3aa84aed76485a4406b383c77c785
Log: Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders
 [2016-07-20 11:30 UTC] davey@php.net
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
 [2016-10-17 10:11 UTC] bwoebi@php.net
Automatic comment on behalf of mbeccati
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0f182c2495f3aa84aed76485a4406b383c77c785
Log: Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders
 [2016-10-17 10:11 UTC] bwoebi@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC