summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2015-01-07 23:21:12 +0100
committerNikita Popov <nikic@php.net>2015-01-07 23:21:12 +0100
commit3e826c97366044991ae3c892e00d607449f69d66 (patch)
tree5c51af11da2f842023bd613fd95956e1930663c4 /Zend/tests
parent98c2ceacf81116065028cb18a918adafe7a38ee2 (diff)
downloadphp-git-3e826c97366044991ae3c892e00d607449f69d66.tar.gz
Fix the same leak with %=
Diffstat (limited to 'Zend/tests')
-rw-r--r--Zend/tests/compound_assign_with_numeric_strings.phpt (renamed from Zend/tests/compound_shift_string_error.phpt)12
1 files changed, 11 insertions, 1 deletions
diff --git a/Zend/tests/compound_shift_string_error.phpt b/Zend/tests/compound_assign_with_numeric_strings.phpt
index 7f01962451..803650cb02 100644
--- a/Zend/tests/compound_shift_string_error.phpt
+++ b/Zend/tests/compound_assign_with_numeric_strings.phpt
@@ -19,7 +19,13 @@ $n = "-1";
$n >>= $n;
var_dump($n);
-?>
+$n = "0";
+$n %= $n;
+var_dump($n);
+
+$n = "-1";
+$n %= $n;
+var_dump($n);
--EXPECTF--
int(0)
@@ -29,3 +35,7 @@ int(0)
Warning: Bit shift by negative number in %s on line %d
bool(false)
+
+Warning: Division by zero in %s on line %d
+bool(false)
+int(0)