PHP 5.3

PHP 5.3 was released on June 30th and everything is already asking when is Hawk Host going to have it on our servers!  Well this is unfortunately going to take some time until it shows up on our servers is it is a major release that does have some deprecated features users may be using.  It also has some changes to functions and of the core of PHP itself and we just don’t know how well it’ll play with various open source, commercial and custom PHP scripts users make use of it.  So as it stands I estimate at the earliest August it’ll be on our servers but it may actually be more like September.  This comes down to knowing all PHP scripts work fine as well as cPanel having support for it and litespeed.  Right now we’re actually waiting on cPanel to fully support 5.2.10 which we could install ourselves but best to let others deal with the issues and we’ll just run things when all the issues are figured out.

A very cool although useless for our users is the fact the LiteSpeed SAPI is now a SAPI available by default in the PHP core!  So basically means we could do –with-litespeed or whatever the parameter is to get the litespeed PHP binary.

Quick list of the major new features

  • Support for namespaces has been added.
  • Support for Late Static Bindings has been added.
  • Support for jump labels (limited goto) has been added.
  • Support for native Closures (Lambda/Anonymous functions) has been added.
  • There are two new magic methods, __callStatic and __invoke.
  • Nowdoc syntax is now supported, similar to Heredoc syntax, but with single quotes.
  • It is now possible to use Heredocs to initialize static variables and class members/constants.
  • Heredocs may now be declared using double quotes, complementing the Nowdoc syntax.
  • Constants can now be declared outside a class using the const keyword.
  • The ternary operator now has a shorthand form: ?:.
  • The HTTP stream wrapper now considers all status codes from 200 to 399 to be successful.
  • Dynamic access to static methods is now possible.
  • Exceptions can now be nested.
  • A garbage collector has been added, and is enabled by default.


List of actual functions and such to make this a decent length post:

Date/Time:

GMP:

Hash:

IMAP:

  • imap_gc() – Clears IMAP cache.
  • imap_utf8_to_mutf7() – Encode a UTF-8 string to modified UTF-7.
  • imap_mutf7_to_utf8() – Decode a modified UTF-7 string to UTF-8.

JSON:

MySQL Improved:

OpenSSL:

PCNTL:

PCRE:

  • preg_filter() – Perform a regular expression search and replace, reutrning only results which matched the pattern.

Semaphore:

The following functions are now natively implemented, making them available on all operating systems which can run PHP:

This entry was posted in General. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *