Skip to content

Commit

Permalink
fix php version compare
Browse files Browse the repository at this point in the history
  • Loading branch information
lihsai0 committed Apr 17, 2023
1 parent 6e7df9c commit 9123a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Qiniu/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function explodeUpToken($upToken)
}

// polyfill ucwords for php version < 5.4.32
if (phpversion() < "5.4.32") {
if (version_compare(phpversion(), "5.4.32") < 1) {
function ucwords($str, $delimiters = " \t\r\n\f\v")
{
$delims = preg_split('//u', $delimiters, -1, PREG_SPLIT_NO_EMPTY);
Expand Down

0 comments on commit 9123a1d

Please sign in to comment.