|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44809 unexcepted $end
Submitted: 2008-04-23 15:01 UTC Modified: 2008-04-23 17:27 UTC
From: bjornuz at hotmail dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.2.5 OS: Apache
Private report: No CVE-ID: None
 [2008-04-23 15:01 UTC] bjornuz at hotmail dot com
i keep getting Parse error: syntax error, unexpected $end in /home/wrcmeist/public_html/index.php on line 59

i have tried to close any bracers, it all seems to have happend due to this:


content with a couple of includes and a if and else

echo "else works";

cant see why this should give the bug...

Expected result:
the main page if your logged in, else show "else works"

Actual result:
Parse error: syntax error, unexpected $end in /home/wrcmeist/public_html/index.php on line 59


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-23 17:27 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

you probably have mismatched {}'s in your
"content with a couple of includes and a if and else". is not intended for that kind of support, please choose the appropriate medium for getting help at
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jun 06 17:03:39 2023 UTC