#19177 [NEW]: Appache error.log: Premature end of script headers: d:/php/php.exe

From: Date: Thu, 29 Aug 2002 18:24:10 +0000
Subject: #19177 [NEW]: Appache error.log: Premature end of script headers: d:/php/php.exe
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18176@lists.php.net to get a copy of this message
From:             donnie.rivera@doc.state.co.us
Operating system: WinNT 
PHP version:      4.2.1
PHP Bug Type:     *Database Functions
Bug description:  Appache error.log: Premature end of script headers: d:/php/php.exe

Ok… I two development boxes 1) which has an older version of apache and
php. 2) Box uses the current versions. My box gives me a Dr. Watson error
that states a memory over load error and says that an error will be in my
error.log file, but it is blank. However the other box gave a different
error and put this in the error.log file: Premature end of script headers:
d:/php/php.exe 

I did make a little more progress in determining the problem, but it is
still not solved. The line of code that is making the application error
out is my connection to the Database in the application page… not the
login (which is where I originally thought the problem was happening). The
way the application works is if someone access a page that has security,
it checks for a session and permission to that page. If this fails, it
stores the location in a session variable then redirects them to a login
page. My log in page does two checks. 1) It uses the database/OS to see if
the user has permission to the database 2) It also quires the DB to see if
the user has permissions to that application. After they pass these two
checks, I redirect them to the page that sent them to the logon page (This
is what I thought was the problem, but it is not). The problem occurs when
I try to make a connection to the database in the application. I have
checked 1) Made sure all conection were closed before establishing a new
one 2) Variables having correct values and not extra charters that are not
supposed to be there 3) I have hard coded my connection… Nothing seems to
work and leave me wondering if there is something wrong with one of the
php library files.

ps. All my configuration are correct because I have created other
applications, but I have never see this problem before…
-- 
Edit bug report at http://bugs.php.net/?id=19177&edit=1
-- 
Try a CVS snapshot:  http://bugs.php.net/fix.php?id=19177&r=trysnapshot
Fixed in CVS:        http://bugs.php.net/fix.php?id=19177&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=19177&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=19177&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=19177&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19177&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=19177&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=19177&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=19177&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=19177&r=globals



Thread (4 messages)

« previous php.bugs (#18176) next »