mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix internal_encoding fallback in mbstring
By introducing a hook that is called whenever one of internal_encoding / input_encoding / output_encoding changes, so that mbstring can adjust it's internal state. This also makes internal_encoding work with zend multibyte.
This commit is contained in:
parent
3ccd3aba90
commit
f73f190c3f
16 changed files with 212 additions and 123 deletions
|
@ -371,6 +371,11 @@ PHPAPI int php_mergesort(void *base, size_t nmemb, size_t size, int (*cmp)(const
|
|||
PHPAPI void php_register_pre_request_shutdown(void (*func)(void *), void *userdata);
|
||||
PHPAPI void php_com_initialize(void);
|
||||
PHPAPI char *php_get_current_user(void);
|
||||
|
||||
PHPAPI const char *php_get_internal_encoding(void);
|
||||
PHPAPI const char *php_get_input_encoding(void);
|
||||
PHPAPI const char *php_get_output_encoding(void);
|
||||
PHPAPI extern void (*php_internal_encoding_changed)(void);
|
||||
END_EXTERN_C()
|
||||
|
||||
/* PHP-named Zend macro wrappers */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue