From 60c1472757e35a24ffc4dad597517da15bce2255 Mon Sep 17 00:00:00 2001 From: TravisCI Date: Mon, 8 Aug 2016 02:05:53 +0000 Subject: [PATCH] chore(ZendEngine_2): 7fbf26b853bc18a4149959c6d4ca9784af9e7caf: regenerate test sources [ci skip] --- generated/ZendEngine_2/operator.zep.c | 41 +++++++++++++++++++++++++++ generated/ZendEngine_2/operator.zep.h | 7 +++++ 2 files changed, 48 insertions(+) diff --git a/generated/ZendEngine_2/operator.zep.c b/generated/ZendEngine_2/operator.zep.c index d193844c0b..9927da5d95 100644 --- a/generated/ZendEngine_2/operator.zep.c +++ b/generated/ZendEngine_2/operator.zep.c @@ -83,3 +83,44 @@ PHP_METHOD(Test_Operator, testIdenticalFalseVar) { } +PHP_METHOD(Test_Operator, testBoolComparison) { + + zend_bool var1, var2; + zval *varTrue, *varFalse, *_0 = NULL; + + ZEPHIR_MM_GROW(); + zephir_fetch_params(1, 2, 0, &varTrue, &varFalse); + + + + var1 = 1; + var2 = 0; + zephir_create_array(return_value, 8, 0 TSRMLS_CC); + ZEPHIR_INIT_VAR(_0); + ZVAL_BOOL(_0, ZEPHIR_IS_BOOL_VALUE(varTrue, var1)); + zephir_array_fast_append(return_value, _0); + ZEPHIR_INIT_NVAR(_0); + ZVAL_BOOL(_0, ZEPHIR_IS_BOOL_IDENTICAL(varTrue, var1)); + zephir_array_fast_append(return_value, _0); + ZEPHIR_INIT_NVAR(_0); + ZVAL_BOOL(_0, ZEPHIR_IS_BOOL_VALUE(varFalse, var2)); + zephir_array_fast_append(return_value, _0); + ZEPHIR_INIT_NVAR(_0); + ZVAL_BOOL(_0, ZEPHIR_IS_BOOL_IDENTICAL(varFalse, var2)); + zephir_array_fast_append(return_value, _0); + ZEPHIR_INIT_NVAR(_0); + ZVAL_BOOL(_0, !ZEPHIR_IS_BOOL_VALUE(varTrue, var2)); + zephir_array_fast_append(return_value, _0); + ZEPHIR_INIT_NVAR(_0); + ZVAL_BOOL(_0, !ZEPHIR_IS_BOOL_IDENTICAL(varTrue, var2)); + zephir_array_fast_append(return_value, _0); + ZEPHIR_INIT_NVAR(_0); + ZVAL_BOOL(_0, !ZEPHIR_IS_BOOL_VALUE(varFalse, var1)); + zephir_array_fast_append(return_value, _0); + ZEPHIR_INIT_NVAR(_0); + ZVAL_BOOL(_0, !ZEPHIR_IS_BOOL_IDENTICAL(varFalse, var1)); + zephir_array_fast_append(return_value, _0); + RETURN_MM(); + +} + diff --git a/generated/ZendEngine_2/operator.zep.h b/generated/ZendEngine_2/operator.zep.h index e9e791dc16..bec82dbb95 100644 --- a/generated/ZendEngine_2/operator.zep.h +++ b/generated/ZendEngine_2/operator.zep.h @@ -7,6 +7,7 @@ PHP_METHOD(Test_Operator, testIdentical); PHP_METHOD(Test_Operator, testIdenticalIfComplex); PHP_METHOD(Test_Operator, testIdenticalVarFalse); PHP_METHOD(Test_Operator, testIdenticalFalseVar); +PHP_METHOD(Test_Operator, testBoolComparison); ZEND_BEGIN_ARG_INFO_EX(arginfo_test_operator_testidentical, 0, 0, 2) ZEND_ARG_INFO(0, param1) @@ -25,10 +26,16 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_test_operator_testidenticalfalsevar, 0, 0, 1) ZEND_ARG_INFO(0, param) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_INFO_EX(arginfo_test_operator_testboolcomparison, 0, 0, 2) + ZEND_ARG_INFO(0, varTrue) + ZEND_ARG_INFO(0, varFalse) +ZEND_END_ARG_INFO() + ZEPHIR_INIT_FUNCS(test_operator_method_entry) { PHP_ME(Test_Operator, testIdentical, arginfo_test_operator_testidentical, ZEND_ACC_PUBLIC) PHP_ME(Test_Operator, testIdenticalIfComplex, arginfo_test_operator_testidenticalifcomplex, ZEND_ACC_PUBLIC) PHP_ME(Test_Operator, testIdenticalVarFalse, arginfo_test_operator_testidenticalvarfalse, ZEND_ACC_PUBLIC) PHP_ME(Test_Operator, testIdenticalFalseVar, arginfo_test_operator_testidenticalfalsevar, ZEND_ACC_PUBLIC) + PHP_ME(Test_Operator, testBoolComparison, arginfo_test_operator_testboolcomparison, ZEND_ACC_PUBLIC) PHP_FE_END };