mirror of
https://github.com/php/php-src.git
synced 2024-12-04 15:23:44 +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)
|