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

From: Date: Thu, 29 Aug 2002 21:06:45 +0000
Subject: #19177 [Opn]: Appache error.log: Premature end of script headers: d:/php/php.exe
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18186@lists.php.net to get a copy of this message
 ID:               19177
 User updated by:  donnie.rivera@doc.state.co.us
 Reported By:      donnie.rivera@doc.state.co.us
 Status:           Open
 Bug Type:         *Database Functions
 Operating System: WinNT
 PHP Version:      4.2.1
 New Comment:

Never mind... Found my bug... :)

But I still don't understand why I was getting WinNT Dr. Watson telling
me it was a stack overflow one box then the other error on the other
box... :(


Previous Comments:
------------------------------------------------------------------------

[2002-08-29 14:24:09] donnie.rivera@doc.state.co.us

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 this bug report at http://bugs.php.net/?id=19177&edit=1



Thread (4 messages)

« previous php.bugs (#18186) next »