PHP5.4 was released four months ago. It seems that the next PHP version is a little earlier, but I still want to tell you what new features PHP5.5 will bring.
Note: PHP5.5 is still in the early development phase, so no one knows what the final result is. All I am talking about here is a proposal. That is to say, not all new features listed below are added to php5.5. So, don't be too excited :)
The list of new features and proposals is quite large, and they are not sorted by importance. Therefore, if you don't want to read it all over again, I am most excited here:
A simple password hash API; scalar type prompt; Getter and Setter; Generator
Now, let's take a look at the features that may be added to PHP5.5:
Not backward compatible
First, we will have two changes:
1. Discard support for Windows XP and 2003
PHP5.5 will no longer support Windows XP and 2003. These systems have been around for ten years, so PHP will no longer support them.
2. Discard the e Modifier
The e modifier indicates that the preg_replace function is used to evaluate the replacement string as the PHP code, not just a simple string replacement. As expected, this kind of behavior will continue to cause security problems. This is why a discard warning is thrown when this modifier is used in php5.5. As an alternative, you should use the preg_replace_callback function. You can find