From: jcllings at javahop dot com Operating system: Probably ALL PHP version: 4.3.5RC3 PHP Bug Type: LDAP related Bug description: Race condition inherent in php_ldap
Description: ------------ >From the documentation: ldap_modify() function is used to modify the existing entries in the LDAP directory. The structure of the entry is same as in ldap_add(). ...and bool ldap_add ( resource link_identifier, string dn, array entry) The replace also has the same prototype: bool ldap_mod_replace ( resource link_identifier, string dn, array entry) Where, according to the doc, 'resource link_identifier' is the connection, 'string dn' is who to bind as and 'array entry' is the modified data. No ability to specify *what* to modify so we will have to perform a separate action to retrieve this. In the meantime the data has been changed by another process, perhaps. Allow me to further illustrate: If Jon's email address is the old one, update it to the new one. This activity cannot be safely performed because using PHP you have to implement it in a two step process creating a potential race condition. -- Edit bug report at http://bugs.php.net/?id=27576&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27576&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27576&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27576&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27576&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27576&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27576&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27576&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27576&r=support Expected behavior: http://bugs.php.net/fix.php?id=27576&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27576&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27576&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27576&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27576&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27576&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27576&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27576&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27576&r=float
