<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Php on cmnemoi | Software &amp; ML Engineering</title><link>http://cmnemoi.github.io/tags/php/</link><description>Recent content in Php on cmnemoi | Software &amp; ML Engineering</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 15 Sep 2026 12:00:00 +0200</lastBuildDate><atom:link href="http://cmnemoi.github.io/tags/php/index.xml" rel="self" type="application/rss+xml"/><item><title>Qui paie pour un null ?</title><link>http://cmnemoi.github.io/posts/qui-paie-pour-un-null/</link><pubDate>Tue, 15 Sep 2026 12:00:00 +0200</pubDate><guid>http://cmnemoi.github.io/posts/qui-paie-pour-un-null/</guid><description>Une méthode de recherche qui ne trouve rien renvoie souvent null. Chaque fonction qui l&amp;rsquo;appelle doit alors s&amp;rsquo;en souvenir, et rien, dans son propre code, ne le lui rappelle.
Dans eMush, un jeu multijoueur open source écrit en PHP, une fonction d&amp;rsquo;une dizaine de lignes suffit à le montrer. Elle ne présente rien d&amp;rsquo;anormal à la lecture, et peut pourtant faire planter le jeu en production. Sa dernière version ne contient plus aucune vérification de null, alors qu&amp;rsquo;un joueur peut toujours ne pas avoir la compétence qu&amp;rsquo;elle cherche.</description></item></channel></rss>