Searched refs:escapestr (Results 1 - 6 of 6) sorted by relevance

/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd.h217 #define mysqlnd_real_escape_string(conn, newstr, escapestr, escapestr_len) \
218 ((conn)->data)->m->escape_string((conn)->data, (newstr), (escapestr), (escapestr_len) TSRMLS_CC)
219 #define mysqlnd_escape_string(newstr, escapestr, escapestr_len) \
220 mysqlnd_old_escape_string((newstr), (escapestr), (escapestr_len) TSRMLS_CC)
222 PHPAPI zend_ulong mysqlnd_old_escape_string(char * newstr, const char * escapestr, size_t escapestr_len TSRMLS_DC);
H A Dmysqlnd_charset.c730 const char * escapestr, size_t escapestr_len TSRMLS_DC)
734 const char *end = escapestr + escapestr_len;
739 for (;escapestr < end; escapestr++) {
743 if (cset->char_maxlen > 1 && (len = cset->mb_valid(escapestr, end))) {
752 *newstr++ = *escapestr++;
754 escapestr--;
757 if (*escapestr == '\'') {
769 *newstr++ = *escapestr;
784 const char * escapestr, size_
729 mysqlnd_cset_escape_quotes(const MYSQLND_CHARSET * const cset, char *newstr, const char * escapestr, size_t escapestr_len TSRMLS_DC) argument
783 mysqlnd_cset_escape_slashes(const MYSQLND_CHARSET * const cset, char *newstr, const char * escapestr, size_t escapestr_len TSRMLS_DC) argument
[all...]
H A Dmysqlnd_charset.h25 const char *escapestr, size_t escapestr_len TSRMLS_DC);
28 const char *escapestr, size_t escapestr_len TSRMLS_DC);
37 zend_ulong (*const escape_quotes)(const MYSQLND_CHARSET * const cset, char * newstr, const char * escapestr, size_t escapestr_len TSRMLS_DC);
38 zend_ulong (*const escape_slashes)(const MYSQLND_CHARSET * const cset, char * newstr, const char * escapestr, size_t escapestr_len TSRMLS_DC);
H A Dmysqlnd.c1592 mysqlnd_old_escape_string(char * newstr, const char * escapestr, size_t escapestr_len TSRMLS_DC) argument
1595 DBG_RETURN(mysqlnd_cset_escape_slashes(mysqlnd_find_charset_name("latin1"), newstr, escapestr, escapestr_len TSRMLS_CC));
1626 MYSQLND_METHOD(mysqlnd_conn_data, escape_string)(MYSQLND_CONN_DATA * const conn, char * newstr, const char * escapestr, size_t escapestr_len TSRMLS_DC)
1636 ret = mysqlnd_cset_escape_quotes(conn->charset, newstr, escapestr, escapestr_len TSRMLS_CC);
1638 ret = mysqlnd_cset_escape_slashes(conn->charset, newstr, escapestr, escapestr_len TSRMLS_CC);
H A Dmysqlnd_structs.h417 typedef zend_ulong (*func_mysqlnd_conn_data__escape_string)(MYSQLND_CONN_DATA * const conn, char *newstr, const char *escapestr, size_t escapestr_len TSRMLS_DC);
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_api.c1951 /* {{{ proto string mysqli_real_escape_string(object link, string escapestr)
1956 char *escapestr; local
1960 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os", &mysql_link, mysqli_link_class_entry, &escapestr, &escapestr_len) == FAILURE) {
1966 newstr->len = mysql_real_escape_string(mysql->mysql, newstr->val, escapestr, escapestr_len);

Completed in 21 milliseconds