|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-03-11 22:17 UTC] ottawasixtyseven at hotmail dot com
I can't get our application running on the latest snapshot. I can run phpinfo() but when I try to use $DB = odbc_connect ( 'database', '', '' ); and then try to create a table I get errors:
echo "THE VALUE OF THE DB IS : $DB";
$SQL = "CREATE TABLE $TableName ($TableColumns)";
if ( !odbc_exec ( $DB, $SQL ) )
{
echo "FAILURE OF '$SQL' !<br>\n";
$Errors++;
}
else
{
echo "OK! <br>\n";
}
For the first echo statement above I get "Resource id #3"
When I try to create the table I get:
"FATAL: erealloc(): Unable to allocate 1331643757 bytes"
I have tried installing the latest snapshot on three separate servers. Two that were already running PHP 4.3 and one clean server.
Ottawa
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 22:00:01 2025 UTC |
My programmers said my description was note quite accurate. Here is the programmers version of our problem: I can't get our application running on the latest snapshot. I can run phpinfo() but when I try to use $DB = odbc_connect ( 'database', '', ''); and then try to create a table I get errors: include('common.php'); // this include has $DB = odbc_connect ('dsn' ,'', ''); i do an echo of $DB in common.php and get Resource id #3 then in the main script. echo "THE VALUE OF THE DB IS : $DB"; $SQL = "CREATE TABLE $TableName ($TableColumns)"; if ( !odbc_exec ( $DB, $SQL ) ) { echo "FAILURE OF '$SQL' !<br>\n"; $Errors++; } else { echo "OK! <br>\n"; } when i echo $DB again just before the odbc_exec I get: "FATAL: erealloc(): Unable to allocate 1331643757 bytes" I have tried installing the latest snapshot on three separate servers. Two that were already running PHP 4.3 and one clean server. this code works on all other versions of php except the latest snapshot. Ottawa