php-src/Zend/tests/mod_001.phpt
2007-04-28 11:59:08 +00:00

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