#31597 [NEW]: ibase_connect() - incorrect warning
From: 3tantes at inbox dot lv
Operating system: Debian
PHP version: 5.0.3
PHP Bug Type: InterBase related
Bug description: ibase_connect() - incorrect warning
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 bug report at http://bugs.php.net/?id=31597&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31597&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31597&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31597&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31597&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31597&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31597&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31597&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31597&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31597&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31597&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31597&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31597&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31597&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31597&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31597&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31597&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31597&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31597&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31597&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31597&r=mysqlcfg
Thread (2 messages)
- 3tantes at inbox dot lv