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.

Last Month in PHP - March 2017

120 views

Published on

An overview of the latest news and interesting developments across PHP from March 2017: new language features, RFCs, community news, upcoming conferences and the latest versions of popular frameworks and platforms.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Last Month in PHP - March 2017

  1. 1. Last Month in PHP March 2017 Kansas City PHP User Group
  2. 2. PHP Patch Releases PHP 7.0.17 ● Bug fixes ● php.net/ChangeLog-7.php#7.0.17 PHP 7.1.3 ● Bug fixes ● php.net/ChangeLog-7.php#7.1.3
  3. 3. Upcoming Features in PHP RFC Deprecate and Remove Bareword (Unquoted) Strings ● Target: 7.2 ● tl;dr: Change E_NOTICE to E_WARNING when using unquoted strings; throw Error in PHP 8.0. ● Fixes this HUGE caveat in the docs: “Why is $foo[bar] wrong?” (added May 2001) ○ us3.php.net/manual/en/language.types.arr ay.php#language.types.array.foo-bar ● wiki.php.net/rfc/deprecate-bareword-string s This Currently Works (smh) $foo = flase; // typo! // ... if ( $foo ) { var_dump($foo); // string(5) "flase" } $found = false; foreach ( $list as $item ) { if ( is_null($item) ) { contniue ; // this statement issues a notice and does nothing } // lines assuming $item is not null }
  4. 4. Upcoming Features in PHP RFC Extended String Types For PDO ● Target: 7.2 ● tl;dr: Allows for “national character” type of SQL-92; used since MySQL 5.7 & MSSQL 2008 ● Bitwise-OR flags to PDO::PARAM_STR: ○ PDO::PARAM_STR_NATL - the value should be quoted with the N-prefix ○ PDO::PARAM_STR_CHAR - the value should NOT be quoted with the N-prefix ● PDO::ATTR_DEFAULT_STR_PARAM ○ Says, “what follows is really a Bitwise-OR to PDO::PARAM_STR ● wiki.php.net/rfc/extended-string-types-for-p do $db->quote('über', PDO::PARAM_STR | PDO::PARAM_STR_NATL); // N'über' $db->quote('A'); // 'A' $db->setAttribute( PDO::ATTR_DEFAULT_STR_PARAM, PDO::PARAM_STR_NATL); $db->quote('über'); // N'über' $db->quote('A', PDO::PARAM_STR | PDO::PARAM_STR_CHAR); // 'A'
  5. 5. CMSes: Drupal Drupal 8.2.7 ● Drupal 8.2.7 - Upgrade! ○ Security Patch ■ Fixes Cross-Site Forgery Requests in Admin ■ Fixes remote-code execution ○ Known Regression (fixed in 8.3, to be released this month) ■ Useful class removed from Search Block: “search-block-form” ○ drupal.org/project/drupal/releases/8.2.7
  6. 6. CMSes: WordPress WordPress 4.7.3 - Upgrade! ● Security update - Upgrade! ○ Fixes 6 security issues: ■ 3 Cross-Site Scripting (XSS) ■ 1 Cross-site request forgery (CSRF) ○ Contains 39 maintenance fixes ● wordpress.org/news/2017/03/wordpress-4-7-3-security-and-maintenance-rele ase/
  7. 7. Frameworks - CakePHP CakePHP 2.9.[6, 7], 3.4.[3, 4] ● 2.9.6 ○ Bug fixes: bakery.cakephp.org/2017/02/28/cakephp_296_released.html ● 2.9.7 ○ Bug fixes: bakery.cakephp.org/2017/04/01/cakephp_297_released.html ● 3.4.3 ○ Bug fixes & new features: bakery.cakephp.org/2017/03/09/cakephp_343_released.html ● 3.4.4 ○ Bug fixes & new features: bakery.cakephp.org/2017/03/28/cakephp_344_released.html
  8. 8. Frameworks - Laravel Laravel 5.4.[14, 15, 16] ● Laravel 5.4 ○ Maintenance releases ○ github.com/laravel/framework/blob/5.4/CHANGELOG-5.4.md
  9. 9. Frameworks - Symfony Symfony 3.2.[5, 6], 2.8.18, 2.7.25 ● Maintenance Releases ○ symfony.com/blog/symfony-2-7-25-released ○ symfony.com/blog/symfony-2-8-18-released ○ symfony.com/blog/symfony-3-2-5-released ○ symfony.com/blog/symfony-3-2-6-released
  10. 10. Frameworks - Zend ZF 3.0 ● No updates
  11. 11. PHP: The Right Way ● No updates in March phptherightway.com ● Note: Every open-source project can use your help with documentation. What are you waiting for?
  12. 12. PHP Conferences Lonestar PHP 2017 ● Apr 20-22 - Dallas, TX ● lonestarphp.com DrupalCon Baltimore ● April 24-28 - Baltimore, MD ● events.drupal.org/baltimore2017 PHP Unicorn Online ● May 4 - Online ● phpunicorn.com PHP[TEK] 2017 ● May 24-26 - Atlanta, GA ● tek.phparch.com
  13. 13. PHP Conferences - Continued Day Camp for Developers ● June 2 - Online ● daycamp4developers.com CoderCruise 2017 ● July 16-23 - New Orleans, LA ● codercruise.com
  14. 14. Nomad PHP (Online) - April 20 Nomad PHP EU - 01:00 PM CDT Modern SQL ● Elizabeth Smith (@auroraeosrose) ● nomadphp.com/modern-sql Nomad PHP US - 08:00 PM CDT Does Your Code Measure Up? ● Adam Culp (@AdamCulp) ● nomadphp.com/does-your-code-measure- up
  15. 15. Next Month in KCPHPUG ● Call for papers!

×