Req #60132 [Opn->Wfx]: Additional optional parameter for sybase_connect
| From: | krakjoe@php.net | Date: | Wed, 18 Feb 2015 07:45:26 +0000 |
| Subject: | Req #60132 [Opn->Wfx]: Additional optional parameter for sybase_connect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-190775@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60132&edit=1
ID: 60132
Updated by: krakjoe@php.net
Reported by: f dot bischof at dbap dot de
Summary: Additional optional parameter for sybase_connect
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: Sybase-ct (ctlib) related
Operating System: Linux
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
The sybase maintainer has backed away from the project, since nobody new has come forward it has
been removed in version 7 of PHP.
For this reason, I'm marking the bug as won't fix, it can still be found by any maintainer
that might come along and revive sybase as a PECL project.
Previous Comments:
------------------------------------------------------------------------
[2011-10-25 15:07:47] f dot bischof at dbap dot de
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 this bug report at https://bugs.php.net/bug.php?id=60132&edit=1