[PEAR-BUG] Bug #20399 [Opn->Asn]: Setting userinfo to FALSE not transparent

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at https://pear.php.net/bugs/bug.php?id=20399&edit=1

 ID:               20399
 Updated by:       [email protected]
 Reported By:      tklingenberg at lastflood dot net
 Summary:          Setting userinfo to FALSE not transparent
-Status:           Open
+Status:           Assigned
 Type:             Bug
 Package:          Net_URL2
 Package Version:  2.0.6
 PHP Version:      Irrelevant
-Assigned To:      
+Assigned To:      tkli
 Roadmap Versions: 
 New Comment:

-Status:      Open
+Status:      Assigned
-Assigned To:
+Assigned To: tkli



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

[2014-09-07 10:13:28] tkli

Description:
------------
Net_URL2 allows to "unset" certain parts of an URI by calling the setter
with the FALSE value.

This is not overall useful but by the original design of the class.
Therefore an application of this principle should be transparent when
using the class.

Testing in context of the report in #20385 did reveal, that setter and
getter for userinfo were breaking this principle when userinfo was set
to FALSE. The getter would then return a zero-length string instead of
the explicitly used FALSE.

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


-- 
Edit this bug report at https://pear.php.net/bugs/bug.php?id=20399&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.