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 […]
First step with exakat ‘One must review code to live, rather than live to review code’. Reviewing code is part of everyday’s coding life, and it should be kept just what is it : a short trip back to the code that teaches us about what we did. There are three kinds of teaching in code […]
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 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 […]
There are always several ways to do the same things in PHP. Some of them are so close that one even wonder which one to choose. In fact, if they are interchangeable, why even choose ? Here is a list of seven syntax you can choose in PHP, freely. The choice relies first on technical ground, […]
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 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 […]
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 […]
Upcoming features in PHP 7.1 The time to meet and greet PHP 7.0 is not so distant, and PHP 7.1 is already knocking at the door ! Since last year, the PHP group has been busy adding features, fixing old ones and keeping the new version as fast as possible : yet, PHP 7.1 managed to have […]
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 […]