mirror of
https://github.com/php/php-src.git
synced 2026-04-29 03:03:26 +02:00
83626ef97a
The behavior change seems to be in both runtime and system. The displaced warning output is of secondary interest anyway.
23 lines
567 B
PHP
23 lines
567 B
PHP
--TEST--
|
|
Bug 72093: bcpowmod accepts negative scale and corrupts _one_ definition
|
|
--SKIPIF--
|
|
<?php
|
|
if(!extension_loaded("bcmath")) print "skip";
|
|
if (substr(PHP_OS, 0, 3) != 'WIN') {
|
|
die('skip valid only for windows');
|
|
}
|
|
$cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD;
|
|
$req = "10.0.17134";
|
|
if (version_compare($cur, $req) >= 0) {
|
|
echo "skip Only for Windows systems < $req";
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(bcpowmod(1, "A", 128, -200));
|
|
var_dump(bcpowmod(1, 1.2, 1, 1));
|
|
?>
|
|
--EXPECTF--
|
|
string(1) "1"
|
|
%Astring(3) "0.0"%A
|