Edit report at http://bugs.php.net/bug.php?id=49730&edit=1

 ID:               49730
 Updated by:       [email protected]
 Reported by:      marcink86 at interia dot eu
-Summary:          Firebird - new PDO() returns NULL in CLI
+Summary:          Firebird - new PDO() returns NULL
-Status:           Open
+Status:           Closed
 Type:             Bug
 Package:          PDO related
 Operating System: *
 PHP Version:      5.2 only
-Assigned To:      
+Assigned To:      felipe

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2010-06-21 23:38:37] [email protected]

Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=300637
Log: - Fixed bug #49730 (Firebird - new PDO() returns NULL)

------------------------------------------------------------------------
[2010-06-21 23:33:58] [email protected]

I can reproduce it. 5_2 only.

------------------------------------------------------------------------
[2010-02-04 18:20:18] nicolas dot rod at gmail dot com

I forgot to mention that sometimes in Windows you have to modify file
c:\windows\system32\drivers\etc\services.

You need to add the following line in order to connect to the GDS
services:



gds        3050/tcp            #Firebird Database port number



And that's it.

It took me 2 hours to read the error message and realize what the
problem was.

------------------------------------------------------------------------
[2010-02-04 18:14:03] nicolas dot rod at gmail dot com

The DSN in the test.php above is incorrect:



<?php

  $pdo = new PDO("firebird:host=localhost;dbname=TESTDB", "sysdba",

"masterkey");

  var_dump($pdo);

?>



it should be:



<?php

  $pdo = new PDO("firebird:dbname=localhost:TESTDB", "sysdba",

"masterkey");

  var_dump($pdo);

?>

------------------------------------------------------------------------
[2009-10-02 20:01:04] marcink86 at interia dot eu

Anyone to comfirm? Is it going to be fixed?

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=49730


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

Reply via email to