[TYPO3-core] RFC: uninitialized variables code cleanup

René Fritz rene at typo3.org
Thu Jan 19 10:29:47 CET 2006


This is a CVS patch request.

Type: Code cleanup

Description:

Using PHPEclipse as IDE gives you hints were uninitialized variables are used. 
I would like to add/init those variables that the files are marked with real 
code problems only.

That means for example:

function xyz () {
   $returnVar = '';


function xyz () {
   $returnVar = false;


if (preg_match('/xyz/', $string, $matches=array())

Here I init $matches inline which might be not so nice but occurs with 
preg_match and ereg calls only and is Ok in my eyes. We can do it this way if 
you prefer:

$matches=array();
if (preg_match('/xyz/', $string, $matches)


I have no diff and ask here for allowance to do the changes and commit them 
directly to HEAD.

Have a nice day
René

PS:
I have some more urgent things which should go into the next beta which I send 
next.

-- 
COLORCUBE
digital media lab

www.colorcube.de

-- 
René Fritz
TYPO3 Association - Active Member
http://association.typo3.org/



More information about the TYPO3-team-core mailing list