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 $cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD; 8 $req = "10.0.17134"; 9 if (version_compare($cur, $req) < 0) { 10 echo "skip Compatible on Windows systems >= $req"; 11 } 12} 13?> 14--FILE-- 15<?php 16var_dump(bcpowmod(1, "A", 128, -200)); 17var_dump(bcpowmod(1, 1.2, 1, 1)); 18?> 19--EXPECTF-- 20string(1) "1" 21bc math warning: non-zero scale in exponent 22string(3) "0.0" 23