Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizKindly log in to use this feature. We’ll take you to the login page automatically.
LoginGeneral Tech Bugs & Fixes 3 years ago
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Kindly log in to use this feature. We’ll take you to the login page automatically.
LoginReady to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
manpreet
Best Answer
3 years ago
Due to being in some dependency hell and some issues with PHP 5.4, we downgraded from PHP 5.4 -> 5.3.
Since doing so, a few of our web apps are acting strange.
E.g:
# php index.phpResults in:
Parse error: syntax error, unexpected $end in... on line 14Usually this indicates someone forgot to close some curly brackets or close off
or{or something - but I've checked that and doesn't appear to be any syntax problems. It was also working fine prior to the downgrade.Any ideas?
After down-grade:
[root@server ~]# php -v PHP 5.3.3 (cli) (built: Dec 10 2013 22:12:52) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies [root@server ~]# rpm -qa | grep php php53-common-5.3.3-22.el5_10 php53-mysql-5.3.3-22.el5_10 php53-xml-5.3.3-22.el5_10 php53-ldap-5.3.3-22.el5_10 php-pear-1.9.4-27.el5.remi php53-5.3.3-22.el5_10 php53-imap-5.3.3-22.el5_10 php53-pdo-5.3.3-22.el5_10 php53-gd-5.3.3-22.el5_10 php53-process-5.3.3-22.el5_10 php53-cli-5.3.3-22.el5_10 php53-devel-5.3.3-22.el5_10 php53-mbstring-5.3.3-22.el5_10
[Update/edit: even stranger - many of the PHP files are working fine if I call them from the command line but when I hit them via the browser/apache, they return nothing.]