Speeding up array_merge() While doing a crowd review of naval battle code at @afup_rennes (in French), it appeared that the ‘no array_merge() in loops’ rule was known but not clear. Indeed, why is it that this function in particular, should be avoided in loops. Hence, this article, with a journey to memory management, coding and […]
The upgrade sandwich With PHP 8.1 released last month, it is time to learn PHP 8.1 new features, and consider upgrading PHP code to PHP 8.0 new features. Wait a second… upgrade to PHP 8.0 ? Surely you mean, 8.1. Migrating to a new PHP version Migrating to a new version is actually a simple […]
Remove static variables One discreet update of PHP 8.1 is the upgrade of PHP static variables behavior in classes : Static variables in methods inheritance. Let’s review what are static variables in PHP, why they were problematic so far, and strategies to upgrade the code to remove this problem. PHP static variables While static properties […]
Installing Exakat to monitor several projects Exakat is the smart Static analysis tool for PHP. It reviews the source for PHP compatibility (8.0, 8.1, 8.2 already, Security, and much more. When running it for several projects, it is convenient to use the ‘projects’ style of installation, more than the ‘in-code’ configuration. The ‘projects’ installation is […]
Prepare for PHP migration with Exakat Exakat detects compatibility issues in your code, for each minor PHP versions since PHP 5.3. It scans the source for function apparence or disappearance, new syntax and behaviors. Here is how to prepare PHP migration with Exakat. init-project-done With a local docker system and access to your code, you […]
Exakat 2.2.3 is out ! The latest release of Exakat is out. It adds support for PHP 8.1 at the Exakat engine level : the new syntax are now recognized, and represented in the internal graph database. This covers enumerations, final constants, first class callable syntax, octal representation and readonly properties. All those are represented as […]
Damien Seguy, CTO of Exakat. Damien is speaking and will present its famous “15 years in the life of elephpant” with the arrival of InPHPinity. The elePHPant who celebrated the release of PHP8.
Damien Seguy, CTO of Exakat. Damien is speaking and will present “How to automate typehinting of PHP Code”. Nowadays, PHP’s typehinting has matured greatly and earned its slot in PHP coder’s tool belt. It is now facing the eternal challenge of catching up with legacy code. Those were built without type checks, leading to explicit […]
Join us at AFUP DAY 2021 TOUR, and listen to Damien Seguy, CTO of Exakat. Damien is a speaker and will present ” Le régime anti-statiques”. see more on the website
Getting Older With PHP Exakat runs continuous audits on over 1750 Open source applications, components and frameworks. This is a reality torture test : any error or unexpected results are reviewed and help update the analysis library and the Exakat engine itself. This is a golden mine of tests and real code : an exceptional […]