#30721 [Opn->Fbk]: Unable to allocate connection record
| From: | sniper@php.net | Date: | Thu, 03 Feb 2005 03:45:28 +0000 |
| Subject: | #30721 [Opn->Fbk]: Unable to allocate connection record | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73319@lists.php.net to get a copy of this message | ||
ID: 30721
Updated by: sniper@php.net
Reported By: mignoni at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Sybase-ct (ctlib) related
Operating System: Windows XP
PHP Version: 4.3.9
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2004-11-08 17:21:29] mignoni at gmail dot com
Description:
------------
I installed sybase 12.5.2 (Linux) and apache (Windows XP) and php
4.3.9 (Windows XP) on the same server, the php testing is no problem.
But i use function sybase_connect() in program testeConexao.php,
when i open the file
in IE, error messages :
============================
Warning: sybase_connect(): Sybase: Unable to allocate connection record
in D:\WebServer\homebanking\include\testeConexao.php on line 15
============================
I search all the internet, don't find the reason and the solution.
PLase Help me, Thanks a lot.
Bruno Mignoni
Reproduce code:
---------------
session_start();
$config["BANCO"]["usuario"] = "sa";
$config["BANCO"]["senha"] = "olaolaola";
$config["BANCO"]["host"] = "srvdatabase";
$config["BANCO"]["database"] = "ola";
if(!$bd=sybase_connect($config["BANCO"]["host"],
$config["BANCO"]["usuario"], $config["BANCO"]["senha"],
NULL,
"HOMEBANKING 0100")){
echo("ERROR");
exit;
}else{
if(!@sybase_select_db($config["BANCO"]["database"],$bd)){
echo("ERRO - DataBase");
exit;
}else{
set_time_limit($config["TEMPO_LIMITE"]);
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30721&edit=1