xref: /php-src/ext/bcmath/tests/gh16978.phpt (revision d17ed344)
1--TEST--
2GH-16978 Stack buffer overflow ext/bcmath/libbcmath/src/div.c:464:12 in bc_divide
3--EXTENSIONS--
4bcmath
5--FILE--
6<?php
7echo bcpow('10', '-112', 10) . "\n";
8echo bcdiv('1', '10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', 1);
9?>
10--EXPECT--
110.0000000000
120.0
13