#6 html2text.inc -- use of uninitialized variable $iInText

open
nobody
None
5
2004-03-08
2004-03-08
Pedro Graca
No

I run php with

error_reporting = E_ALL

and got the Notice of uninitialized variable for $iInText.
By making $iInText another private field of the
Html2Text class (as shown below), initilized to false,
all appears to be working well.

class Html2Text {

// Private fields

var $iInText = false; // new field
var $iCurrentLine = "";

Discussion