SlideShare a Scribd company logo
PHP 5.5.0
ChangeLog
Dhiraj Pandey
ICS, Noida
Introduction
On 20-June-2013, PHP 5.5.0 rolled out by the
core development team. It consists to some
bug fixes as well as some new features.
Features included
Introduced “Generators” and “Coroutines”
Generators : It provides easy way to implement simple iterators such as
“foreach”. This implementation will save memory. Coroutines will help in
cooperative multitasking.
You can write a code to iterate a set of data without creating an array in
memory, mainly with the help of “yield” keyword.
function getValues() {
yield “iOS";
yield “Android";
yield “BlackBarry";
}
$stuff = getValues();
foreach($stuff as $thing) {
echo $thing . "n";
}
Features included
“finally” keyword is added
Now, a finally block can be written after the try, catch block.
This block will be executed regardless of whether an exception
has 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";
}
Features included
A simplified Password hashing API is introduced
 It provides an easy to use wrapper around “crypt()” for
creating and managing passwords.
 No external library is required. No installation is required. No
configuration directives in php.ini
 password_hash and password_verify are the functions to be
used.
Features included
Constant array/string dereferencing
Array and string literals can now be dereferenced directly to
access individual elements and characters
echo [abc, xyz, pqr][0];
// results abc.
echo „DHIRAJ‟[0];
// results D.
Features included
Scalar class name resolution added
 With the help of “::class” keyword, you can get a string containing the fully
qualified name of the Class.
 Particularly useful with namespaced classes.
namespace NS {
class ClassName {
}
echo ClassName::class;
//results NSClassName.
}
Features included
Now empty() can be used on any expression
empty() function can be called on not only variables
but function returns or any other arbitrary
expressions.
Features included
Non-scalar Iterator key support is added
The ability to iterate over an array of arrays and unpack the nested array
into 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:2
A: 3; B:4
Changes
MySQL extension:
 This extension has been deprecated, so there will be
deprecated warnings on use of this extension. MySQLi
extension can be used in place of that.
 Support for MySQL 5.6+ has been incorporated in various
ways.
Many of the bugs have been fixed in this
version. The complete change log can be
seen on
http://php.net/ChangeLog-5.php
Thank you
Dhiraj Pandey
dhiraj.pandey@iqbsys.com
+91-9910057648
DhirajPandey

More Related Content

PPTX
Php 5.4: New Language Features You Will Find Useful
PPT
Initial Java Core Concept
PPT
JDBC Core Concept
PDF
Selenium cheat sheet
PPTX
ES6 in Real Life
PPTX
Introduction to Ecmascript - ES6
PDF
Apache Commons - Don\'t re-invent the wheel
ODP
ES6 PPT FOR 2016
Php 5.4: New Language Features You Will Find Useful
Initial Java Core Concept
JDBC Core Concept
Selenium cheat sheet
ES6 in Real Life
Introduction to Ecmascript - ES6
Apache Commons - Don\'t re-invent the wheel
ES6 PPT FOR 2016

What's hot (18)

PDF
Scalaz By Example (An IO Taster) -- PDXScala Meetup Jan 2014
PDF
Introduction into ES6 JavaScript.
PDF
Java Cheat Sheet
PDF
Explaining ES6: JavaScript History and What is to Come
PDF
An Intro To ES6
PDF
JavaScript ES6
PDF
Codegeneration With Xtend
PDF
Programming with Python and PostgreSQL
PDF
Refactoring to Macros with Clojure
PPT
Quebec pdo
PPTX
Javascript
PPTX
What’s new in C# 6
PDF
Stubる - Mockingjayを使ったHTTPクライアントのテスト -
PDF
PostgreSQL and PL/Java
PDF
Writing a compiler in go
PPTX
Poor Man's Functional Programming
PDF
ECMAScript 6
PDF
Swiftの関数型っぽい部分
Scalaz By Example (An IO Taster) -- PDXScala Meetup Jan 2014
Introduction into ES6 JavaScript.
Java Cheat Sheet
Explaining ES6: JavaScript History and What is to Come
An Intro To ES6
JavaScript ES6
Codegeneration With Xtend
Programming with Python and PostgreSQL
Refactoring to Macros with Clojure
Quebec pdo
Javascript
What’s new in C# 6
Stubる - Mockingjayを使ったHTTPクライアントのテスト -
PostgreSQL and PL/Java
Writing a compiler in go
Poor Man's Functional Programming
ECMAScript 6
Swiftの関数型っぽい部分
Ad

Viewers also liked (18)

KEY
Tools and Techniques for Faster Development
DOC
Curriculum vitae
PPTX
Prem strategy
PDF
Gifting Plants - Putush
PPT
All about hummingbird_update - niswey
PDF
The most viable way to invest SAS In-memory analytics capabilities
PPTX
Barracuda Backup Presentation v6.0
PPT
Verysimple Yoga Part 2 - set of yoga asanas that can be practiced anytime, ai...
PDF
Incorporating Clicks, Attention and Satisfaction into a SERP Evaluation Model
PPTX
How to Generate 195,013 Visitors a Month Without Spending a Dollar on Ads
PDF
The impact of innovation on travel and tourism industries (World Travel Marke...
PDF
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
PDF
Open Source Creativity
PPSX
Reuters: Pictures of the Year 2016 (Part 2)
PDF
The Six Highest Performing B2B Blog Post Formats
PDF
The Great State of Design with CSS Grid Layout and Friends
PDF
The Outcome Economy
PDF
32 Ways a Digital Marketing Consultant Can Help Grow Your Business
Tools and Techniques for Faster Development
Curriculum vitae
Prem strategy
Gifting Plants - Putush
All about hummingbird_update - niswey
The most viable way to invest SAS In-memory analytics capabilities
Barracuda Backup Presentation v6.0
Verysimple Yoga Part 2 - set of yoga asanas that can be practiced anytime, ai...
Incorporating Clicks, Attention and Satisfaction into a SERP Evaluation Model
How to Generate 195,013 Visitors a Month Without Spending a Dollar on Ads
The impact of innovation on travel and tourism industries (World Travel Marke...
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Open Source Creativity
Reuters: Pictures of the Year 2016 (Part 2)
The Six Highest Performing B2B Blog Post Formats
The Great State of Design with CSS Grid Layout and Friends
The Outcome Economy
32 Ways a Digital Marketing Consultant Can Help Grow Your Business
Ad

Similar to PHP 5.5.0 ChangeLog (20)

PPTX
ECMAScript 2015
PDF
A Scala tutorial
PDF
OOPS JavaScript Interview Questions PDF By ScholarHat
PPTX
Introducing PHP Latest Updates
PPT
Scala in a nutshell by venkat
PPTX
Oop2010 Scala Presentation Stal
PPT
Scala presentationjune112011
PPT
New features and enhancement
PPTX
Java 7 & 8 New Features
PDF
Play 2.0
PPT
Svcc Building Rich Applications with Groovy's SwingBuilder
PPT
Spsl v unit - final
PPT
Spsl vi unit final
KEY
JavaScript Growing Up
PDF
HelsinkiJS meet-up. Dmitry Soshnikov - ECMAScript 6
PPTX
C#.net evolution part 2
PPT
Class loader basic
ODT
Best Of Jdk 7
PPTX
Introduction to CDI and DI in Java EE 6
ODP
Bring the fun back to java
ECMAScript 2015
A Scala tutorial
OOPS JavaScript Interview Questions PDF By ScholarHat
Introducing PHP Latest Updates
Scala in a nutshell by venkat
Oop2010 Scala Presentation Stal
Scala presentationjune112011
New features and enhancement
Java 7 & 8 New Features
Play 2.0
Svcc Building Rich Applications with Groovy's SwingBuilder
Spsl v unit - final
Spsl vi unit final
JavaScript Growing Up
HelsinkiJS meet-up. Dmitry Soshnikov - ECMAScript 6
C#.net evolution part 2
Class loader basic
Best Of Jdk 7
Introduction to CDI and DI in Java EE 6
Bring the fun back to java

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Approach and Philosophy of On baking technology
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Machine Learning_overview_presentation.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Teaching material agriculture food technology
Spectral efficient network and resource selection model in 5G networks
Review of recent advances in non-invasive hemoglobin estimation
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Chapter 3 Spatial Domain Image Processing.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Electronic commerce courselecture one. Pdf
Approach and Philosophy of On baking technology
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
sap open course for s4hana steps from ECC to s4
Encapsulation_ Review paper, used for researhc scholars
Machine Learning_overview_presentation.pptx
Machine learning based COVID-19 study performance prediction
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton

PHP 5.5.0 ChangeLog

  • 2. Introduction On 20-June-2013, PHP 5.5.0 rolled out by the core development team. It consists to some bug fixes as well as some new features.
  • 3. Features included Introduced “Generators” and “Coroutines” Generators : It provides easy way to implement simple iterators such as “foreach”. This implementation will save memory. Coroutines will help in cooperative multitasking. You can write a code to iterate a set of data without creating an array in memory, 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 added Now, a finally block can be written after the try, catch block. This block will be executed regardless of whether an exception has 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 included A simplified Password hashing API is introduced  It provides an easy to use wrapper around “crypt()” for creating and managing passwords.  No external library is required. No installation is required. No configuration directives in php.ini  password_hash and password_verify are the functions to be used.
  • 6. Features included Constant array/string dereferencing Array and string literals can now be dereferenced directly to access individual elements and characters echo [abc, xyz, pqr][0]; // results abc. echo „DHIRAJ‟[0]; // results D.
  • 7. Features included Scalar class name resolution added  With the help of “::class” keyword, you can get a string containing the fully qualified name of the Class.  Particularly useful with namespaced classes. namespace NS { class ClassName { } echo ClassName::class; //results NSClassName. }
  • 8. Features included Now empty() can be used on any expression empty() function can be called on not only variables but function returns or any other arbitrary expressions.
  • 9. Features included Non-scalar Iterator key support is added The ability to iterate over an array of arrays and unpack the nested array into 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:2 A: 3; B:4
  • 10. Changes MySQL extension:  This extension has been deprecated, so there will be deprecated warnings on use of this extension. MySQLi extension can be used in place of that.  Support for MySQL 5.6+ has been incorporated in various ways.
  • 11. Many of the bugs have been fixed in this version. The complete change log can be seen on http://php.net/ChangeLog-5.php