[TYPO3-core] RFC: uninitialized variables code cleanup
Michael Stucki
michael at typo3.org
Thu Jan 19 12:09:26 CET 2006
Hi René,
>> Fine.
>
> So I have the allowance for that I think.
Sorry, I forgot that this was Schwiizerdütsch. In English it means +1!
>> Hmm, for some reason I don't like any of them. Is this really a
>> requirement that $matches is declared first? I don't think so, I rather
>> think it's a "bug" which Eclipse doesn't ignore...
>
> It depends on the view. How does the Zend IDE handle such things?
> Anyway if the IDE can help me make more clean code I am willing to do some
> changes.
No idea since I'm not using Zend IDE. Well, if you make that change then I
prefer the 2nd option:
$matches=array();
if (preg_match('/xyz/', $string, $matches)
Regards, michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-team-core
mailing list