[packages/php/dev-8.0: 8/12] Updated php-sapi-ini-file.patch

glen glen at pld-linux.org
Fri Oct 9 18:14:06 CEST 2020


commit 6b96e74954f2923d3541e2b155e751de234462a2
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Fri Oct 9 18:43:10 2020 +0300

    Updated php-sapi-ini-file.patch

 php-sapi-ini-file.patch | 18 ++++++++----------
 php.spec                |  2 +-
 2 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/php.spec b/php.spec
index c946092..bab110f 100644
--- a/php.spec
+++ b/php.spec
@@ -1862,7 +1862,7 @@ cp -p php.ini-production php.ini
 %patch3 -p1
 %patch4 -p1
 
-#%patch7 -p1 -b .sapi-ini-file
+%patch7 -p1 -b .sapi-ini-file
 %patch9 -p1
 %patch10 -p1 -b .ini
 %patch14 -p1
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;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/3812f95c6f6decd7a3a7cabca74d1adbe4dcae19



More information about the pld-cvs-commit mailing list