Home
last modified time | relevance | path

Searched refs:tmp_len (Results 1 – 13 of 13) sorted by relevance

/PHP-5.4/ext/standard/
H A Dftp_fopen_wrapper.c138 int result, use_ssl, use_ssl_on_data = 0, tmp_len; in php_ftp_fopen_connect() local
249 PHP_FTP_CNTRL_CHK(resource->user, tmp_len, "Invalid login %s") in php_ftp_fopen_connect()
611 size_t tmp_len; in php_ftp_dirstream_read() local
639 tmp_len = MIN(sizeof(ent->d_name), basename_len - 1); in php_ftp_dirstream_read()
640 memcpy(ent->d_name, basename, tmp_len); in php_ftp_dirstream_read()
641 ent->d_name[tmp_len - 1] = '\0'; in php_ftp_dirstream_read()
645 tmp_len--; in php_ftp_dirstream_read()
646 while (tmp_len >= 0 && in php_ftp_dirstream_read()
647 (ent->d_name[tmp_len] == '\n' || ent->d_name[tmp_len] == '\r' || in php_ftp_dirstream_read()
648 ent->d_name[tmp_len] == '\t' || ent->d_name[tmp_len] == ' ')) { in php_ftp_dirstream_read()
[all …]
H A Dvar.c359 int key_len, tmp_len; in php_array_element_export() local
361 tmp_str = php_str_to_str_ex(key, key_len, "\0", 1, "' . \"\\0\" . '", 12, &tmp_len, 0, NULL); in php_array_element_export()
366 smart_str_appendl(buf, tmp_str, tmp_len); in php_array_element_export()
420 int tmp_len, tmp_len2; in php_var_export_ex() local
439 tmp_len = spprintf(&tmp_str, 0,"%.*H", PG(serialize_precision), Z_DVAL_PP(struc)); in php_var_export_ex()
440 smart_str_appendl(buf, tmp_str, tmp_len); in php_var_export_ex()
444 …tmp_str = php_addcslashes(Z_STRVAL_PP(struc), Z_STRLEN_PP(struc), &tmp_len, 0, "'\\", 2 TSRMLS_CC); in php_var_export_ex()
445 …tmp_str2 = php_str_to_str_ex(tmp_str, tmp_len, "\0", 1, "' . \"\\0\" . '", 12, &tmp_len2, 0, NULL); in php_var_export_ex()
H A Dstring.c2312 zval **tmp_str = NULL, **tmp_from = NULL, **tmp_repl = NULL, **tmp_len= NULL; local
2498 if (SUCCESS == zend_hash_get_current_data_ex(Z_ARRVAL_PP(len), (void **) &tmp_len, &pos_len)) {
2499 if(Z_TYPE_PP(tmp_len) != IS_LONG) {
2500 zval dummy = **tmp_len;
2505 l = Z_LVAL_PP(tmp_len);
/PHP-5.4/ext/pdo_dblib/
H A Ddblib_stmt.c223 unsigned int tmp_len; in pdo_dblib_stmt_get_col() local
269 tmp_len = 32 + (2 * (*len)); /* FIXME: We allocate more than we need here */ in pdo_dblib_stmt_get_col()
270 tmp_ptr = emalloc(tmp_len); in pdo_dblib_stmt_get_col()
/PHP-5.4/ext/pdo_pgsql/
H A Dpgsql_statement.c496 size_t tmp_len; in pgsql_stmt_get_col() local
539 char *tmp_ptr = (char *)PQunescapeBytea((unsigned char *)*ptr, &tmp_len); in pgsql_stmt_get_col()
545 if (!tmp_len) { in pgsql_stmt_get_col()
551 *ptr = estrndup(tmp_ptr, tmp_len); in pgsql_stmt_get_col()
553 *len = tmp_len; in pgsql_stmt_get_col()
H A Dpgsql_driver.c312 size_t tmp_len; in pgsql_handle_quoter() local
318 escaped = PQescapeByteaConn(H->server, (unsigned char *)unquoted, (size_t)unquotedlen, &tmp_len); in pgsql_handle_quoter()
320 escaped = PQescapeBytea((unsigned char *)unquoted, (size_t)unquotedlen, &tmp_len); in pgsql_handle_quoter()
322 *quotedlen = (int)tmp_len + 1; in pgsql_handle_quoter()
/PHP-5.4/ext/mysqlnd/
H A Dmysqlnd_ps_codec.c61 size_t tmp_len = 0; in ps_fetch_from_1_to_8_bytes() local
82 tmp_len = sprintf((char *)&tmp, MYSQLND_LLU_SPEC, uval); in ps_fetch_from_1_to_8_bytes()
90 tmp_len = sprintf((char *)&tmp, MYSQLND_LLU_SPEC, uval); in ps_fetch_from_1_to_8_bytes()
111 tmp_len = sprintf((char *)&tmp, MYSQLND_LL_SPEC, lval); in ps_fetch_from_1_to_8_bytes()
119 if (tmp_len) { in ps_fetch_from_1_to_8_bytes()
123 ZVAL_UTF8_STRINGL(zv, tmp, tmp_len, ZSTR_DUPLICATE); in ps_fetch_from_1_to_8_bytes()
128 ZVAL_STRINGL(zv, tmp, tmp_len, 1); in ps_fetch_from_1_to_8_bytes()
H A Dmysqlnd_wireprotocol.c937 size_t tmp_len = packet->arg_len + 1 + MYSQLND_HEADER_SIZE; in php_mysqlnd_cmd_write() local
939 tmp = (tmp_len > net->cmd_buffer.length)? mnd_emalloc(tmp_len):net->cmd_buffer.buffer; in php_mysqlnd_cmd_write()
950 …sent = net->m.send_ex(net, tmp, tmp_len - MYSQLND_HEADER_SIZE, conn->stats, conn->error_info TSRML… in php_mysqlnd_cmd_write()
/PHP-5.4/ext/phar/
H A Dphar_internal.h620 int tmp_len; in phar_set_inode() local
623 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode()
625 len1 = MIN(entry->phar->fname_len, tmp_len); in phar_set_inode()
628 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode()
631 entry->inode = (unsigned short)zend_get_hash_value(tmp, tmp_len); in phar_set_inode()
H A Dphar.c656 php_uint32 manifest_len, manifest_count, manifest_flags, manifest_index, tmp_len, sig_flags; local
970 PHAR_GET_32(buffer, tmp_len);
972 if (buffer + tmp_len > endbuffer) {
976 if (manifest_len < 10 + tmp_len) {
981 if (tmp_len) {
983 if (alias && alias_len && (alias_len != (int)tmp_len || strncmp(alias, buffer, tmp_len)))
985 buffer[tmp_len] = '\0';
1000 alias_len = tmp_len;
1002 buffer += tmp_len;
1015 if (manifest_count > ((manifest_len - 10 - tmp_len) / (5 * 4 + 1))) {
/PHP-5.4/ext/pdo_mysql/
H A Dmysql_driver.c439 unsigned int tmp_len; local
441 if (mysqlnd_stat(H->server, &tmp, &tmp_len) == PASS) {
442 ZVAL_STRINGL(return_value, tmp, tmp_len, 0);
/PHP-5.4/ext/reflection/
H A Dphp_reflection.c2672 int name_len, tmp_len; in ZEND_METHOD() local
2684 tmp_len = tmp - name_str; in ZEND_METHOD()
2685 ZVAL_STRINGL(classname, name_str, tmp_len, 1); in ZEND_METHOD()
2686 name_len = name_len - (tmp_len + 2); in ZEND_METHOD()
/PHP-5.4/ext/pgsql/
H A Dpgsql.c772 size_t tmp_len;
811 tmp_len = strspn(str, "\\");
812 if (tmp_len != len) {

Completed in 92 milliseconds