PHP 5.3
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

PHP 5.3

on

  • 2,654 views

 

Statistics

Views

Total Views
2,654
Views on SlideShare
2,564
Embed Views
90

Actions

Likes
1
Downloads
24
Comments
0

5 Embeds 90

http://davidemendolia.blogspot.com 39
http://davideme.blogspot.com 37
http://intranet 8
http://davideme.blogspot.com.es 5
http://webcache.googleusercontent.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

PHP 5.3 Presentation Transcript

  • 1. PHP 5.3
  • 2. DAvide Mendolia http://davidemendolia.blogspot.com dmendolia@php.net lead developer APM (Alternative PHP Monitor) Contributor of php-benchmark ZCE PHP5 - ZF, CMDEV Working @ AUSY
  • 3. Will Be Release...
  • 4. 30 June 2009
  • 5. Features Language Extensions No major compatibility break
  • 6. NAmespace Avoid things like : Zend_Search_Lucene_Analysis_Analyzer_Common_Tex t_CaseInsensitive
  • 7. NAMESPACE namespace blueplanet; class Animal { public function saveTheWorld($when) { } } $animal = new blueplanetAnimal(); $animal->saveTheWorld('now'); // or use blueplanet as caprica; $animal = new capricaAnimal(); $animal->saveTheWorld('now');
  • 8. Why ? namespace foo::bar; function baz(){ echo "func";} namespace foo; class bar { public static function baz() { echo "method"; } } foo::bar::baz();
  • 9. Still the Problem with MaC keyboard Use Alt + Shift + /
  • 10. LAMBDA FUNCTIONS $lambda = function() { echo "particles"; } $lambda(); $list = array(0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89); array_map( function($n){ return $n * $n;}, $list );
  • 11. LAMBDA FUNCTIONS $lambda = create_function('', 'echo "particles";' ); $lambda(); $list = array(0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89); $func = create_function('$n', 'return $n * $n;'); array_map( $func, $list );
  • 12. Closures Usage differ from javascript kind of parameter passed at declaration time $container = "bottle"; $closure = function() use ($container) { echo $container; } $closure();
  • 13. FunctOrs class Functor { public function __invoke() { echo "functionoids"; } } $functor = new Functor; $functor();
  • 14. Extensions FileInfo Intl Phar SQLite3 Mysql(mysqlnd)
  • 15. FileInfo Based on libmagic finfo_file() return the mime type based on the structure of the file
  • 16. Intl Internationalization Based on ICU library (International Components for Unicode) Originally planned for PHP 6
  • 17. Intl - Classes Locale : Identifier for a language, culture or regional specific Collator : string comparison locale-sensitive NumberFormatter : format numbers, currencies and percentages in locale-sensitive IntDateFormatter : format date locale-sensitive MessageFormatter : format string with time, date, number or choice input
  • 18. Phar PHP Archive Similar to Jar concept from Java Allow the possibility to put an entire applications in one file. Extensions not required to execute the file Facilitate the distribution Can improve performance with a byte code cache system
  • 19. Mysqlnd Mysql Native Driver ext/mysql, ext/mysqli, PDO_MYSQL better performance fetching buffered result
  • 20. DEPRECATED safe_mode register_globals register_long_arrays magic_quotes_gpc ...
  • 21. More info http://www.php.net/migration53
  • 22. Questions ?