diff options
author | Xinchen Hui <laruence@gmail.com> | 2015-01-14 17:22:58 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2015-01-14 18:02:41 +0800 |
commit | 2193de0d185eb9d35e4dd7b93cf69d509b0526b9 (patch) | |
tree | fffc6d3a9a86b82bf18bf582389742f1103d974b /sapi/cli/php_cli.c | |
parent | ade7a410403d7ec3fc1579bee3b890b1ce549eec (diff) | |
download | php-git-2193de0d185eb9d35e4dd7b93cf69d509b0526b9.tar.gz |
Faster sorting algo
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 749e291771..74c36d9328 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -201,7 +201,7 @@ static void print_modules(void) /* {{{ */ zend_hash_init(&sorted_registry, 50, NULL, NULL, 0); zend_hash_copy(&sorted_registry, &module_registry, NULL); - zend_hash_sort(&sorted_registry, zend_qsort, module_name_cmp, 0); + zend_hash_sort(&sorted_registry, module_name_cmp, 0); zend_hash_apply(&sorted_registry, print_module_info); zend_hash_destroy(&sorted_registry); } |