mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
18 lines
195 B
PHP
18 lines
195 B
PHP
--TEST--
|
|
modulus by zero
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = array(1,2,3);
|
|
$b = array();
|
|
|
|
$c = $a % $b;
|
|
var_dump($c);
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Division by zero in %s on line %d
|
|
bool(false)
|
|
Done
|