1--TEST--
2Bug 72093: bcpowmod accepts negative scale and corrupts _one_ definition
3--SKIPIF--
4<?php
5if(!extension_loaded("bcmath")) print "skip";
6if (substr(PHP_OS, 0, 3) != 'WIN') {
7    die('skip valid only for windows');
8}
9$cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD;
10$req = "10.0.17134";
11if (version_compare($cur, $req) >= 0) {
12	echo "skip Only for Windows systems < $req";
13}
14?>
15--FILE--
16<?php
17var_dump(bcpowmod(1, "A", 128, -200));
18var_dump(bcpowmod(1, 1.2, 1, 1));
19?>
20--EXPECTF--
21string(1) "1"
22%Astring(3) "0.0"%A
23