Your SlideShare is downloading. ×
PHP 5.5.0 ChangeLog
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

PHP 5.5.0 ChangeLog

1,137
views

Published on

PHP core development team has rolled out the PHP 5.5.0 version. It has some new awesome features added and also some critical bugs fixed.

PHP core development team has rolled out the PHP 5.5.0 version. It has some new awesome features added and also some critical bugs fixed.

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,137
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. PHP 5.5.0ChangeLogDhiraj PandeyICS, Noida
  • 2. IntroductionOn 20-June-2013, PHP 5.5.0 rolled out by thecore development team. It consists to somebug fixes as well as some new features.
  • 3. Features includedIntroduced “Generators” and “Coroutines”Generators : It provides easy way to implement simple iterators such as“foreach”. This implementation will save memory. Coroutines will help incooperative multitasking.You can write a code to iterate a set of data without creating an array inmemory, mainly with the help of “yield” keyword.function getValues() {yield “iOS";yield “Android";yield “BlackBarry";}$stuff = getValues();foreach($stuff as $thing) {echo $thing . "n";}
  • 4. Features included“finally” keyword is addedNow, a finally block can be written after the try, catch block.This block will be executed regardless of whether an exceptionhas been thrown, and before normal execution resumes.try {echo ”Try Block” . "n";} catch (Exception $e) {echo Caught exception: , $e->getMessage(), "n";} finally {echo “Finally.n";}
  • 5. Features includedA simplified Password hashing API is introduced It provides an easy to use wrapper around “crypt()” forcreating and managing passwords. No external library is required. No installation is required. Noconfiguration directives in php.ini password_hash and password_verify are the functions to beused.
  • 6. Features includedConstant array/string dereferencingArray and string literals can now be dereferenced directly toaccess individual elements and charactersecho [abc, xyz, pqr][0];// results abc.echo „DHIRAJ‟[0];// results D.
  • 7. Features includedScalar class name resolution added With the help of “::class” keyword, you can get a string containing the fullyqualified name of the Class. Particularly useful with namespaced classes.namespace NS {class ClassName {}echo ClassName::class;//results NSClassName.}
  • 8. Features includedNow empty() can be used on any expressionempty() function can be called on not only variablesbut function returns or any other arbitraryexpressions.
  • 9. Features includedNon-scalar Iterator key support is addedThe ability to iterate over an array of arrays and unpack the nested arrayinto loop variables by providing a ”list()” as the value.$array = [[1, 2],[3, 4]];foreach ($array as list($a, $b)) {echo "A: $a; B: $bn";}result: A: 1; B:2A: 3; B:4
  • 10. ChangesMySQL extension: This extension has been deprecated, so there will bedeprecated warnings on use of this extension. MySQLiextension can be used in place of that. Support for MySQL 5.6+ has been incorporated in variousways.
  • 11. Many of the bugs have been fixed in thisversion. The complete change log can beseen onhttp://php.net/ChangeLog-5.php
  • 12. Thank youDhiraj Pandeydhiraj.pandey@iqbsys.com+91-9910057648DhirajPandey