ajaxboy / cjax

Lightweight Ajax Framework built in PHP with no foot-print. Allows you to build ajax functionality with a single line of code & do so much more, right from the back-end!
http://cjax.sourceforge.net/
66 stars 27 forks source link

Time to remove PHP 4 Syntax? #6

Open HallofFamer opened 11 years ago

HallofFamer commented 11 years ago

Well as of CJAX 5.5 I still see PHP 4 syntax like this:

class ajax{ function ajax($controller){ ... } }

PHP 4 is way outdated and no modern software should be compensating for this old dinosaur. Dont you think its about time to move on, and remove all PHP 4 stuff in the next version? After all, the latest version is already made compatible with PHP 5.4, so its definitely getting there.

HallofFamer commented 11 years ago

Strangely, I do see protected/private methods being used in the script, guess its not PHP 4 compatible after all. If so, this still does not explain the PHP 4 syntax I found lol.

ajaxboy commented 11 years ago

There is no PHP4 support. Not all constructors or methods may have a public declaration. It is still PHP5, by default considered public. http://php.net/manual/en/language.oop5.visibility.php