php.net |  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
Description:
------------
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:

if($session->logged_in){

content with a couple of includes and a if and else

}
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-23 17:27 UTC] colder@php.net
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 http://www.php.net/support.php 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".

bugs.php.net is not intended for that kind of support, please choose the appropriate medium for getting help at http://php.net/support
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 22:01:28 2024 UTC