Searched refs:newstr (Results 1 - 9 of 9) sorted by relevance

/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dfuncs.c66 char *buf = NULL, *newstr; local
73 len = spprintf(&newstr, 0, "%s%s", ms->o.buf, (buf ? buf : ""));
78 ms->o.buf = newstr;
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c3154 char *newstr; local
3163 newstr = php_unicode_convert_case(case_mode, str, (size_t) str_len, &ret_len, from_encoding TSRMLS_CC);
3165 if (newstr) {
3167 RETVAL_STRINGL(newstr, ret_len);
3168 efree(newstr);
3181 char *newstr; local
3188 newstr = php_unicode_convert_case(PHP_UNICODE_CASE_UPPER, str, (size_t) str_len, &ret_len, from_encoding TSRMLS_CC);
3190 if (newstr) {
3192 RETVAL_STRINGL(newstr, ret_len);
3193 efree(newstr);
3208 char *newstr; local
[all...]
H A Dphp_unicode.c273 char *unicode, *newstr; local
331 newstr = php_mb_convert_encoding(unicode, unicode_len, src_encoding, "UCS-4BE", ret_len TSRMLS_CC);
334 return newstr;
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_charset.c729 PHPAPI zend_ulong mysqlnd_cset_escape_quotes(const MYSQLND_CHARSET * const cset, char *newstr, argument
732 const char *newstr_s = newstr;
733 const char *newstr_e = newstr + 2 * escapestr_len;
746 if ((newstr + len) > newstr_e) {
752 *newstr++ = *escapestr++;
758 if (newstr + 2 > newstr_e) {
762 *newstr++ = '\'';
763 *newstr++ = '\'';
765 if (newstr + 1 > newstr_e) {
769 *newstr
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.h24 PHPAPI zend_ulong mysqlnd_cset_escape_quotes(const MYSQLND_CHARSET * const charset, char *newstr,
27 PHPAPI zend_ulong mysqlnd_cset_escape_slashes(const MYSQLND_CHARSET * const cset, char *newstr,
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_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);
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.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);
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_api.c1958 zend_string *newstr; local
1965 newstr = zend_string_alloc(2 * escapestr_len, 0);
1966 newstr->len = mysql_real_escape_string(mysql->mysql, newstr->val, escapestr, escapestr_len);
1967 newstr = zend_string_realloc(newstr, newstr->len, 0);
1969 RETURN_STR(newstr);

Completed in 36 milliseconds