Categories > TBS next version >

Uninitialised var in 3.0b32 + version bug

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Sheepy
Date: 2006-04-26
Time: 13:39

Uninitialised var in 3.0b32 + version bug

Got these warnings while testing Eclipse's PHP Plugin.  I've verified all of them manually.  The plugins are fine.

The local variable $Parent may not have been initialized    tinybutstrong.php    line 1328
The local variable $Parent may not have been initialized    tinybutstrong.php    line 1331
The local variable $change_i may not have been initialized    tinybutstrong.php    line 1661
The local variable $PrevKey may not have been initialized    tinybutstrong.php    line 1666
The local variable $PrevNum may not have been initialized    tinybutstrong.php    line 1666
The local variable $PrevRec may not have been initialized    tinybutstrong.php    line 1666
The local variable $StrChr may not have been initialized    tinybutstrong.php    line 2517

P.S. Just find out that b32 reports itself as b31, although version in file header comment is correct.
By: Skrol29
Date: 2006-04-26
Time: 14:44

Re: Uninitialised var in 3.0b32 + version bug

Hi Sheepy,

Thanks for this information.
What is Eclipse's PHP Plugin? Is that a database plug-in ?

I don't understand how you can have those warmings. For example, variable $Parent at line 1328 is set in the same time that $Pid is incremented.

Could you post or email a piece of code to reproduce this warnings?
By: SoftExpert
Date: 2006-04-27
Time: 20:49

Re: Uninitialised var in 3.0b32 + version bug

Hi,

I guess Sheepy has installed the plugin from http://www.phpeclipse.de/; but those warnings can be seen with Zend Studio 5.1 also. And the code tested is, indeed, the code of TBS class.
So you need to cleanup a little bit the code ;)

Good luck and, oh, I can't wait for the new version!!!