]> granicus.if.org Git - php/commit
Fix bug #72093: bcpowmod accepts negative scale and corrupts _one_ definition
authorStanislav Malyshev <stas@php.net>
Mon, 25 Apr 2016 01:33:32 +0000 (18:33 -0700)
committerStanislav Malyshev <stas@php.net>
Mon, 25 Apr 2016 01:33:32 +0000 (18:33 -0700)
commitd650063a0457aec56364e4005a636dc6c401f9cd
tree11e7ad7d719fa488d92cb802a0b2234e96b29268
parentfd9689745c44341b1bd6af4756f324be8abba2fb
Fix bug #72093: bcpowmod accepts negative scale and corrupts _one_ definition

We can not modify result since it can be copy of _zero_ or _one_, etc. and
"copy" in bcmath is just bumping the refcount.
ext/bcmath/bcmath.c
ext/bcmath/tests/bug72093.phpt [new file with mode: 0644]
main/php_version.h