From 45645f820a355948e48fc62bdd99ac1062b34f91 Mon Sep 17 00:00:00 2001 From: mabe Date: Thu, 15 Oct 2009 21:20:55 +0000 Subject: [PATCH] Zend_Session_SessionTest::__construct - use escapeshellarg to escape php.ini path git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18558 44c647ce-9c0f-0410-b52a-842ac1e357ba --- tests/Zend/Session/SessionTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Zend/Session/SessionTest.php b/tests/Zend/Session/SessionTest.php index 0c144a6e1..44c8b7d3a 100644 --- a/tests/Zend/Session/SessionTest.php +++ b/tests/Zend/Session/SessionTest.php @@ -67,7 +67,8 @@ class Zend_SessionTest extends PHPUnit_Framework_TestCase public function __construct($name = NULL, array $data = array(), $dataName = '') { parent::__construct($name, $data, $dataName); - $this->_script = 'php -c \'' . php_ini_loaded_file() . '\' ' + $this->_script = 'php ' + . '-c ' . escapeshellarg(php_ini_loaded_file()) . ' ' . escapeshellarg(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'SessionTestHelper.php'); $this->_savePath = ini_get('session.save_path'); -- 2.11.4.GIT