The Boolean paradox
A small comparison just cost me half an hour of valueable time.
In an ongoing series, I shall present another PHP WTF: The Boolean paradox.
Rants on code, security, randomness and games
A small comparison just cost me half an hour of valueable time.
In an ongoing series, I shall present another PHP WTF: The Boolean paradox.
As of version 5.3 of PHP, certain features and functions are considered deprecated. It comes with the territory. In major version changes, new features are added while old stuff is discarded. Unsurprisingly – and lucky for me, with that change in versions comes yet another WTF for me to rant about.
I seriously have to double-check my upgrading policies. Only thanks to WordPress’ new requirements have I decided to finally update this server.
Though I had to say goodbye to 526 days of uptime, I kinda feel better now knowing it’s not running on Debian Etch anymore.
As the first entry to the list of my PHP-related WTFs, I present:
The whitespace of death
This one has taken me almost a full hour to sort out. There may be some good features to PHP, yet this one I don’t think is even one. It should be considered a bug. As my experience has grown in reporting bugs myself or trying to report a bug, I reconsidered and chose not to report it as a “bug”.