From: e dot vandeoudeweetering at marcanti dot esprit-sg dot nl
Operating system: windows2000 (5.00.2185) sp4
PHP version: 5.0.0RC1
PHP Bug Type: COM related
Bug description: COM object and arrays
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 bug report at http://bugs.php.net/?id=27974&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27974&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27974&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27974&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27974&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27974&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27974&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27974&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27974&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27974&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27974&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27974&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27974&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27974&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27974&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27974&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27974&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27974&r=float