php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71418 The loop and enter information on the type blob sub_type text fields db firebir
Submitted: 2016-01-20 12:11 UTC Modified: 2016-01-31 04:22 UTC
From: flaviotpd at gmail dot com Assigned:
Status: No Feedback Package: PDO Firebird
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
39 - 34 = ?
Subscribe to this entry?

 
 [2016-01-20 12:11 UTC] flaviotpd at gmail dot com
Description:
------------
ok...
<?php

/*The loop and enter information on the type blob sub_type text fields using "PDO_FIREBIR" and / or "ibase" the system is lost
*/
	/*CREATE TABLE TESTE (
		    CAMPO  BLOB SUB_TYPE 1 SEGMENT SIZE 4096
		);
	*/
    $base = "localhost/3070:D:/Flavio/pessoal/projetos/firebird/data/BASEFB.FDB";
    $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();
    }

Test script:
---------------
ok...
<?php
	/*CREATE TABLE TESTE (
		    CAMPO  BLOB SUB_TYPE 1 SEGMENT SIZE 4096
		);
	*/
    $base = "localhost/3070:D:/Flavio/pessoal/projetos/firebird/data/BASEFB.FDB";
    $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();
    }


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-20 20:04 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2016-01-20 20:04 UTC] ab@php.net
@flaviotpd, thanks for the report. Please specify also what you expect and what is the actual result, the specific error. If any databases/tables need to be created, please include this into the repro code. If there's a crash, please try to include a backtrace.

Thanks.
 [2016-01-31 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 23:01:28 2024 UTC