[BUGFIX] Incompatible call to debug_backtrace() prior to PHP 5.3.5
authorOliver Hader <oliver@typo3.org>
Mon, 20 Jun 2011 11:08:57 +0000 (13:08 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 20 Jun 2011 16:03:42 +0000 (18:03 +0200)
The additional parameter to debug_backtrace() was introduced
with PHP 5.3.6. To stay compatible with PHP 5.3.0, it shall be
removed again - besides that the behaviour stays the same.

Change-Id: Iaca7308c7eaadc7f47bf4927cc25924aa0640835
Resolves: #27348
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/2837
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_tcemain.php

index 16720bf..499154e 100644 (file)
@@ -7125,7 +7125,7 @@ class t3lib_TCEmain {
         */
        protected function getOuterMostInstance() {
                if (!isset($this->outerMostInstance)) {
-                       $stack = array_reverse(debug_backtrace(TRUE));
+                       $stack = array_reverse(debug_backtrace());
 
                        foreach ($stack as $stackItem) {
                                if (isset($stackItem['object']) && $stackItem['object'] instanceof t3lib_TCEmain) {