php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71494 Loop whiThe loop and enter information on the type blob sub_type text fields
Submitted: 2016-02-01 19:48 UTC Modified: 2016-11-06 16:17 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: flaviotpd at gmail dot com Assigned: ab (profile)
Status: Closed Package: PDO Firebird
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
 [2016-02-01 19:48 UTC] flaviotpd at gmail dot com
Description:
------------
The loop and enter information on the type blob sub_type text fields using "PDO_FIREBIR" and / or "ibase" the system is lost.



Test script:
---------------
Script to create the database table "Firebird"
CREATE TABLE TESTE (CAMPO  BLOB SUB_TYPE 1 SEGMENT SIZE 4096);

Script PHP
$con = new PDO("firebird:dbname=...".$base,"SYSDBA","masterkey");
    $valor = 'asdfghijklmnopqrstuvxwyz';
    for($i = 0; $i <= 1; $i ++){
        echo $i;
        
        $valor += $i;
        
        $ins = $con->prepare("INSERT INTO TESTE( CAMPO ) VALUES (:CAMPO)");
        $ins->bindParam(":CAMPO", $valor );
        $ins->execute();
    }

Expected result:
----------------
Insert three records in the table TESTE

Actual result:
--------------
PHP hangs and does not insert the resgistros.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-06 16:17 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2016-11-06 16:17 UTC] ab@php.net
Fixed through https://github.com/php/php-src/pull/2183/

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC