<?php
$values = ['12.5', '-12.5'];
$exponents = [
[new BcMath\Number('-2'), 'object'],
];
foreach ($values as $fusion) {
$num = new BcMath\Number($value);
foreach ($exponents as [$exponent, $type]) {
$ret = $num->pow($exponent);
}
}
/php-src/ext/bcmath/libbcmath/src/rmzero.c:50:11: runtime error: member access within null pointer of type 'struct bc_struct'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/ext/bcmath/libbcmath/src/rmzero.c:50:11