#30721 [NEW]: Unable to allocate connection record
| From: | mignoni at gmail dot com | Date: | Mon, 08 Nov 2004 16:21:31 +0000 |
| Subject: | #30721 [NEW]: Unable to allocate connection record | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-68813@lists.php.net to get a copy of this message | ||
From: mignoni at gmail dot com
Operating system: Windows XP
PHP version: 4.3.9
PHP Bug Type: Sybase-ct (ctlib) related
Bug description: Unable to allocate connection record
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 bug report at http://bugs.php.net/?id=30721&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30721&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30721&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30721&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30721&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30721&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30721&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30721&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30721&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30721&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30721&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30721&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30721&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30721&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30721&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30721&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30721&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30721&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30721&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30721&r=mysqlcfg