summaryrefslogtreecommitdiff
path: root/ext/spl
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl')
-rw-r--r--ext/spl/php_spl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index 8afdb833e7..0cfb28a302 100644
--- a/ext/spl/php_spl.c
+++ b/ext/spl/php_spl.c
@@ -641,13 +641,13 @@ PHP_FUNCTION(spl_object_hash)
/* {{{ Returns the integer object handle for the given object */
PHP_FUNCTION(spl_object_id)
{
- zval *obj;
+ zend_object *obj;
ZEND_PARSE_PARAMETERS_START(1, 1)
- Z_PARAM_OBJECT(obj)
+ Z_PARAM_OBJ(obj)
ZEND_PARSE_PARAMETERS_END();
- RETURN_LONG((zend_long)Z_OBJ_HANDLE_P(obj));
+ RETURN_LONG((zend_long)obj->handle);
}
/* }}} */