Project

General

Profile

Actions

Bug #27348

closed

Incompatible call to debug_backtrace() prior to PHP 5.3.5

Added by Schmidt Timo almost 13 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
Start date:
2011-06-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

There is a bug in TYPO3 4.5.3 with old php versions. The method getOuterMostInstance() calls debug_backtrace with the parameter TRUE. This parameter was introduced with Version 5.2.5 the default value is true. The idea of this argument it to prevent the output of the object in the trace by settings the value to FALSE. Therefore it should be possible to call debug_backtrace() without any parameter which works with php version 5.2 and 5.3.

var_dump(debug_backtrace(TRUE));

?>


php --version

PHP 5.3.6 with Suhosin-Patch (cli) (built: Apr 7 2011 11:53:13)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with the ionCube PHP Loader v4.0.8, Copyright (c) 2002-2011, by ionCube Ltd., and
with Xdebug v2.1.1, Copyright (c) 2002-2011, by Derick Rethans

Output:

array(0) {
}


php --version

PHP 5.2.4-2ubuntu5.14 with Suhosin-Patch 0.9.6.2 (cli) (built: Jan 12 2011 15:54:52)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans

Output:

PHP Warning: Wrong parameter count for debug_backtrace() in /home/tschmidt/test.php on line 3

Warning: Wrong parameter count for debug_backtrace() in /home/tschmidt/test.php on line 3
NULL


Files

debug-backtrace.patch (939 Bytes) debug-backtrace.patch Schmidt Timo, 2011-06-10 12:59
issue_27348.patch (1.23 KB) issue_27348.patch Patrick Schriner, 2011-06-20 10:28

Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #27196: debug_backtrace in getOuterMostInstanceClosed2011-06-03

Actions
Has duplicate TYPO3 Core - Bug #27584: Various warnings in log when running schedulerRejected2011-06-20

Actions
Actions

Also available in: Atom PDF