summaryrefslogtreecommitdiff
path: root/Zend/tests/mod_001.phpt
blob: 8dda405abfb900144e779fc8417bb752b432e2d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
modulus by zero
--FILE--
<?php

$a = array(1,2,3);
$b = array();

try {
    $c = $a % $b;
    var_dump($c);
} catch (Exception $e) {
	echo "Exception: " . $e->getMessage() . "\n";
}

echo "Done\n";
?>
--EXPECTF--	
Exception: Division by zero
Done