Subject Re: [firebird-php] Firebird 3 with PHP 7 ubuntu
Author marius adrian popa
 php -v 
PHP 7.0.18-0ubuntu0.17.04.1 (cli) (built: Apr 26 2017 23:59:48) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.18-0ubuntu0.17.04.1, Copyright (c) 1999-2017, by Zend Technologies

On Tue, May 16, 2017 at 4:29 PM, Leonardo Procopio leonardolp@... [firebird-php] <> wrote:

Marius, what version of your PHP?

Em ter, 16 de mai de 2017 às 10:08, marius adrian popa mapopa@... [firebird-php] <> escreveu:

Ubuntu 17.04

print_r (PDO::getAvailableDrivers ());
$PDO = new PDO ('firebird:dbname=localhost/ 3050:/tmp/test.fdb;charset= UTF8', 'sysdba', 'masterkey');
print_r($PDO->getAttribute( PDO::ATTR_CONNECTION_STATUS));

php test.php

    [0] => firebird


On Tue, May 16, 2017 at 3:30 PM, marius adrian popa <mapopa@...> wrote:
I use default pdo driver from ubuntu 

On Mon, May 15, 2017 at 11:57 PM, Leonardo Procopio leonardolp@... [firebird-php] <> wrote:

Thanks for the feedback.
I installed Firebird without problem, but I can not install the PDO driver for PHP.
What are you using to access Firebird 3 with PHP?

Em dom, 14 de mai de 2017 às 05:49, marius adrian popa mapopa@... [firebird-php] <> escreveu:

you need to install firebird 3.0.2 server and client , pdo is using the old client 

On Fri, May 12, 2017 at 4:08 PM, leonardolp@... [firebird-php] <> wrote:

But when I try to access with the code:

<? Php

print_r (PDO::getAvailableDrivers ());

echo '<hr>';

$PDO = new PDO ('firebird:dbname=111.111.11. 111/3050:test;charset=WIN1252' , $user, $pass);

print_r($ PDO->getAttribute(PDO::ATTR_ CONNECTION_STATUS));



Array ([0] => firebird [1] => mysql)

SQLSTATE [HY000] [335544472] Your user name and password are not defined. Ask your database administrator to set up a Firebird login.

I noticed that when I ran the command: apt-get install php7.0-pdo-firebird

He installed /usr/lib/firebird/2.5

What am I doing wrong?

Doing this remotely with ibexpert I can connect without error.

Attempting to connect to:


Connecting ... Passed!

Server version: LI-V6.3.0.32483 Firebird 3.0


Attempting to connect to services manager ... Passed!


Disconnecting from database ... Passed!