Changeset 1017
- Timestamp:
- 03/20/2008 05:47:00 PM (16 months ago)
- Files:
-
- 1 modified
-
branches/1.1.6.4/actions/checkversion.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1.6.4/actions/checkversion.php
r1015 r1017 46 46 47 47 // Attempt to get latest_wikka_version.txt 48 // The action won't work on Windows PHP 4.3.0 or less48 // The action won't work on Windows PHP <4.3.0 49 49 $timeout = CHECKVERSION_CONNECTION_TIMEOUT; 50 if (TRUE === strpos(strtolower(PHP_OS), 'windows')) 50 if (FALSE !== strpos(strtolower(PHP_OS), 'windows') && 51 TRUE === version_compare(PHP_VERSION, '4.3.0', '<')) 51 52 { 52 53 if ($vars['display'] == "debug") 53 54 { 54 echo '<span class="debug">[Windows PHP does not support this feature]</span>'."\n"; 55 } 56 return; 57 } 58 else if (FALSE === version_compare(PHP_VERSION, '4.3.0', '>=')) 59 { 60 if ($vars['display'] == "debug") 61 { 62 echo '<span class="debug">[PHP < 4.3.0 does not support this feature]</span>'."\n"; 55 echo '<span class="debug">['.PHP_OS.' PHP '.PHP_VERSION.' does not support this feature]</span>'."\n"; 63 56 } 64 57 return; … … 72 65 echo '<span class="debug">[allow_url_fopen disabled]</span>'."\n"; 73 66 } 67 return; 74 68 } 75 69 else … … 93 87 echo '<span class="debug">[Cannot initiate socket connection]</span>'."\n"; 94 88 } 95 // Return gracefully on error96 89 return; 97 90 }