From: Dmitry Stogov Date: Wed, 13 Aug 2014 13:05:18 +0000 (+0400) Subject: cleanup (we don't have to duplicate elements of module_registry) X-Git-Tag: POST_PHPNG_MERGE~14^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1c913c5f1f93179998c706db1ba9b1db9d13907;p=php cleanup (we don't have to duplicate elements of module_registry) --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 16f11fd40c..ff3889dd6c 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -238,7 +238,6 @@ static void print_modules(TSRMLS_D) HashTable sorted_registry; zend_hash_init(&sorted_registry, 64, NULL, NULL, 1); -//??? zend_hash_copy(&sorted_registry, &module_registry, NULL, &tmp, sizeof(zend_module_entry)); zend_hash_copy(&sorted_registry, &module_registry, NULL); zend_hash_sort(&sorted_registry, zend_qsort, module_name_cmp, 0 TSRMLS_CC); zend_hash_apply(&sorted_registry, print_module_info TSRMLS_CC);