[TYPO3-UG Dutch] allow_call_time_pass_reference

Michiel Roos michiel at netcreators.com
Thu Feb 28 16:48:49 CET 2008


Beste Dick,

Don't panic!

;-)

Mikkel Ricky heeft dit gerapporteerd als bug van dynaflex:
http://bugs.typo3.org/view.php?id=6393

Rond regel 120 in dynaflex/class.tx_dynaflex_callhooks.php staat:
$hookObj->alterDCA_onLoad(&$resultDCA, $table);

De code dient te worden aangepast door de & te verwijderen:

$hookObj->alterDCA_onLoad($resultDCA, $table);

Extensies die deze hook gebruiken moeten de functie definitie aanpassen
zodat daarin de & komt:

function alterDCA_onLoad(&$resultDCA, $table) {
	...
}


Mail alsjeblieft Thomas Hempel ff en attendeer hem nogmaals op de bug in
de butracker. Dit is echt een 'no brainer'. Zijn email staat in de
extension manager.


## BAD:
function test($a) { return ++$a; }
$a = 0;
test(&$a);

## GOOD:
function test(&$a) { return ++$a; }
$a = 0;
test($a);


Dick Sijtsma wrote:
> Is iemand van jullie dat ook tegengekomen? En hoe hebben jullie dat toen
> aangepakt?



-- 
Netcreators BV :: creation and innovation
www.netcreators.com

Interesse in werken bij Netcreators?
http://www.netcreators.com/bedrijf/vacatures/


More information about the TYPO3-UG-dutch mailing list