Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable extension loading from .user.ini when run as CGI. #145

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions main/php_ini.c
Expand Up @@ -709,8 +709,8 @@ void php_ini_register_extensions(TSRMLS_D)
zend_llist_apply(&extension_lists.engine, php_load_zend_extension_cb TSRMLS_CC);
zend_llist_apply(&extension_lists.functions, php_load_php_extension_cb TSRMLS_CC);

zend_llist_destroy(&extension_lists.engine);
zend_llist_destroy(&extension_lists.functions);
zend_llist_clean(&extension_lists.engine);
zend_llist_clean(&extension_lists.functions);
}
/* }}} */

Expand Down
1 change: 1 addition & 0 deletions sapi/cgi/cgi_main.c
Expand Up @@ -818,6 +818,7 @@ static void php_cgi_ini_activate_user_config(char *path, int path_len, const cha

/* Activate ini entries with values from the user config hash */
php_ini_activate_config(entry->user_config, PHP_INI_PERDIR, PHP_INI_STAGE_HTACCESS TSRMLS_CC);
php_ini_register_extensions(TSRMLS_CC);
}
/* }}} */

Expand Down