php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch fix_zend_ini_do_op_xor for PHP options/info functions Bug #64523

Patch version 2013-03-26 22:56 UTC

Return to Bug #64523 | Download this patch
Patch Revisions:

Developer: dm@php.net

From 6a8d6fe3186765ef83b5aa249272058dc9fb56a8 Mon Sep 17 00:00:00 2001
From: Dejan Marjanovic <dm@php.net>
Date: Tue, 26 Mar 2013 23:54:09 +0100
Subject: [PATCH] Added XOR to switch

---
 Zend/zend_ini_parser.y | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Zend/zend_ini_parser.y b/Zend/zend_ini_parser.y
index 2d428c3..c7be59c 100644
--- a/Zend/zend_ini_parser.y
+++ b/Zend/zend_ini_parser.y
@@ -67,6 +67,9 @@ static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2)
 		case '&':
 			i_result = i_op1 & i_op2;
 			break;
+		case '^':
+			i_result = i_op1 ^ i_op2;
+			break;
 		case '~':
 			i_result = ~i_op1;
 			break;
-- 
1.7.11.msysgit.1

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC