Bug #11057: Premature end of script headers: c:/php/php.exe
| From: | baret at email dot cz | Date: | Wed, 23 May 2001 12:25:30 +0000 |
| Subject: | Bug #11057: Premature end of script headers: c:/php/php.exe | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56471@lists.php.net to get a copy of this message | ||
From: baret@email.cz
Operating system: Windows 98 SE
PHP version: 4.0.4
PHP Bug Type: Scripting Engine problem
Bug description: Premature end of script headers: c:/php/php.exe
Im using Apache 1.3.14. I have problem with ODBC_functions, but I dont know why, problems appeared
without any changes in source codes (related to the ODBC_functions).
I have predefined functions for ODBC_connect, ODBC_close, ODBC_query, ODBC_Fetch_Row and ODBC_result
(written below).
These functions are written in library.php, which is inherited in scripts by require.
require "library.php"
When Im using my functions, php crashes whith "premature end of script headers in
c:/php/php.exe", but when Im using normal ODBC_functions, is everything allright. However it
has been working normally, then "something happened" and it doesnt work.
function connect()
{
@$con = ODBC_connect("MySQL","","");
if(!$con)
{
$error=1;
include "error.php";
}
return $con;
}
function Query ($query)
{
global $conn;
return ODBC_exec($conn, $query);
}
function Fetch_row ()
{
global $result;
return ODBC_Fetch_Row($result);
}
function Result($field)
{
global $result;
return ODBC_Result($result, $field);
}
--
Edit Bug report at: http://bugs.php.net/?id=11057&edit=1