PHP Advent calendar With PHP 7.2 out of the oven, literally yesterday, and the final month of the year starting, it is time for a PHP advent calendar. Every day until the 25th of December, we’ll reveal a new smelly treat. Yes, smelly treat, like a code smell. Common anti-patterns in PHP code leads to […]
Exakat PHP Index of coding Not using @ is the poster child of good practices. It’s also looked upon, as an impossible goal. Did you know that the @ operator is only merely used by 50% of PHP applications ? Same for parenthesis with include and co : don’t use them, like 50% of the […]
Exakat 1.0.5 review The last Exakat version for November 2017 has been published. This time, it contains a good list of upgrades and fixes, and no less than three new analysis and a new report : regex validation, call parent:: first and uncommon environment variables. The reports are inventories, presenting any email, URL, SQL or $_GET index […]
Exakat 1.0.4 review Exakat 1.0.4 is out, in time to help migrate to PHP 7.2. November 30th, the next great version of PHP will be published. It is now time to review your PHP code. So, this week, we worked hard to finish the impressive line of update that PHP 7.2 is offering. In the […]
Get ready for PHP 7.2 PHP 7.2 is around the corner, and shall be out soon, thanks to the hard work of Remi Collet (@RemiCollet), Sara Golemon (@saramg) and countless others that run tests and submit bug reports. PHP 7.2 is already RC6, and the documentation has even been updated : it is high time to get […]
Exakat 0.12.16 review Exakat 0.12.16 is the version before Zend Con week ! We’ll be attending and speaking at Zend Con next week, then to PHP Québec, by the end of October. Come and let’s have a chat about code reviews ! This week, we upgraded Zend Framework 3’s analysis with all the most recent component version. […]
Exakat 0.12.15 review Exakat 0.12.15 is the second October release. Exakat has three new analysis: one target security with uploaded files, another unanchored regex, and the last is about variables that may hold different types. Also, every audit now sports a name, for easier differentiation: after a while, multiples audits may look the same. Now, […]
Make everything private in your PHP classes It is a good recommendation to make everything private in a class : constants, methods, properties. With private, comes a tighter control on the element : no one from outside may use it, limiting the unwanted impact on the object. Of course, some of the class has to be accessible […]
Exakat 0.12.12 review Exakat 0.12.12 is out. Exakat has added some new analysis this week : support for ext/parle extension, help on pathinfo() usage, check on pathinfo() and array_values(). Exakat also includes getMessage() into the ‘don’t echo error message’, and ‘No concat in a loop’ covers new situations. Welcome to exakat 0.12.12! echo getMessage() in […]
Exakat 0.12.4 review Exakat 0.12.4 for your pleasure. Exakat has progressed on multiples fronts last week : PHP 7.2 is now fully covered for migration. Exakat has now a new favorite : and / &&; a new report for the ‘object’ keyword, a suggestion to reduce isset() calls, and a magic error with arrays. Finally, […]