Skip to content

Instantly share code, notes, and snippets.

View rquadling's full-sized avatar
🦍
No hair cutting during Covid19. Things are getting ... hairy!

Richard Quadling rquadling

🦍
No hair cutting during Covid19. Things are getting ... hairy!
  • Exeter, Devon, UK
View GitHub Profile
@rquadling
rquadling / gist_1.diff
Last active December 23, 2015 01:49
Patch to PHP to allow [SAPI] sections in INI files.
diff --git a/main/main.c b/main/main.c
index 5942b23..e8171a5 100644
--- a/main/main.c
+++ b/main/main.c
@@ -2244,6 +2244,12 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
}
#endif
+ /* Activate SAPI specific section. */
+ if (php_ini_has_per_sapi_config() && sapi_module.name) {