Hi, this is for U only.Do well, Feel Free…

  • No of Hits

    • 6,971 hits
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 8 other followers

  • Time is Now

    October 2012
    M T W T F S S
    « Aug   Nov »
  • Zip

  • Advertisements

New Features of PHP 5.4.x

Posted by Manikandan.MS on October 29, 2012

I am very happy to write about this article because new interesting things inside new versions of php 5.4.x. I am going to explain few of new added features one by one on the following paragraphs.

Improved performance and reduced memory conception is one of the key features added in it. The first one is Traits, it’s a method of code reusability, implemented from php. In the object oriented scripting the traits allows to access sets of methods freely and independently. While inheriting classes, the traits enable to reuse code in a single inheritance. We can directly call particular hierarchies methods using traits.

The next parameter is closures. It’s nothing but anonymous functions. It allows creating functions without specified name. Now can use “$this” key value inside closures functions. Not only for this one, also has it had many other uses.

Short array syntax that is array improvement has been added in it. Short open tag “<?=” is now always available, only need to config in php.ini file to enable short open tag. Parse error message and incompatible arguments warnings have been improved.  Functions array dereferencing and binary number format have been added. By using binary number format we can easily calculate any arithmetic manipulation and no need to convert to binary format through own scripting technique.

The next parameter is built in web server. Php now support own small web server for only development purpose not for production server. The built in web server provides, the developer can test their files using this.  localhost:8000 this port allows users can execute their files. Specifying document root and php router file in command line is also possible.  The php router script file executes every request.

Upload progress of files now achieved through session extension. In the past, getting upload file progress through external packages. But now can get the upload file prograss through session data. For this, need to enable in php.ini file to use upload prograss. By using the following code this “<?php echo ini_get(“”); ?>” can get upload progress data.

The php 5.4.x has been removed few features as well as they newly added for the purpose of their internal use. magic_quotes(), safe_mode() and register_global() functions were removed. Also the allow call time pass reference function was removed. UTF-8 is the default char set in php.ini file.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


Why We live

TechView Mani

A blog of New Technologies


Hi, this is for U only.Do well, Feel Free...

%d bloggers like this: