Skip to content

Instantly share code, notes, and snippets.

@galvao
Created September 5, 2014 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save galvao/eb78c79acc7acacc96d0 to your computer and use it in GitHub Desktop.
Save galvao/eb78c79acc7acacc96d0 to your computer and use it in GitHub Desktop.
On what I call "functionception" (see comment)
<?php
/* Proper way to fix this: https://github.com/kriwil/OpenX/blob/6804041a8f74d80f6fae4df3320576cc3bba06ff/pre-check.php#L252
Note that phpversion is also implemented in PHP4, but couldn't find the correct minor in which it was added, but let's
face it: If you're running PHP prior to 4.3, you're already doing a lot of wrong sh*t.
Also, can't find the correct minor on which function_exists was added, but it seems to begin working properly as of 4.3.0.
*/
if ((float)phpversion() > 4.3) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment