Menu

#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


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.