ZF-9438: getDateTimeAttribute Null Check

Issue Type: Bug Created: 2010-03-16T14:01:31.000+0000 Last Updated: 2010-03-17T05:18:36.000+0000 Status: Closed Fix version(s): - 1.10.3 (01/Apr/10)

Reporter: Ryan Panning (panman) Assignee: Stefan Gehrig (sgehrig) Tags: - Zend_Ldap

Related issues: Attachments:


I'm creating a ActiveDirectory extension to the LDAP classes and noticed this bug. In the Zend_Ldap_Attribute class there is a method getDateTimeAttribute(). If the value returned by getAttribute() is an array it should work fine but if it's a single value (specified by the index) then the method doesn't check if _valueFromLdapDateTime() returned null.

Basically, just need to add a check for "non" array attributes that if valueFromLdapDateTime() returns null to return the _original value and not null.


Posted by Stefan Gehrig (sgehrig) on 2010-03-17T05:18:33.000+0000

fixed in trunk (r21531) and in 1.10-release branch (r21532)

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.