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.
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
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
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!