We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit f04361d9 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

Fix php5.3 build

parent 9ffeac99
......@@ -538,7 +538,13 @@ class EcomDev_PHPUnit_Test_Case_Util
return TestHelper::invokeArgs($method, $args);
}
$backTraceCalls = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 3);
if (version_compare(PHP_VERSION, '5.4', '>=')) {
$backTraceCalls = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 3);
} else {
// We cannot limit number of arguments on php before 5.4, php rises an exception :(
$backTraceCalls = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT);
}
$previousCall = $backTraceCalls[2];
throw new ErrorException(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment