Rather than a Follow Friday I thought I would do a Nasty PHP Friday instead.
This is the median length of files in a legacy Yii1 project I am working on. One of over three hundred such files. That in itself wouldn't be a big problem if it weren't for the fact this was written in the time of PHP 5.1 with zero namespaces. The way Yii1 loads files (it does its own autoloading) means there are a number of classes with conflicting names all in the base namespace. Hurrah! 🚀 #nastyphp #php
The fun side of dealing with legacy PHP codebases is finding ini_set thrown around like a condiment.
This example is made more entertaining by the fact it now actually reduces the resource available as the server is set up to provide 3GB RAM and max execution of five minutes for report generation. 🚀 #nastyphp #php
Open source. Open community. We are dedicated to building and enriching the PHP community.