# sybase_connect()

- Thread: https://externals.io/message/41779
- Original archive: https://news-web.php.net/php.internals/41779
- Started by Timm Friebe on 2008-11-09T12:05:51+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #41779 — Timm Friebe — 2008-11-09T12:05:51+00:00

URL: https://externals.io/message/41779#41779

Hi,
I'd like to add a new optional parameter to sybase_connect() for PHP 5.3. If 
set to `TRUE` it will force creation of a new link (and works just like 
mysql_connect()'s new_link parameter).

  http://sitten-polizei.de/php/sybase-connect-newlink.diff

Any objections?

- Timm

---

## #41780 — Lukas Kahwe Smith — 2008-11-09T12:09:53+00:00

URL: https://externals.io/message/41779#41780 · In reply to: #41779

> Hi,
> I'd like to add a new optional parameter to sybase_connect() for PHP  
> 5.3. If set to `TRUE` it will force creation of a new link (and works  
> just like mysql_connect()'s new_link parameter).
>
> http://sitten-polizei.de/php/sybase-connect-newlink.diff


seems like a good idea to have this and i guess there is no other  
choice but to stick it at the end of the function parameter list.

regards,
Lukas Kahwe Smith
mls@pooteeweet.org

---

## #41806 — Timm Friebe — 2008-11-10T11:04:50+00:00

URL: https://externals.io/message/41779#41806 · In reply to: #41780

Hi,

> > […]
>
>
> seems like a good idea to have this and i guess there is no other  choice 
> but to stick it at the end of the function parameter list.

Comitted to PHP_5_3 and added a NEWS entry. Passing `NULL` to any of the 
string parameters to sybase_connect() will make it behave as if the 
parameter was omitted. The following, for example, are equivalent:

  sybase_connect()
  sybase_connect(NULL, NULL, NULL)

- Timm
