Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Présentation de PHP 5.4 [FR]

1,229 views

Published on

Published in: Technology
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Download or read that Ebooks here ... ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS/FILE INTO AVAILABLE FORMAT - (Unlimited) ......................................................................................................................... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes Christian, Classics, Comics, Contemporary, Cookbooks, Art, Biography, Business, Chick Lit, Children's, Manga, Memoir, Music, Science, Science Fiction, Self Help, History, Horror, Humor And Comedy, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Présentation de PHP 5.4 [FR]

  1. 1. Nouvelle version, PHP 5.4 Versions de PHP Arnaud Lemercier Communauté Performance arnaud@wixiweb.fr Fonctionnalités @arnolem Migration http://www.wixiweb.fr Production @wixiweb
  2. 2. < Versions de PHP />De Personal Home Page / Form Interpreter à PHP Hypertext Preprocessor
  3. 3. Historique de PHP 1995 - PHP/FI créé par Rasmus Lerdorf 1998 - PHP 3.0 Réécriture par Andi Gutmans et Zeev Suraski 2000 - PHP 4.0 Zend Engine / Modularité / Performance / Session 2004 - PHP 5.0 Zend Engine 2 / POO / Exceptions / SPL / simpleXML 2009 - PHP 5.3 Namespace / PHAR / Fn anonyme / Late Static Binding
  4. 4. PHP 5.4 Version Mineure ou Majeure ? MAJEURE MINEURE Rupture de compatibilité  Nouvelles fonctionnalités Ex PHP 6  Pas de rupture de compatibilité  Mvt dExtensions PECL <=> Core REVISION Ex PHP 5.4 Correction de bug Ex PHP 5.4.1
  5. 5. < Communauté />
  6. 6. Restructuration de la communauté RFC pour chaque nouvelles fonctionnalités https://wiki.php.net/rfc/voting Un nouvelle version par an (support 2 + 1 an) https://wiki.php.net/rfc/releaseprocess De SVN vers GIT (sur php.net + miroir github) https://wiki.php.net/vcs/gitworkflow DEMARCHE QUALITE
  7. 7. < Performance />Une réécriture en profondeur
  8. 8. Performances nettement améliorées« Nous avons réécrit certaines parties du moteur PHP pour quilconsomme moins de mémoire et supporte plus dutilisateurssimultanés » Zeev Suraski
  9. 9. Performance PHP 5.3 > PHP 5.4Drupal Zend Framework Micro Bench+7% requêtes +21% requêtes -50% tps d’exécution-50% mémoire -23% mémoireWordPress Doctrine 2 Symfony 2 (PHPUnit)+9% requêtes -40% mémoire -55% mémoire-40% mémoire -35% tps d’exécution
  10. 10. < Fonctionnalités />Les nouveaux joujoux des développeurs
  11. 11. Short Open Tags assumé <?= $login ?>
  12. 12. Serveur web de développement test intégré Serveur web uniquement pour des tests Possibilité de définir un fichier de routage en php
  13. 13. Type Callable / Closure / Fonction anonyme
  14. 14. Short Array Syntax<?PHP $array = [val1, val2] ; ?>
  15. 15. Arrays deferencing <?= fnc() [index] ?>
  16. 16. Appel direct de méthode dinstance <?= (new Obj()) → method() ?>
  17. 17. Invocations statiques dynamiques (call_user_func) <?PHP controller::{$action}() ; ?>
  18. 18. Notation Binaire<?PHP $foo = 0b1100101010 ; ?>
  19. 19. Traits / Héritage multiple horizontal (1/4)  Réutilisation de fonctionnalité  Template de classe (Singleton)  Mais attention aux conflits entre traits  Ne remplace pas la logique dhéritage (parenté)  Priorités des méthodes : Classe > Trait > Parent
  20. 20. Traits / Héritage multiple horizontal (2/4) Attention à la déclaration de propriétés dans les traits ! PAF : Pastèque ! ^^
  21. 21. Traits / Héritage multiple horizontal (3/4)
  22. 22. Traits / Héritage multiple horizontal (4/4)Gestion des conflits entre méthodes
  23. 23. Objet comme fonction Ajout de la méthode magique __invoke()
  24. 24. Amélioration des erreursphp -r class abc fooPHP 5.3 :PHP Parse error: syntax error, unexpected T_STRING,expecting { in Command line code on line 1PHP 5.4 :PHP Parse error: syntax error, unexpected foo (T_STRING),expecting { in Command line code on line 1
  25. 25. Progression de lupload dun fichier
  26. 26. < Migration />Que faut-il auditer dans vos applications ?
  27. 27. Migration : Incompatibilité Consultez le guide de DIRECTIVES migration :  Safe Mode http://php.net/migration54  Magic Quotes  Register GlobalsFONCTIONS LANGAGE  session_is_registered(),  break $x ; continue $x session_register() et  htmlspecialchars() et session_unregister(). htmlentities() en UTF-8 par défaut  Ext/SQLite
  28. 28. < Production /> Je suis FAN !On linstalle sur tous nos serveurs ?
  29. 29. PHP 5.4 : Pas de précipitation● La révision PHP 5.4.1 est déjà prévue pour le 25/04● Les IDE et outils ne sont pas encore tous compatibles● PHP 5.4 nest pas encore dans les dépôts officiels (Linux)● Les CMS ne sont pas tous compatibles (Joomla 1.x, spip, ...)● Attention : OVH propose PHP 5.4 RC sur les mutualisés● Le patch de sécurité Suhosin nest pas encore disponible● APC pour PHP 5.4 est en BETA
  30. 30. CONTACT arnaud@wixiweb.fr Twitter : @arnolemhttp://www.wixiweb.fr

×