diff options
author | Anatol Belski <ab@php.net> | 2014-08-16 11:37:14 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-08-16 11:37:14 +0200 |
commit | cb25136f4ef1042295650475b2c20ace81e2b9b7 (patch) | |
tree | 9d6a509c80f2ac1e094cd9d42772654781a79715 /ext/spl/spl_engine.c | |
parent | f790043e30513c56f108289ec44ea6eb493f7773 (diff) | |
download | php-git-cb25136f4ef1042295650475b2c20ace81e2b9b7.tar.gz |
fix macros in the 5 basic extensions
Diffstat (limited to 'ext/spl/spl_engine.c')
-rw-r--r-- | ext/spl/spl_engine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/spl/spl_engine.c b/ext/spl/spl_engine.c index 0cfcb8ee18..0cd63dba78 100644 --- a/ext/spl/spl_engine.c +++ b/ext/spl/spl_engine.c @@ -40,7 +40,7 @@ PHPAPI void spl_instantiate(zend_class_entry *pce, zval *object TSRMLS_DC) } /* }}} */ -PHPAPI long spl_offset_convert_to_long(zval *offset TSRMLS_DC) /* {{{ */ +PHPAPI long spl_offset_convert_to_int(zval *offset TSRMLS_DC) /* {{{ */ { ulong idx; @@ -52,8 +52,8 @@ PHPAPI long spl_offset_convert_to_long(zval *offset TSRMLS_DC) /* {{{ */ break; case IS_DOUBLE: return (long)Z_DVAL_P(offset); - case IS_LONG: - return Z_LVAL_P(offset); + case IS_INT: + return Z_IVAL_P(offset); case IS_FALSE: return 0; case IS_TRUE: |