X-Git-Url: http://git.pld-linux.org/?p=packages%2Fphp.git;a=blobdiff_plain;f=php-sapi-ini-file.patch;fp=php-sapi-ini-file.patch;h=5da800a8dd6e25554fc8111f66d68fd78fd53683;hp=598be44f9a08d1a73d9b24c304f7c0a00bcfc791;hb=6b96e74954f2923d3541e2b155e751de234462a2;hpb=2d53431c5248afef237b0bafa881c1ec59bfd3eb diff --git a/php-sapi-ini-file.patch b/php-sapi-ini-file.patch index 598be44..5da800a 100644 --- a/php-sapi-ini-file.patch +++ b/php-sapi-ini-file.patch @@ -25,22 +25,20 @@ $ php -r 'var_dump(array(get_cfg_var("cfg_file_path"),php_ini_loaded_file()));' https://github.com/pld-linux/php/commit/762ec2e -diff --git a/main/php_ini.c b/main/php_ini.c -index d508c13b50..2cf28eb7f5 100644 ---- a/main/php_ini.c -+++ b/main/php_ini.c -@@ -410,6 +410,11 @@ static void php_load_zend_extension_cb(void *arg) { } - #endif - /* }}} */ +--- php-8.0.0rc1/main/php_ini.c~ 2020-10-09 18:15:48.000000000 +0300 ++++ php-8.0.0rc1/main/php_ini.c 2020-10-09 18:42:20.087488856 +0300 +@@ -65,6 +65,11 @@ + PHPAPI char *php_ini_scanned_path=NULL; + PHPAPI char *php_ini_scanned_files=NULL; +static int php_csort(const struct dirent **a, const struct dirent **b) +{ + return strcmp((*a)->d_name,(*b)->d_name); +} + - /* {{{ php_init_config - */ - int php_init_config(void) + /* {{{ php_ini_displayer_cb */ + static ZEND_COLD void php_ini_displayer_cb(zend_ini_entry *ini_entry, int type) + { @@ -661,12 +666,14 @@ int php_init_config(void) zend_llist scanned_ini_list; zend_llist_element *element;