[TYPO3-core] RFC #12022: PHP-5.3 warning about missing references with some extensions

Rupert Germann rupi at gmx.li
Fri Nov 6 14:01:10 CET 2009


Hi,

this is a SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=12022

Branches: Trunk, (and possibly older, will test asap)

Problem:
when TYpo3 is running under PHP 5.3 and you have an extension on a page 
which uses a reference in its main function

function main($content, &$conf) ...

you'll get the following warning:

Core: Error handler (FE): PHP Warning: Parameter 2 to 
tx_ttnews::main_news() expected to be a reference, value given in 
C:\xampp\xampp\htdocs\typo3\dummy-4.2.9\typo3\sysext\cms\tslib\class.tslib_content.php 
line 6605

Hint: there is no error in tt_news - I just simulated it by adding the 
reference ;-)

Solution:
add the missing reference operator in class tslib_content function 
callUserFunction()




greets
rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 12022.diff
Type: text/x-diff
Size: 756 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091106/24977368/attachment.diff>


More information about the TYPO3-team-core mailing list