Permalink
Browse files

Bump php requirement to v5.6+

  • Loading branch information...
LeoColomb committed Jan 14, 2019
1 parent cf58d90 commit f2f617d09449d18558f9c614b7040fdc4c0994b8
Showing with 8 additions and 12 deletions.
  1. +0 −4 .travis.yml
  2. +1 −1 composer.json
  3. +2 −2 composer.lock
  4. +2 −2 includes/functions-formatting.php
  5. +2 −2 includes/functions-install.php
  6. +1 −1 readme.html
@@ -6,10 +6,6 @@ env:

matrix:
include:
- php: 5.3
dist: precise
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
@@ -16,7 +16,7 @@
"source": "https://github.com/YOURLS/YOURLS"
},
"require": {
"php": ">=5.3",
"php": ">=5.6",
"ext-pdo": "*",
"ozh/bookmarkletgen": "1.2",
"ozh/phpass": "1.2.0",

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -250,7 +250,7 @@ function yourls_seems_utf8( $str ) {
* Check for PCRE /u modifier support. Stolen from WP.
*
* Just in case "PCRE is not compiled with PCRE_UTF8" which seems to happen
* on some distros even for PHP 5.3
* on some distros
*
* @since 1.7.1
*
@@ -655,7 +655,7 @@ function yourls_encodeURI( $url ) {
'%27' => '\'', '%28' => '(', '%29' => ')', '%23' => '#',
) );
// @TODO:
// Known limit: this will most likely break IDN URLs such as http://www.académie-française.fr/
// Known limit: this will most likely break IDN URLs such as http://www.académie-française.fr/
// To fully support IDN URLs, advocate use of a plugin.
return yourls_apply_filter( 'encodeURI', $result, $url );
}
@@ -36,11 +36,11 @@ function yourls_get_database_version() {
}
/**
* Check if PHP > 5.3
* Check if PHP > 5.6
*
*/
function yourls_check_php_version() {
return(defined('PHP_VERSION_ID') && PHP_VERSION_ID > 50300);
return version_compare( PHP_VERSION, '5.6.0', '>=' );
}
/**
@@ -590,7 +590,7 @@ <h2 class='first'>FAQ</h2>
<h3 id="requirement">Server requirements</h3>
<ol>
<li>A server with <strong>mod_rewrite</strong> enabled</li>
<li>At least <strong>PHP 5.3</strong></li>
<li>At least <strong>PHP 5.6</strong></li>
<li>At least <strong>MYSQL 5</strong></li>
<li><em>Note</em>: YOURLS can also run on <a href="https://github.com/YOURLS/YOURLS/wiki/Nginx-configuration">Nginx</a> and <a href="https://github.com/lylebrown/YOURLS-Cherokee">Cherokee</a></li>
</ol>

0 comments on commit f2f617d

Please sign in to comment.