[phpldapadmin] [ phpldapadmin-Bugs-2135150 ] E_WARNING: array_search: Wrong datatype in add_attr_form.php
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.ldap.davedap |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2135150, was opened at 2008-09-29 12:51
Message generated for change (Comment added) made by wurley
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2135150&group_id=61828
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.1.x
Status: Open
Resolution: None
Priority: 7
Private: No
Submitted By: Zrin Ziborski (zrin)
Assigned to: Nobody/Anonymous (nobody)
Summary: E_WARNING: array_search: Wrong datatype in add_attr_form.php
Initial Comment:
phpldapadmin ver. 1.1.0.5
openldap 2.4.10
apache2-mpm-prefork, 2.2.9 (Debian)
libapache2-mod-php5
debian lenny, x86_64
In add_attr_form.php, it seems that $dn is (can be) a string rather than array before
$dn['attrs'] =
$ldapserver->getDNAttrs($entry['dn']['string']);
$dn['oclasses'] =
$ldapserver->getDNAttr($entry['dn']['string'],'objectClass');
adding following code in front of those lines seems to cure the problem:
if (! is_array($dn))
$dn = array('string' => $dn);
------------------------
note: line numbers are not accurate due to debug changes
E_WARNING: array_search() [function.array-search]: Wrong datatype for second argument
error You found a non-fatal phpLDAPadmin bug!
Error: Array to string conversion (E_NOTICE)
File: add_attr_form.php line 44, caller cmd.php
Versions: PLA: 1.1.0.5, PHP: 5.2.6-3, SAPI: apache2handler
Web server: Apache/2.2.9 (Debian) PHP/5.2.6-3 with Suhosin-Patch
----------------------------------------------------------------------
Comment By: Deon George (wurley)
Date: 2008-11-29 01:47
Message:
This artifact has been marked as a duplicate of artifact 2022966 with
reason:
No explanation provided.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2135150&group_id=61828
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/