I just upgraded my PHP version from v5.3.1 to v5.3.9. Suddenly class constructors started not working. Any ideas?
1 Answer
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.
3 Comments
Cobra_Fast
Note that this behaviour only changed back for namespaced classes.
Emir Akaydın
@Henry Adams: Nice to hear that your problem is solved. You need to wait for a while before accepting an answer at the beginning stages. That's normal.