-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pull-request/2745: Fixed bug #75169 (BCMath errors/warnings bypass error handling)
- Loading branch information
Showing
14 changed files
with
48 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
--TEST-- | |||
bcpow() does not support non-integral exponents | |||
--SKIPIF-- | |||
<?php | |||
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available'); | |||
?> | |||
--FILE-- | |||
<?php | |||
var_dump(bcpow('1', '1.1', 2)); | |||
?> | |||
===DONE=== | |||
--EXPECTF-- | |||
Warning: bcpow(): non-zero scale in exponent in %s on line %d | |||
string(1) "1" | |||
===DONE=== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
--TEST-- | |||
bcpow() does not support exponents >= 2**63 | |||
--SKIPIF-- | |||
<?php | |||
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available'); | |||
?> | |||
--FILE-- | |||
<?php | |||
var_dump(bcpow('0', '9223372036854775808', 2)); | |||
?> | |||
===DONE=== | |||
--EXPECTF-- | |||
Warning: bcpow(): exponent too large in %s on line %d | |||
string(1) "1" | |||
===DONE=== |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters