Bug #11057 Updated: Premature end of script headers: c:/php/php.exe
| From: | baret at email dot cz | Date: | Wed, 23 May 2001 14:10:17 +0000 |
| Subject: | Bug #11057 Updated: Premature end of script headers: c:/php/php.exe | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56489@lists.php.net to get a copy of this message | ||
ID: 11057
User Update by: baret@email.cz
Status: Open
Bug Type: ODBC related
Operating system: Windows 98 SE
PHP Version: 4.0.4
Description: Premature end of script headers: c:/php/php.exe
I tried to modify the functions so they have the same parametres as ODBC_functions and it works..
I didnt write before, that the only two functions, that are problematic, are Fetch_row and Result,
other works properly.
Previous Comments:
---------------------------------------------------------------------------
[2001-05-23 14:25:18] baret@email.cz
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);
}
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=11057