Skip to content

Commit b7a6473

Browse files
committedApr 17, 2023
fix php version compare
1 parent 6e7df9c commit b7a6473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Qiniu/functions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function explodeUpToken($upToken)
280280
}
281281

282282
// polyfill ucwords for php version < 5.4.32
283-
if (phpversion() < "5.4.32") {
283+
if (version_compare(phpversion(), "5.4.32") < 0) {
284284
function ucwords($str, $delimiters = " \t\r\n\f\v")
285285
{
286286
$delims = preg_split('//u', $delimiters, -1, PREG_SPLIT_NO_EMPTY);

0 commit comments

Comments
 (0)
Please sign in to comment.