$30 off During Our Annual Pro Sale. View Details »

Last Month in PHP - September 2013

John Kary
September 21, 2013

Last Month in PHP - September 2013

Kansas City PHP User Group
September 21, 2013

John Kary

September 21, 2013
Tweet

More Decks by John Kary

Other Decks in Programming

Transcript

  1. Last Month in PHP
    September 21, 2013
    Kansas City PHP User Group
    Slides: http://johnkary.net/talks
    John Kary
    @johnkary

    View Slide

  2. Releases

    View Slide

  3. 5.5.(3|4)
    5.4.(19|20)
    Upgrade NOW!

    View Slide

  4. 3.6.1
    Maintenance & Security fixes
    Upgrade NOW!
    • Block unsafe PHP unserialization that could lead to remote code execution.
    • Prevent a user with an Author role, using a specially crafted request, from
    being able to create a post “written by” another user.
    • Fix insufficient input validation that could result in redirecting or leading a user
    to another website.

    View Slide

  5. PHP Object Injection
    http://vagosec.org/2013/09/wordpress-php-object-injection/

    View Slide

  6. 2.2.3
    2.2.4
    Bug fixes
    Upgrade Whenever

    View Slide

  7. 2.3.4
    2.2.6
    2.4 due November 2013
    Upgrade Whenever

    View Slide

  8. No new release
    some radical community members
    have forked Drupal into
    Backdrop CMS

    View Slide

  9. BackdropCMS.org

    View Slide

  10. Looking Towards
    PHP 5.6

    View Slide

  11. Importing
    namespaced functions
    ACCEPTED
    https://wiki.php.net/rfc/use_function

    View Slide

  12. namespace John\Say {
    function hello() {
    return 'Hello World!';
    }
    }
    Define it
    namespace {
    use John\Say;
    echo Say\hello();
    // Hello World!
    }
    Use it
    Using namespaced functions as of PHP <= 5.5

    View Slide

  13. namespace John\Say {
    function hello() {
    return 'Hello World!';
    }
    }
    Define it
    namespace {
    use function John\Say\hello;
    echo hello();
    // Hello World!
    }
    Use it
    Using namespaced functions as of PHP >= 5.6

    View Slide

  14. Syntax for
    Variadic Functions
    https://wiki.php.net/rfc/variadics
    ACCEPTED

    View Slide

  15. Variadic Functions
    5.5 function sum() {
    return array_sum(func_get_args());
    }
    echo sum(2, 4, 6, 8); // 20
    5.6 function sum(...$args) {
    return array_sum($args);
    }
    echo sum(2, 4, 6, 8); // 20

    View Slide

  16. Variadic Functions - Type Hinting
    5.6 function weekends(\DateTime ...$weekends) {
    foreach ($weekends as $date) {
    echo $date->format('Y-m-d') . ", ";
    }
    }
    $sat1 = new \DateTime('September 21, 2013');
    $sun1 = new \DateTime('September 22, 2013');
    $sat2 = new \DateTime('September 28, 2013');
    $sun2 = new \DateTime('September 29, 2013');
    echo weekends($sat1, $sun1, $sat2, $sun2);
    // 2013-09-21, 2013-09-22, 2013-09-28, 2013-09-29,

    View Slide

  17. Conferences / Events

    View Slide

  18. View Slide

  19. View Slide

  20. View Slide

  21. View Slide

  22. ZendCon.com
    1-day Workshops
    2.5 Days of Sessions
    • Migrating ZF1 to ZF2
    • Testing Legacy PHP Applications
    • JS Communication APIs (for mobile)
    • User Acceptance Testing with Selenium
    • Intro to using Composer
    • RESTful APIs with ZF2
    • DOs and DONTs of MongoDB
    • MANY MORE!

    View Slide

  23. skiphp.com

    View Slide

  24. In February!

    View Slide

  25. View Slide

  26. View Slide

  27. Minneapolis, MN
    March 15-16, 2014
    midwestphp.org
    Announced!

    View Slide

  28. Introduction to PHP workshop
    by php[architect]
    $250
    9am - 4pm
    March 14, 2014
    Minneapolis, MN
    March 15-16, 2014
    midwestphp.org

    View Slide

  29. Chicago
    May 19-20, 2014
    tek.phparch.com
    Announced!

    View Slide

  30. Chicago
    May 19-20, 2014
    tek.phparch.com

    View Slide

  31. fin
    http://johnkary.net/talks
    @johnkary

    View Slide