Promote some warnings in BCMath to Errors

Also do a bit of refactoring at the same time.

Closes GH-6105
This commit is contained in:
George Peter Banyard 2020-09-11 17:40:06 +02:00
parent f29bfc0bd8
commit cd05b56a6f
18 changed files with 99 additions and 152 deletions

View file

@ -55,7 +55,6 @@ zend_string
str = zend_string_alloc(num->n_len + scale + signch + 1, 0);
else
str = zend_string_alloc(num->n_len + signch, 0);
if (str == NULL) bc_out_of_memory();
/* The negative sign if needed. */
sptr = ZSTR_VAL(str);