summaryrefslogtreecommitdiff
path: root/ext/standard/assert.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-10-24 22:28:32 +0200
committerAnatol Belski <ab@php.net>2014-10-24 22:28:32 +0200
commitc51a42076c0f92988115a25068b8ab01dfb8a6ff (patch)
tree87e1a4f1eec114067ca1d66beb02fb7ddd477cd6 /ext/standard/assert.c
parent9cbdf3e66a76895861b6f39e1b1ef5cc46d76654 (diff)
parent1b4fd5825a820873e4ed0f326bcb890e660dc39c (diff)
downloadphp-git-c51a42076c0f92988115a25068b8ab01dfb8a6ff.tar.gz
Merge remote-tracking branch 'origin/master' into native-tls
* origin/master: (214 commits) fix datatype mismatch warnings fix datatype mismatches fix datatype mismatches fix datatype mismatches fix datatype mismatch warnings fix datatype mismatch warnings fix datatype mismatch warnings fix datatype mismatch warning fix datatype mismatches fix datatype mismatch warnings Re-add phpdbg to travis Added some NEWS Make xml valid (missing space between attrs) Fix info classes file name in xml Add note about <eval> tag for errors in xml.md Name the tag <eval> if the error id during ev cmd Do not print out xml as PHP print... Fix output to wrong function Fixed parameter order on %.*s Too much copypaste... ...
Diffstat (limited to 'ext/standard/assert.c')
-rw-r--r--ext/standard/assert.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/standard/assert.c b/ext/standard/assert.c
index efb708d4a9..9fa5a1178c 100644
--- a/ext/standard/assert.c
+++ b/ext/standard/assert.c
@@ -25,12 +25,12 @@
/* }}} */
ZEND_BEGIN_MODULE_GLOBALS(assert)
- zend_long active;
- zend_long bail;
- zend_long warning;
- zend_long quiet_eval;
zval callback;
char *cb;
+ zend_bool active;
+ zend_bool bail;
+ zend_bool warning;
+ zend_bool quiet_eval;
ZEND_END_MODULE_GLOBALS(assert)
ZEND_DECLARE_MODULE_GLOBALS(assert)
@@ -78,11 +78,11 @@ static PHP_INI_MH(OnChangeCallback) /* {{{ */
/* }}} */
PHP_INI_BEGIN()
- STD_PHP_INI_ENTRY("assert.active", "1", PHP_INI_ALL, OnUpdateLong, active, zend_assert_globals, assert_globals)
- STD_PHP_INI_ENTRY("assert.bail", "0", PHP_INI_ALL, OnUpdateLong, bail, zend_assert_globals, assert_globals)
- STD_PHP_INI_ENTRY("assert.warning", "1", PHP_INI_ALL, OnUpdateLong, warning, zend_assert_globals, assert_globals)
+ STD_PHP_INI_ENTRY("assert.active", "1", PHP_INI_ALL, OnUpdateBool, active, zend_assert_globals, assert_globals)
+ STD_PHP_INI_ENTRY("assert.bail", "0", PHP_INI_ALL, OnUpdateBool, bail, zend_assert_globals, assert_globals)
+ STD_PHP_INI_ENTRY("assert.warning", "1", PHP_INI_ALL, OnUpdateBool, warning, zend_assert_globals, assert_globals)
PHP_INI_ENTRY("assert.callback", NULL, PHP_INI_ALL, OnChangeCallback)
- STD_PHP_INI_ENTRY("assert.quiet_eval", "0", PHP_INI_ALL, OnUpdateLong, quiet_eval, zend_assert_globals, assert_globals)
+ STD_PHP_INI_ENTRY("assert.quiet_eval", "0", PHP_INI_ALL, OnUpdateBool, quiet_eval, zend_assert_globals, assert_globals)
PHP_INI_END()
static void php_assert_init_globals(zend_assert_globals *assert_globals_p TSRMLS_DC) /* {{{ */
@@ -258,7 +258,7 @@ PHP_FUNCTION(assert_options)
{
zval *value = NULL;
zend_long what;
- int oldint;
+ zend_bool oldint;
int ac = ZEND_NUM_ARGS();
zend_string *key;