ID: 27974
Updated by: [EMAIL PROTECTED]
Reported By: e dot vandeoudeweetering at marcanti dot esprit-sg dot
-Status: Open
+Status: Assigned
Bug Type: COM related
Operating System: windows2000 (5.00.2185) sp4
PHP Version: 5.0.0RC1
-Assigned To:
+Assigned To: wez
Previous Comments:
------------------------------------------------------------------------
[2004-04-13 09:02:10] e dot vandeoudeweetering at marcanti dot
esprit-sg dot
Description:
------------
I try to update a multi valued Active Directory attribute. The (COM)
function expects an array as the third parameter.
When the function is called, PHP produces an error. (See Reproduce code
:)
I tried the same on my second server that's running:
PHP 4.3.4 (cli) (built: Nov 2 2003 23:47:34)
The code is executed without any problems.
Did something changed in the way PHP treats arrays, or did COM
changed?
Reproduce code:
---------------
<?php
define("APPEND", 3);
$adsi = "cn=user,ou=test,dc=php,dc=net";
$user = new COM("LDAP://" . $adsi);
$user -> PutEx(APPEND, "otherHomePhone", array("123", "456", "789"));
$user -> SetInfo();
?>
Expected result:
----------------
Active Directory should update the multi-valued attribute
'otherHomePhone' with the values specified in the array.
Actual result:
--------------
Exception thrown
File : C:\php\includes\test.php
Line : 6
Message : Source: Active Directory
Description: Unspecified error
Code : -2147352567
TraceString :
#0 {main}
Array
(
)
Trace : 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27974&edit=1