Bug #71494 [Opn->Csd]: Loop whiThe loop and enter information on the type blob sub_type text fields

From: Date: Sun, 06 Nov 2016 16:17:31 +0000
Subject: Bug #71494 [Opn->Csd]: Loop whiThe loop and enter information on the type blob sub_type text fields
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205204@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71494&edit=1

 ID:                 71494
 Updated by:         ab@php.net
 Reported by:        flaviotpd at gmail dot com
 Summary:            Loop whiThe loop and enter information on the type
                     blob sub_type text fields
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            PDO Firebird
 Operating System:   Windows
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        ab
 Block user comment: N
 Private report:     N

 New Comment:

Fixed through https://github.com/php/php-src/pull/2183/

Thanks.


Previous Comments:
------------------------------------------------------------------------
[2016-02-01 19:48:17] 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.


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=71494&edit=1


Thread (2 messages)

« previous php.bugs (#205204) next »