Error_reporting in PHP 4 and PHP 5

I migrated my site from PHP 4.4 to PHP 5.2. The error_reporting level in both cases is E_ALL. The site worked fine on PHP 4, but after switching to PHP 5 I found that one page was throwing an error. Cannot override ClassName: varName I found that the variable was indeed declared in the file. I want to know why it was working in PHP4.4 Does PHP 4 E_ALL contain "class variable override errors"?

0


a source to share


2 answers


I think this is not about bug reporting, but about OOP support in PHP4 and PHP5. There have been many changes in PHP5 regarding OOP. The OOP support in PHP4 was pretty fun.



+2


a source


I need to agree with Zilupe on this, PHP5 has led to more standardized OOP support, to the point where you can extend the class, but you cannot re-update it. PHP4 and OOP I never thought it really existed in the same sentence without the usual LOL, ROFL, etc.



0


a source







All Articles