From:  jan@horde.org
Date:  21 Jan 2015 02:15:40 Hong Kong Time
Newsgroup:  news.php.net/php.pear.bugs
Subject:  

[PEAR-BUG] Bug #20490 [Opn->Dup]: Redundant LISTSCRIPTS call

NNTP-Posting-Host:  null

Edit report at https://pear.php.net/bugs/bug.php?id=20490&edit=1

 ID:               20490
 Updated by:       jan@horde.org
 Reported By:      alec at alec dot pl
 Summary:          Redundant LISTSCRIPTS call
-Status:           Open
+Status:           Duplicate
 Type:             Bug
 Package:          Net_Sieve
 Package Version:  1.3.3
 PHP Version:      Irrelevant
 Roadmap Versions: 
 New Comment:

-Status: Open
+Status: Duplicate
Duplicate of bug #20472 (which unfortunately got lost in the ticket
system).


Previous Comments:
------------------------------------------------------------------------

[2015-01-20 18:06:53] alec

Description:
------------
I think it is a common scenario to call listScripts() and then
getActive(). There's already an optimization with $this->_active check.
However, this does not work if there's no active script.

BTW, _cmdSetActive() should set $this->_active not
$this->_activeScript.
BTW2, this internal variable is undocumented.

------------------------------------------------------------------------


-- 
Edit this bug report at https://pear.php.net/bugs/bug.php?id=20490&edit=1