summaryrefslogtreecommitdiff
path: root/Zend/tests/mod_001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/mod_001.phpt')
-rw-r--r--Zend/tests/mod_001.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/tests/mod_001.phpt b/Zend/tests/mod_001.phpt
new file mode 100644
index 0000000..88596f3
--- /dev/null
+++ b/Zend/tests/mod_001.phpt
@@ -0,0 +1,17 @@
+--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