Hello,

Can someone apply this little patch to HEAD (Zend/zend_hash.c)?

These two lines have been removed by mistake in the last commit.

simple test (props access or any hash table usage):
<?php
class my {
 private $test=0;
 public $testp = 1;
 private $testarray = array();
}
$a = new my;
var_dump($a);

--Pierre
Index: zend_hash.c
===================================================================
RCS file: /repository/ZendEngine2/zend_hash.c,v
retrieving revision 1.142
diff -u -u -p -r1.142 zend_hash.c
--- zend_hash.c 31 Oct 2006 22:05:56 -0000      1.142
+++ zend_hash.c 1 Nov 2006 19:37:15 -0000
@@ -945,6 +945,8 @@ ZEND_API void zend_hash_apply_with_argum
                va_start(args, num_args);
                hash_key.nKeyLength = p->nKeyLength;
                hash_key.h = p->h;
+               hash_key.type = p->key.type;
+               hash_key.arKey.s = p->key.arKey.s;
                result = apply_func(p->pData, num_args, args, &hash_key);
 
                if (result & ZEND_HASH_APPLY_REMOVE) {
-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to