mirror of
https://github.com/php/php-src.git
synced 2026-03-26 17:22:15 +01:00
Co-Authored-By: Nikita Popov <nikita.ppv@googlemail.com> Co-Authored-By: Christoph M. Becker <cmbecker69@gmx.de>
17 lines
345 B
PHP
17 lines
345 B
PHP
--TEST--
|
|
Bug 72093: bcpowmod accepts negative scale and corrupts _one_ definition
|
|
--SKIPIF--
|
|
<?php
|
|
if(!extension_loaded("bcmath")) print "skip";
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(bcpowmod(1, 0, 128, -200));
|
|
var_dump(bcpowmod(1, 1.2, 1, 1));
|
|
?>
|
|
--EXPECTF--
|
|
string(1) "1"
|
|
|
|
Warning: bcpowmod(): non-zero scale in exponent in %s on line %d
|
|
string(3) "0.0"
|