mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
Fix win32 build
This commit is contained in:
parent
9e0e89c5cf
commit
815d3169ba
@ -262,12 +262,13 @@ zend_object_iterator *php_dom_get_iterator(zend_class_entry *ce, zval *object, i
|
||||
int ret, curindex = 0;
|
||||
HashTable *nodeht;
|
||||
zval **entry;
|
||||
php_dom_iterator *iterator;
|
||||
|
||||
if (by_ref) {
|
||||
zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
|
||||
}
|
||||
php_dom_iterator *iterator = emalloc(sizeof(php_dom_iterator));
|
||||
|
||||
iterator = emalloc(sizeof(php_dom_iterator));
|
||||
|
||||
object->refcount++;
|
||||
iterator->intern.data = (void*)object;
|
||||
iterator->intern.funcs = &php_dom_iterator_funcs;
|
||||
|
Loading…
Reference in New Issue
Block a user