kphp icon indicating copy to clipboard operation
kphp copied to clipboard

Implemented putenv()

Open comm644 opened this issue 1 year ago • 0 comments

Please integrate putenv() function and add unit-tests. I did't understood how to add unit-tests.

test code:

<?php


$locale = 'ru_RU.UTF-8';
putenv('LC_ALL=' . $locale);

$result = getenv("LC_ALL");

if  ($result !== $locale ) throw new \RuntimeException("putenv() does not work");
echo "ok\n";

comm644 avatar Mar 11 '23 20:03 comm644