[PEAR-BUG] Bug #20490 [Opn->Dup]: Redundant LISTSCRIPTS call
[email protected] Tue, 20 Jan 2015 18:15:40 +0000 (GMT)
| Newsgroups | php.pear.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://pear.php.net/bugs/bug.php?id=20490&edit=1 ID: 20490 Updated by: [email protected] 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