#31597 [Opn->Csd]: ibase_connect() - incorrect warning

From: Date: Wed, 23 Feb 2005 20:21:09 +0000
Subject: #31597 [Opn->Csd]: ibase_connect() - incorrect warning
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74478@lists.php.net to get a copy of this message
ID: 31597 Updated by: abies@php.net Reported By: 3tantes at inbox dot lv -Status: Open +Status: Closed Bug Type: InterBase related Operating System: Debian PHP Version: 5.0.3 New Comment: This bug has been fixed in CVS. 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: ------------------------------------------------------------------------ [2005-01-18 14:21:21] 3tantes at inbox dot lv Description: ------------ on $rolename = "RO_WEBUSER"; $dbh = @ibase_connect($host, $usrname, $pswrd, "", 0, 3, $rolename) i get Warning: ibase_connect() [function.ibase-connect.php]: bad parameters on attach or create database CHARACTER SET RO_WEBUSER is not defined in ... it worked fine on php5.0.1. maybe it's because the database charset is "NONE", so, when i try $ibcharset = "NONE"; $rolename = "RO_WEBUSER"; $dbh = @ibase_connect($host, $usrname, $pswrd, $ibcharset, 0, 3, $rolename); it works fine on 5.0.3 too. where's the problem? something's been changed? Reproduce code: --------------- $rolename = "RO_WEBUSER"; $serveraddr = "10.5.8.42"; $dbfilepath = "/home/girts/scr/db/scr.gdb"; $host = "{$serveraddr}:{$dbfilepath}"; if (!($dbh = @ibase_connect($host, $usrname, $pswrd, "", 0, 3, $rolename))) { echo "can't connect"; } else { echo "connection ok"; } Expected result: ---------------- connection ok Actual result: -------------- Warning: ibase_connect() [function.ibase-connect.php]: bad parameters on attach or create database CHARACTER SET RO_WEBUSER is not defined in ... can't connect ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31597&edit=1

« previous php.bugs (#74478) next »