svn: /pear/packages/Net_LDAP2/trunk/ LDAP2/Entry.php package2.xml

From: Date: Tue, 04 Aug 2009 06:03:12 +0000
Subject: svn: /pear/packages/Net_LDAP2/trunk/ LDAP2/Entry.php package2.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-56888@lists.php.net to get a copy of this message
beni Tue, 04 Aug 2009 06:03:12 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=286787 Log: * added some documentation * fixed bug #16491 (entry->replace and int(0) causes deletion) Bug: http://pear.php.net/bugs/16491 (unknown) Changed paths: U pear/packages/Net_LDAP2/trunk/LDAP2/Entry.php U pear/packages/Net_LDAP2/trunk/package2.xml Modified: pear/packages/Net_LDAP2/trunk/LDAP2/Entry.php =================================================================== --- pear/packages/Net_LDAP2/trunk/LDAP2/Entry.php 2009-08-04 05:46:14 UTC (rev 286786) +++ pear/packages/Net_LDAP2/trunk/LDAP2/Entry.php 2009-08-04 06:03:12 UTC (rev 286787) @@ -648,7 +648,9 @@ * * The parameter has to an array of the following form: * array("attributename" => "single value", - * "attribute2name" => array("value1", "value2")) + * "attribute2name" => array("value1", "value2"), + * "deleteme1" => null, + * "deleteme2" => "") * If the attribute does not yet exist it will be added instead (see also $force). * If the attribue value is null, the attribute will de deleted. * @@ -676,7 +678,10 @@ foreach ($attr as $k => $v) { $k = $this->getAttrName($k); if (false == is_array($v)) { - // delete attributes with empty values + // delete attributes with empty values; treat ints as string + if (is_int($v)) { + $v = "$v"; + } if ($v == null) { $this->delete($k); continue; Modified: pear/packages/Net_LDAP2/trunk/package2.xml =================================================================== --- pear/packages/Net_LDAP2/trunk/package2.xml 2009-08-04 05:46:14 UTC (rev 286786) +++ pear/packages/Net_LDAP2/trunk/package2.xml 2009-08-04 06:03:12 UTC (rev 286787) @@ -38,6 +38,7 @@ <license>LGPLv3 License</license> <notes> * switched LICENSE to LGPL v3 + * added some documentation </notes> <contents>

« previous php.pear.cvs (#56888) next »