mirror of
https://github.com/php/php-src.git
synced 2024-11-29 12:53:37 +08:00
15 lines
224 B
PHP
15 lines
224 B
PHP
--TEST--
|
|
Bug #27354 (Modulus operator crashes PHP)
|
|
--FILE--
|
|
<?php
|
|
var_dump(-2147483647 % -1);
|
|
var_dump(-2147483649 % -1);
|
|
var_dump(-2147483648 % -1);
|
|
var_dump(-2147483648 % -2);
|
|
?>
|
|
--EXPECT--
|
|
int(0)
|
|
int(0)
|
|
int(0)
|
|
int(0)
|