diff options
author | Sara Golemon <pollita@php.net> | 2016-12-30 12:32:48 -0800 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2016-12-30 12:56:21 -0800 |
commit | 6f3945a9f1d2410db94f17fb29f405502cf79663 (patch) | |
tree | 557d3293ec948ab980ca835e014129dcea28d5dc /ext/standard/crc32.c | |
parent | c9a42b58a720e47cf98ea25e14b8a0e1d1053770 (diff) | |
download | php-git-6f3945a9f1d2410db94f17fb29f405502cf79663.tar.gz |
Use new param API in standard
Diffstat (limited to 'ext/standard/crc32.c')
-rw-r--r-- | ext/standard/crc32.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/standard/crc32.c b/ext/standard/crc32.c index e6024dcf11..bef7abab96 100644 --- a/ext/standard/crc32.c +++ b/ext/standard/crc32.c @@ -31,9 +31,10 @@ PHP_NAMED_FUNCTION(php_if_crc32) uint32_t crcinit = 0; register uint32_t crc; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &p, &nr) == FAILURE) { - return; - } + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_STRING(p, nr) + ZEND_PARSE_PARAMETERS_END(); + crc = crcinit^0xFFFFFFFF; for (; nr--; ++p) { |