1
0
mirror of https://github.com/php/php-src.git synced 2026-04-08 08:33:06 +02:00

Fix win32 build

This commit is contained in:
Frank M. Kromann
2006-05-10 18:32:50 +00:00
parent 9e0e89c5cf
commit 815d3169ba

View File

@@ -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;