I just upgraded my PHP version from v5.3.1 to v5.3.9. Suddenly class constructors started not working. Any ideas?
I just upgraded my PHP version from v5.3.1 to v5.3.9 . Suddenly class constructors
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are probably using constructors with Class name instead of
__construct()keyword. See the behaviour change in v5.3.3 here:http://www.php.net/archive/2010.php#id2010-07-22-2
Use
__construct()and you should be fine.http://www.php.net/manual/en/language.oop5.decon.php