[TYPO3-core] RFC #11876: stripSlashesOnArray creates references where you want copies
Steffen Kamper
info at sk-typo3.de
Tue Nov 3 19:10:50 CET 2009
Hi Ernesto,
Ernesto Baschny [cron IT] schrieb:
> I did and this is not correct. Every element in the loop gets assigned a
> reference. This is I consider a PHP bug, and I doubt that they will
> document that. :)
>
> Test this and uncomment the "unset" in the proper positions to see the
> effect and that only the inside loop unset really trashes each reference.
>
> <?
> ...snip...
> ?>
maybe i don't get it right. Testing the code there is no difference in
result with all variants (no unset, inner/outer unset). Using this shows
the result by reference:
$arr = array('"a"', '"b"');
Even then the array behaves correct. What do i miss?
vg Steffen
More information about the TYPO3-team-core
mailing list