--TEST-- init resource with custom home_dir --SKIPIF-- --FILE-- $homedir)); gnupg_seterrormode($gpg, gnupg::ERROR_WARNING); gnupg_import($gpg, $testkey); $imported = false; foreach (glob("$homedir/*") as $filename) { $imported = true; } var_dump($imported); $engine = gnupg_getengineinfo($gpg); var_dump($engine['home_dir'] === $homedir); ?> --EXPECT-- bool(true) bool(true) --CLEAN--