Searched defs:assertion (Results 1 - 1 of 1) sorted by relevance

/PHP_TRUNK/ext/standard/
H A Dassert.c138 /* {{{ proto int assert(string|bool assertion[, string description])
139 Checks if assertion is false */
142 zval *assertion; local
152 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|s", &assertion, &description, &description_len) == FAILURE) {
156 if (Z_TYPE_P(assertion) == IS_STRING) {
160 myeval = Z_STRVAL_P(assertion);
168 if (zend_eval_stringl(myeval, Z_STRLEN_P(assertion), &retval, compiled_string_description TSRMLS_CC) == FAILURE) {
189 convert_to_boolean_ex(assertion);
190 val = Z_TYPE_P(assertion) == IS_TRUE;

Completed in 2 milliseconds