summaryrefslogtreecommitdiff
path: root/Zend/tests/self_xor.phpt
diff options
context:
space:
mode:
authorAndrea Faulds <ajf@ajf.me>2014-12-13 21:11:09 +0000
committerAndrea Faulds <ajf@ajf.me>2014-12-13 21:11:09 +0000
commit8c99b65c4d2bc91aff7efce6f88713ebcb5d55c5 (patch)
tree1426f5c87e2b81475672157fc55c25b316da22af /Zend/tests/self_xor.phpt
parent0ea0b591d79ae0ee18d33533a5c701330836ff6b (diff)
downloadphp-git-8c99b65c4d2bc91aff7efce6f88713ebcb5d55c5.tar.gz
Fixed memory leak introduced by 73458e8f
Diffstat (limited to 'Zend/tests/self_xor.phpt')
-rw-r--r--Zend/tests/self_xor.phpt25
1 files changed, 25 insertions, 0 deletions
diff --git a/Zend/tests/self_xor.phpt b/Zend/tests/self_xor.phpt
new file mode 100644
index 0000000000..a7e43f539d
--- /dev/null
+++ b/Zend/tests/self_xor.phpt
@@ -0,0 +1,25 @@
+--TEST--
+XORing strings
+--FILE--
+<?php
+
+$s = "123";
+$s1 = "test";
+$s2 = "45345some";
+
+$s ^= 22;
+var_dump($s);
+
+$s1 ^= 11;
+var_dump($s1);
+
+$s2 ^= 33;
+var_dump($s2);
+
+echo "Done\n";
+?>
+--EXPECTF--
+int(109)
+int(11)
+int(45312)
+Done