beberlei / env

PHP PECL extension for loading 12factor env variables from a file
MIT License
24 stars 3 forks source link

fix PHP 7 dtor, fix #3 #4

Closed remicollet closed 8 years ago

remicollet commented 8 years ago

The memory free here is the one allocated in php_env.c / php_env_ini_parser_cb, so by strndup in both case.

Valgrind seems happy (php run-tests.php -m, php 5.6.16 and 7.0.1)