Title / Description
Code @@ -303,13 +300,14 @@ Get string length */ ZEND_NAMED_FUNCTION(zend_if_strlen) { - zval **str; + char *s1; + int s1_len; - if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &str) == FAILURE) { - ZEND_WRONG_PARAM_COUNT(); + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &s1, &s1_len) == FAILURE) { + return; } - convert_to_string_ex(str); - RETVAL_LONG(Z_STRLEN_PP(str)); + + RETVAL_LONG(s1_len); } /* }}} */
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code