The example on how to fallback produces a syntax error on PHP 5.2:
-bash-3.2$ cat test.php
<?php
$ip = getenv('REMOTE_ADDR', true) ?: getenv('REMOTE_ADDR')
?>
-bash-3.2$ /web/cgi-bin/php5 test.php
Content-type: text/html
<br />
<b>Parse error</b>: syntax error, unexpected ':' in <b>/home/content/25/11223125/test.php</b> on line <b>3</b><br />
On PHP 5.2, one must write
$ip = getenv('REMOTE_ADDR', true) ? getenv('REMOTE_ADDR', true) : getenv('REMOTE_ADDR')