Created
September 5, 2014 01:16
-
-
Save galvao/eb78c79acc7acacc96d0 to your computer and use it in GitHub Desktop.
On what I call "functionception" (see comment)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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