wez Fri Oct 17 17:03:01 2003 EDT
Modified files:
/php-src/ext/com_dotnet com_iterator.c
Log:
fix cruft from previous incarnation of the iterators
Index: php-src/ext/com_dotnet/com_iterator.c
diff -u php-src/ext/com_dotnet/com_iterator.c:1.1
php-src/ext/com_dotnet/com_iterator.c:1.2
--- php-src/ext/com_dotnet/com_iterator.c:1.1 Fri Oct 17 16:52:17 2003
+++ php-src/ext/com_dotnet/com_iterator.c Fri Oct 17 17:03:01 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: com_iterator.c,v 1.1 2003/10/17 20:52:17 wez Exp $ */
+/* $Id: com_iterator.c,v 1.2 2003/10/17 21:03:01 wez Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -64,9 +64,10 @@
zval **ptr_ptr;
zval *ptr;
+ /* sanity */
if (I->key == (ulong)-1) {
*data = NULL;
- return FAILURE;
+ return;
}
MAKE_STD_ZVAL(ptr);
@@ -75,7 +76,7 @@
*ptr_ptr = ptr;
*data = ptr_ptr;
- return SUCCESS;
+ return;
}
static int com_iter_get_key(zend_object_iterator *iter, char **str_key, uint
*str_key_len,
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php