|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48226 Support for atomic ldap modify operations
Submitted: 2009-05-10 19:33 UTC Modified: 2015-06-10 11:17 UTC
Avg. Score:4.8 ± 0.6
Reproduced:12 of 12 (100.0%)
Same Version:9 (75.0%)
Same OS:9 (75.0%)
From: bugs dot php at jensthebrain dot de Assigned: mcmic (profile)
Status: Closed Package: LDAP related
PHP Version: 5.2.9 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
37 - 2 = ?
Subscribe to this entry?

 [2009-05-10 19:33 UTC] bugs dot php at jensthebrain dot de
It's a common scenario that you need to increase a counter atomically. E.g. the UidNumber-Counter for a sambaUnixIdPool.

With perl you need just a few lines:

my $umsg = $ld->modify($dn,
delete => { 'uidNumber' => $currentvalue },
add => { 'uidNumber' => $nextvalue});

But this seems not to be possible with PHP because you need two functions calls (ldap_delete, ldap_add) or support for defining operations in ldap_modify.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-02 02:31 UTC]
-Package: Feature/Change Request +Package: LDAP related
 [2015-06-10 11:17 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: mcmic
 [2015-06-10 11:17 UTC]
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 07:01:30 2024 UTC