logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: ZendEngine2 / zend_hash.c: msg#00048

Subject: cvs: ZendEngine2 / zend_hash.c
dmitry          Wed Feb 21 14:11:12 2007 UTC

  Modified files:              
    /ZendEngine2        zend_hash.c 
  Log:
  Special case for last iteration
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_hash.c?r1=1.148&r2=1.149&diff_format=u
Index: ZendEngine2/zend_hash.c
diff -u ZendEngine2/zend_hash.c:1.148 ZendEngine2/zend_hash.c:1.149
--- ZendEngine2/zend_hash.c:1.148       Sat Jan 20 23:09:42 2007
+++ ZendEngine2/zend_hash.c     Wed Feb 21 14:11:12 2007
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_hash.c,v 1.148 2007/01/20 23:09:42 tony2001 Exp $ */
+/* $Id: zend_hash.c,v 1.149 2007/02/21 14:11:12 dmitry Exp $ */
 
 #include "zend.h"
 #include "zend_operators.h"
@@ -1444,7 +1444,9 @@
 
 ZEND_API int zend_hash_set_pointer(HashTable *ht, const HashPointer *ptr)
 {
-       if (ht->pInternalPointer != ptr->pos) {
+       if (ptr->pos == NULL) {
+               ht->pInternalPointer = NULL;
+       } else if (ht->pInternalPointer != ptr->pos) {
                Bucket *p;
 
                IS_CONSISTENT(ht);

-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>