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
151 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|s", &assertion, &description, &description_len) == FAILURE) {
155 if (Z_TYPE_P(assertion) == IS_STRING) {
159 myeval = Z_STRVAL_P(assertion);
167 if (zend_eval_stringl(myeval, Z_STRLEN_P(assertion), &retval, compiled_string_description TSRMLS_CC) == FAILURE) {
188 convert_to_boolean_ex(assertion);
189 val = Z_TYPE_P(assertion) == IS_TRUE;

Completed in 2 milliseconds