Skip to content

Commit

Permalink
Fix sodium_increment() behavior when the old libsodium extension is i…
Browse files Browse the repository at this point in the history
…nstalled on PHP 5
  • Loading branch information
paragonie-security committed Aug 29, 2018
1 parent 527e0a9 commit bbb7fac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -2492,7 +2492,8 @@ public static function increment(&$var)
return;
}
if (self::use_fallback('increment')) {
@call_user_func('\\Sodium\\increment', $var);
$func = '\\Sodium\\increment';
$func($var);
return;
}

Expand Down

0 comments on commit bbb7fac

Please sign in to comment.