Req #60132 [NEW]: Additional optional parameter for sybase_connect
| From: | f dot bischof at dbap dot de | Date: | Tue, 25 Oct 2011 15:07:47 +0000 |
| Subject: | Req #60132 [NEW]: Additional optional parameter for sybase_connect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-164557@lists.php.net to get a copy of this message | ||
From:
Operating system: Linux
PHP version: 5.3.8
Package: Sybase-ct (ctlib) related
Bug Type: Feature/Change Request
Bug description:Additional optional parameter for sybase_connect
Description:
------------
---
From manual page: http://www.php.net/function.sybase-connect
---
We need an additional parameter for the sybase_connect function:
Databasename
Like this:
resource sybase_connect ([ string $servername [, string $username [, string
$password [, string $charset [, string $appname [, bool $new = false ][,
string $Databasename ]]]]]])
If you have specified a default databasename "database1" at the
sybase-server and the database has the following users: "user1", "user2"
but you have also a database "database2" with "user3" and "user4", you
have
no chance to connect to "database2" with "user3".
Following errors appear:
sybase_connect(): Sybase: Unable to connect in ...
sybase_select_db(): supplied argument is not a valid Sybase-Link resource
in ...
Because of some backup/restore behavior we have to define a default
database! It would be a nice feature to add the "databasename" to the
sybase_connect:-)
--
Edit bug report at https://bugs.php.net/bug.php?id=60132&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60132&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60132&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60132&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60132&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60132&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60132&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60132&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60132&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60132&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60132&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60132&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60132&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60132&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60132&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60132&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60132&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60132&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60132&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60132&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60132&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60132&r=mysqlcfg