Releases: hestiacp/phpquoteshellarg
Releases · hestiacp/phpquoteshellarg
v1.1.0
now support int and float
function quoteshellarg(string | int | float $arg): string
Now require PHP>=8.0.0 (up from PHP7.2.0)
var_dump(array(
'INF' => quoteshellarg(INF),
'NAN' => quoteshellarg(NAN),
'1.234567890' => quoteshellarg(1.234567890),
123 => quoteshellarg(123),
));
array(4) {
["INF"]=>
string(5) "'INF'"
["NAN"]=>
string(5) "'NaN'"
["1.234567890"]=>
string(20) "'1.2345678899999999'"
[123]=>
string(5) "'123'"
}
v1.0.2
Add support for Cygwin
Even Hestia CP doesn't use it it is also available for everybody to use.
v1.0.1-p3
Fix typo
v1.0.1-p2
Rename back with smaller case
v1.0.1-p1
Update composer.json
v1.0.1
fix autoload