]> granicus.if.org Git - php/commitdiff
Fixed bug #50540 (Crash within ldap_first_reference function)
authorSriram Natarajan <srinatar@php.net>
Mon, 21 Dec 2009 20:39:48 +0000 (20:39 +0000)
committerSriram Natarajan <srinatar@php.net>
Mon, 21 Dec 2009 20:39:48 +0000 (20:39 +0000)
NEWS
ext/ldap/ldap.c

diff --git a/NEWS b/NEWS
index 132cbbd01c1d4c0d4cee604c4fa2c20fddf36aa3..d1a016ca6e87db8eb963e252d17292082a8a14ee 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ PHP                                                                        NEWS
 ?? ??? 2010, PHP 5.2.13
 - Fixed build of mysqli with MySQL 5.5.0-m2. (Andrey)
 
+- Fixed bug #50540 (Crash while running ldap_next_reference test cases).
+  (Sriram)
 - Fixed bug #50508 (compile failure: Conflicting HEADER type declarations).
   (Jani)
 - Fixed bug #50394 (Reference argument converted to value in __call). (Stas)
index 538ac7ce9f4ea8436419c9bfd0f961d51692c116..77216e6bb103de72037396a6323e331699a41c7f 100644 (file)
@@ -2009,6 +2009,7 @@ PHP_FUNCTION(ldap_first_reference)
                resultentry->id = Z_LVAL_PP(result);
                zend_list_addref(resultentry->id);
                resultentry->data = entry;
+               resultentry->ber = NULL;
        }
 }
 /* }}} */
@@ -2037,6 +2038,7 @@ PHP_FUNCTION(ldap_next_reference)
                resultentry_next->id = resultentry->id;
                zend_list_addref(resultentry->id);
                resultentry_next->data = entry_next;
+               resultentry_next->ber = NULL;
        }
 }
 /* }}} */