Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time to remove PHP 4 Syntax? #6

Open
HallofFamer opened this issue Aug 4, 2013 · 2 comments
Open

Time to remove PHP 4 Syntax? #6

HallofFamer opened this issue Aug 4, 2013 · 2 comments

Comments

@HallofFamer
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Owner

ajaxboy commented Aug 5, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants