diff --git a/Crypt/GPG/Engine.php b/Crypt/GPG/Engine.php index 62eade4..9ff743d 100644 --- a/Crypt/GPG/Engine.php +++ b/Crypt/GPG/Engine.php @@ -1510,7 +1510,7 @@ private function _openSubprocess() $agentDescriptorSpec, $this->_agentPipes, null, - $env, + array_filter($env, 'is_scalar'), array('binary_pipes' => true) ); @@ -1663,7 +1663,7 @@ private function _openSubprocess() $descriptorSpec, $this->_pipes, null, - $env, + array_filter($env, 'is_scalar'), array('binary_pipes' => true) );