diff --git a/tests/simpletest/shell_tester.php b/tests/simpletest/shell_tester.php old mode 100644 new mode 100755 index fd8bca70fb..b84af7b534 --- a/tests/simpletest/shell_tester.php +++ b/tests/simpletest/shell_tester.php @@ -38,6 +38,7 @@ class SimpleShell { */ function execute($command) { $this->_output = false; + $ret = null; exec($command, $this->_output, $ret); return $ret; } diff --git a/tests/simpletest/socket.php b/tests/simpletest/socket.php index 3ad5a9ff4a..1ba7891657 100755 --- a/tests/simpletest/socket.php +++ b/tests/simpletest/socket.php @@ -87,6 +87,8 @@ class SimpleSocket extends SimpleStickyError { */ function SimpleSocket($host, $port, $timeout, $block_size = 255) { $this->SimpleStickyError(); + $error_number = 0; + $error = ''; if (! ($this->_handle = $this->_openSocket($host, $port, $error_number, $error, $timeout))) { $this->_setError("Cannot open [$host:$port] with [$error] within [$timeout] seconds"); return; diff --git a/tests/simpletest/test_case.php b/tests/simpletest/test_case.php old mode 100644 new mode 100755 index e1492b41cc..00431dcf4d --- a/tests/simpletest/test_case.php +++ b/tests/simpletest/test_case.php @@ -541,6 +541,7 @@ class TestSuite { * @access public */ function add(&$test_case) { + $class = null; if (! is_string($test_case)) { $this->_test_cases[] = &$test_case; } elseif (TestSuite::getBaseTestCase($class) == 'testsuite') {