mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- Add bcmath to the standard UNIX build
- Change a couple of malloc()'s and free()'s to emalloc()'s and efree()'s
This commit is contained in:
parent
203d67ea6b
commit
8a03f3062f
9 changed files with 33 additions and 690 deletions
|
@ -51,9 +51,9 @@ char
|
|||
/* Allocate the string memory. */
|
||||
signch = ( num->n_sign == PLUS ? 0 : 1 ); /* Number of sign chars. */
|
||||
if (num->n_scale > 0)
|
||||
str = (char *) malloc (num->n_len + num->n_scale + 2 + signch);
|
||||
str = (char *) emalloc (num->n_len + num->n_scale + 2 + signch);
|
||||
else
|
||||
str = (char *) malloc (num->n_len + 1 + signch);
|
||||
str = (char *) emalloc (num->n_len + 1 + signch);
|
||||
if (str == NULL) bc_out_of_memory();
|
||||
|
||||
/* The negative sign if needed. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue