Skip to content

Commit 4d44a5b

Browse files
committed
MFH: use BSD licensed implementation of double-to-string utilities instead of LGPL one
this patch also fixes thread safety issues in zend_strtod()
1 parent a813e11 commit 4d44a5b

File tree

9 files changed

+1443
-799
lines changed

9 files changed

+1443
-799
lines changed

Zend/zend.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
571571
fpsetmask(0);
572572
#endif
573573

574+
zend_startup_strtod();
574575
zend_startup_extensions_mechanism();
575576

576577
/* Set up utility functions and values */
@@ -729,6 +730,7 @@ void zend_shutdown(TSRMLS_D)
729730
zend_hash_destroy(GLOBAL_CONSTANTS_TABLE);
730731
free(GLOBAL_CONSTANTS_TABLE);
731732

733+
zend_shutdown_strtod();
732734
#ifdef ZTS
733735
GLOBAL_FUNCTION_TABLE = NULL;
734736
GLOBAL_CLASS_TABLE = NULL;

0 commit comments

Comments
 (0)