Project

General

Profile

Actions

Bug #17550

closed

Object copied in t3lib_div::makeInstance

Added by Popy no-lastname-given over 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-08-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

t3lib_div::makeInstance call itslef recursively to handle ux_* classes, but the recursive call is not really well done, because it copy the instanciated object (instead of giving a reference)

Of course the problem does not occurs on PHP5, but I think it can be a good thing to fix it by making makeInstance more "sexy" (by using the makeInstanceClassname).

Because of this, the tslib_patcher extension can not work under php4, because an object reference is corrupted by the object copy.

(issue imported from #M6193)


Files

t3lib_div.diff (1.99 KB) t3lib_div.diff Administrator Admin, 2007-08-22 11:22
Actions #1

Updated by Jean-David Gadina about 17 years ago

This is indeed a problem with PHP 4... But as the next version of T3 will only run on PHP5, I don't think there is a need to fix it : )

For info, I fixed the problem in tslib_patcher...

Actions #2

Updated by Popy no-lastname-given about 17 years ago

Yes, but the code is still ugly :)

Actions #3

Updated by Jean-David Gadina about 17 years ago

Just look at the original one... :P

.<

Actions #4

Updated by Ingo Renner about 17 years ago

The next release of TYPO3 (4.2) will require have a minimum requirement of php 5.2. We can't add this patch to the previous development branches...

Actions #5

Updated by Michael Stucki about 17 years ago

IMHO this is no bugfix, but a cleanup. And it also looks better with PHP5 :-)

- michael

Actions #6

Updated by Popy no-lastname-given about 17 years ago

@ Michael Stucki : I love you :D

Actions #7

Updated by Ingo Renner about 17 years ago

hmm, true. but I don't know whether this would break things or whether we can cahnge it in current branches at all

Actions #8

Updated by Michael Stucki about 17 years ago

As I said: It's not a bugfix, therefore it's not needed in stable branches. Pretty easy, let's just fix it in Trunk...

Actions #9

Updated by Michael Stucki about 17 years ago

Fixed in Trunk.

Actions

Also available in: Atom PDF