summaryrefslogtreecommitdiff
path: root/tests/func
diff options
context:
space:
mode:
authorDejan Marjanovic <dejan.marjanovic@gmail.com>2013-03-26 23:54:09 +0100
committerLars Strojny <lstrojny@php.net>2013-03-27 21:28:53 +0100
commit05016b7e960148b0d2d5bde279c22e05bc42d518 (patch)
treef8d122a833c434bb5fbd1973e742d72eb98d959c /tests/func
parent6e8aa096964e1d723a9cae3572b2f0affa4e53c0 (diff)
downloadphp-git-05016b7e960148b0d2d5bde279c22e05bc42d518.tar.gz
Added XOR support for expressions in INI parser
Diffstat (limited to 'tests/func')
-rw-r--r--tests/func/011.phpt10
-rw-r--r--tests/func/bug64523.phpt10
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/func/011.phpt b/tests/func/011.phpt
new file mode 100644
index 0000000000..ec93214a78
--- /dev/null
+++ b/tests/func/011.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Test bitwise AND, OR, XOR, NOT and logical NOT in INI via error_reporting
+--INI--
+error_reporting = E_ALL & E_NOTICE | E_STRICT ^ E_DEPRECATED & ~E_WARNING | !E_ERROR
+--FILE--
+<?php
+echo ini_get('error_reporting');
+?>
+--EXPECT--
+10248
diff --git a/tests/func/bug64523.phpt b/tests/func/bug64523.phpt
new file mode 100644
index 0000000000..e0092ada64
--- /dev/null
+++ b/tests/func/bug64523.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #64523: XOR not parsed in INI
+--INI--
+error_reporting = E_ALL ^ E_NOTICE ^ E_STRICT ^ E_DEPRECATED
+--FILE--
+<?php
+echo ini_get('error_reporting');
+?>
+--EXPECTF--
+22519