This post originated from an RSS feed registered with PHP Buzz
by Ben Ramsey.
Original Post: Undefined Constant Is a String?
Feed Title: Ben Ramsey
Feed URL: http://benramsey.com/tag/php/feed/
Feed Description: PHP and Other Techno-babble
From the I-noticed-this-one-day-while-looking-at-a-co-worker’s-code department comes a tale about the use of undefined constants in PHP—and relying on this twisted “feature” to make an application function properly.
So, there I was, looking over the shoulder of a colleague, trying to help him debug an application, when I saw something that struck me as quite odd.
“Where is that [...]