Exakat 0.10.5 review

Exakat 0.10.5 review Exakat 0.10.5 (code name : immortal of tiger power) shipped with no less than six new analyzers and a major upgrade of the Zend Framework report. Here is the exakat 0.10.5 review. Could be callable argument Exakat now reports arguments that may be type-hinted with callable. Callable covers every form of callbacks […]

PHP likes sorting too much

PHP likes to sort. Of course, there is sort(), ksort() and all the cousins. But, PHP actually sorts too much. My first encounter with the problem is the infamous array_unique(). Now, this is also affecting glob() and scandir(). I’m looking for others. Until then, check your code. array_unique() is also sorting array_unique() collects distinct values […]

Prevent multiple PHP scripts at the same time

Prevent multiple PHP scripts at the same time Like everything, it all started from a simple problem : how to prevent multiple PHP scripts at the same time. And turned into an odyssey of learning, full of evil traps and inglorious victories. In the end, it works, that’s the most satisfying and it possibly matters to […]

Automatically Enforcing Coding Reference For PHP

Last week, I ran into ‘PHP Dos and Don’ts aka Programmers I Don’t Like‘ on reddit’s PHP group. It features a list of 11 points that the author hates finding in PHP code. I am always keen on reading from such references : they always hold some some interesting insights, some tips and some more polemic […]

6 good practices for use in PHP

6 good practices for ‘use’ in PHP While reviewing code recently, I realized there are no guidelines for use. Every modern code do use ‘use’ (sic), as importing classes from composer or a framework is the norm. There are now quite a few variations in syntax for importing classes or traits. Although the impact on performance […]

Last features in PHP 7.1 (part c)

This is the third part of our series about last features in PHP 7.1. See ‘Upcoming features in PHP 7.1 (part a)‘ and ‘More upcoming features in PHP 7.1 (part b)‘. PHP 7.1 is now RC1 since our last article, so better dive into the code fast. We are now presenting the last batch of […]

7 new PHP static analysis with Exakat 0.6.0

7 new PHP static analysis No less than 7 new analyzers for Exakat, since last week version. Here is a quick review, as they are both varied and interesting. Identical conditions Identical conditions spots members of an complex logical expression that are identical. When several conditions are chained, it happens that some of the conditions […]