mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Added new constant; ZEND_MULTIBYTE to check whether PHP was compiled using --enable-zend-multibyte or not instead of sniffing phpinfo() (FR #52348)
This commit is contained in:
parent
469746fa03
commit
584ddb0c6e
@ -1979,6 +1979,11 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
|
||||
REGISTER_MAIN_LONG_CONSTANT("PHP_MAXPATHLEN", MAXPATHLEN, CONST_PERSISTENT | CONST_CS);
|
||||
REGISTER_MAIN_LONG_CONSTANT("PHP_INT_MAX", LONG_MAX, CONST_PERSISTENT | CONST_CS);
|
||||
REGISTER_MAIN_LONG_CONSTANT("PHP_INT_SIZE", sizeof(long), CONST_PERSISTENT | CONST_CS);
|
||||
#ifdef ZEND_MULTIBYTE
|
||||
REGISTER_MAIN_LONG_CONSTANT("ZEND_MULTIBYTE", 1, CONST_PERSISTENT | CONST_CS);
|
||||
#else
|
||||
REGISTER_MAIN_LONG_CONSTANT("ZEND_MULTIBYTE", 0, CONST_PERSISTENT | CONST_CS);
|
||||
#endif
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
REGISTER_MAIN_LONG_CONSTANT("PHP_WINDOWS_VERSION_MAJOR", EG(windows_version_info).dwMajorVersion, CONST_PERSISTENT | CONST_CS);
|
||||
|
Loading…
Reference in New Issue
Block a user