Skip to content

Releases: hestiacp/phpquoteshellarg

v1.1.0

20 Sep 14:48
3499670
Compare
Choose a tag to compare

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

26 Jul 11:02
7fd1a3a
Compare
Choose a tag to compare

Add support for Cygwin

Even Hestia CP doesn't use it it is also available for everybody to use.

v1.0.1-p3

17 Jul 14:48
89cbab9
Compare
Choose a tag to compare
Fix typo

v1.0.1-p2

17 Jul 14:11
d5ab093
Compare
Choose a tag to compare
Rename back with smaller case

v1.0.1-p1

17 Jul 13:36
6c8c93a
Compare
Choose a tag to compare
Update composer.json

v1.0.1

17 Jul 13:24
Compare
Choose a tag to compare
fix autoload