com php-src: Array - make krsort FAST_ZPP compatibility: ext/standard/array.c

From: Date: Sat, 28 Feb 2015 09:16:17 +0000
Subject: com php-src: Array - make krsort FAST_ZPP compatibility: ext/standard/array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85363@lists.php.net to get a copy of this message
Commit: 77dd2111f9608a81bb04385781f6c94d704a10e3 Author: Дмитрий Пацура <zaets28rus@gmail.com> Sat, 28 Feb 2015 17:16:17 +0800 Parents: 968a9f48071bcc099b4e978fc99fd09b6f69d172 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=77dd2111f9608a81bb04385781f6c94d704a10e3 Log: Array - make krsort FAST_ZPP compatibility Changed paths: M ext/standard/array.c Diff: diff --git a/ext/standard/array.c b/ext/standard/array.c index c63cadd..e3f2a5d 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -220,9 +220,17 @@ PHP_FUNCTION(krsort) zval *array; zend_long sort_type = PHP_SORT_REGULAR; +#ifndef FAST_ZPP if (zend_parse_parameters(ZEND_NUM_ARGS(), "a/|l", &array, &sort_type) == FAILURE) { RETURN_FALSE; } +#else + ZEND_PARSE_PARAMETERS_START(1, 2) + Z_PARAM_ARRAY_EX(array, 0, 1) + Z_PARAM_OPTIONAL + Z_PARAM_LONG(sort_type) + ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); +#endif php_set_compare_func(sort_type);

« previous php.cvs (#85363) next »