See http://pecl.php.net/bugs/bug.php?id=16567

--- xrange.c.orig	2010-01-11 01:13:54.000000000 +0100
+++ xrange.c	2010-01-11 01:17:07.000000000 +0100
@@ -60,7 +60,6 @@
 /* }}} */
 
 /* {{{ XRangeIterator seek method argument info */
-static
 ZEND_BEGIN_ARG_INFO(arginfo_xrange_xri_seek, 0) 
 	ZEND_ARG_INFO(0, position)
 ZEND_END_ARG_INFO();
@@ -234,8 +233,8 @@
 		return_value->value.obj = xrange_xri_object_new(
 			php_xrange_xri_entry TSRMLS_CC
 		);
-		return_value->refcount = 1;
-		return_value->is_ref = 0;
+		Z_SET_REFCOUNT_P(return_value, 1);
+		Z_UNSET_ISREF_P(return_value);
 
 		/* setup call to XRangeIterator's constructor (must do manually) */
 		zval methodName, *retval = NULL;
