Bug #18210 Updated: Internal Server Error 500
| From: | tomator at wio dot zsi dot pl | Date: | Mon, 08 Jul 2002 22:34:14 +0000 |
| Subject: | Bug #18210 Updated: Internal Server Error 500 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13545@lists.php.net to get a copy of this message | ||
ID: 18210
Updated by: tomator@wio.zsi.pl
Reported By: tomator@wio.zsi.pl
-Status: Feedback
+Status: Open
Bug Type: Scripting Engine problem
Operating System: Windows XP + Apache/1.3.24
PHP Version: 4.2.1
New Comment:
I'm using PHP as Apache module. It is configured in httpd.conf. Works
fine with PHP 4.1.2
Overwriting PHP with 4.1.2 solved all mentioned problems, so I thing
that problem source is somewhere inside of PHP 4.2.1
Previous Comments:
------------------------------------------------------------------------
[2002-07-08 05:41:47] sander@php.net
Are you using the CGI executable or the Apache module?
How did you configure either of them in your httpd.conf?
------------------------------------------------------------------------
[2002-07-07 15:24:37] tomator@wio.zsi.pl
Finally, I returned to PHP 4.1.2 and got number of line with parse
error. This time it was:
if (isset($_POST["usermail"]) and isset($_POST["userpwd"]) and
!isset($_SESSION["id"]==0)) {
(last part, after !isset was wrong)
Version 4.1.2 reports parse error while 4.2.1 causes error 500.
------------------------------------------------------------------------
[2002-07-07 14:25:30] tomator@wio.zsi.pl
Instead of "parse error" I often get an Internal Server Error 500,
which says nothing about what was wrong.
I tried to get closer to focus the problem, so I made simply file...
but it is crashing even without any php in it:
-----------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>title</title>
</head>
<body>
this is normal file
</body>
</html>
--------------------------------
It's addres is http://wio4.zsi.pl/del_it.html
Other files (with PHP without errors) works fine, working with MySQL.
Problems started after installing PHP 4.2.1
------------------------------------------------------------------------
[2002-07-07 09:15:18] sander@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2002-07-07 09:14:13] tomator@wio.zsi.pl
When PHP tries to execute script line that contains some errors, it
outputs error message. OK.
When this line is in not executed block (after 'if') I get the Internal
Server Error 500, which says nothing about what was wrong.
There might be missning ")" of '"varname"' instead of
'$_POST["varname"]' or other error in line. When PHP jumps over such
line, it causes error 500.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18210&edit=1