Searched refs:datalen (Results 1 - 11 of 11) sorted by relevance

/PHP_5_6/ext/dba/libcdb/
H A Dcdb_make.c76 int cdb_make_addend(struct cdb_make *c, unsigned int keylen, unsigned int datalen, uint32 h TSRMLS_DC) argument
97 if (cdb_posplus(c, datalen) == -1)
104 int cdb_make_addbegin(struct cdb_make *c, unsigned int keylen, unsigned int datalen TSRMLS_DC)
112 if (datalen > 0xffffffff) {
118 uint32_pack(buf + 4, datalen);
125 int cdb_make_add(struct cdb_make *c,char *key,unsigned int keylen,char *data,unsigned int datalen TSRMLS_DC)
127 if (cdb_make_addbegin(c, keylen, datalen TSRMLS_CC) == -1)
131 if (cdb_make_write(c, data, datalen TSRMLS_CC) != 0)
133 return cdb_make_addend(c, keylen, datalen, cdb_hash(key, keylen) TSRMLS_CC);
/PHP_5_6/ext/mssql/
H A Dphp_mssql.c2014 int param_name_len, datalen; local
2039 /* modify datalen and maxlen according to dbrpcparam documentation */
2043 datalen=0;
2046 datalen=Z_STRLEN_PP(var);
2052 datalen=0;
2054 datalen=-1;
2103 if (dbrpcparam(mssql_ptr->link, param_name, (BYTE)status, type, maxlen, datalen, (LPBYTE)value)==FAIL) {
/PHP_5_6/ext/pdo_oci/
H A Doci_statement.c491 *alenpp = &col->datalen;
553 S->cols[colno].datalen = 512; /* XXX should be INT_MAX and fetched by pieces */
554 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1);
562 S->cols[colno].datalen = sizeof(OCILobLocator*);
577 S->cols[colno].datalen = 512;
580 S->cols[colno].datalen = 1024;
583 S->cols[colno].datalen = col->maxlen;
586 S->cols[colno].datalen *= 3;
588 S->cols[colno].data = emalloc(S->cols[colno].datalen + 1);
596 S->cols[colno].data, S->cols[colno].datalen, dtyp
[all...]
H A Dphp_pdo_oci_int.h54 ub4 datalen; member in struct:__anon171
/PHP_5_6/ext/session/
H A Dmod_mm.c52 size_t datalen; /* amount of valid data */ member in struct:ps_sd
137 sd->alloclen = sd->datalen = 0;
379 *vallen = sd->datalen;
380 *val = emalloc(sd->datalen + 1);
381 memcpy(*val, sd->data, sd->datalen);
382 (*val)[sd->datalen] = '\0';
419 sd->datalen = vallen;
/PHP_5_6/ext/pdo_odbc/
H A Dodbc_stmt.c580 col->maxlen = S->cols[colno].datalen = colsize;
598 S->cols[colno].datalen+1, &S->cols[colno].fetched_len);
H A Dphp_pdo_odbc_int.h138 unsigned long datalen; member in struct:__anon3
/PHP_5_6/ext/standard/
H A Dstreamsfuncs.c333 int datalen, target_addr_len = 0; local
337 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|ls", &zstream, &data, &datalen, &flags, &target_addr, &target_addr_len) == FAILURE) {
350 RETURN_LONG(php_stream_xport_sendto(stream, data, datalen, flags, target_addr ? &sa : NULL, sl TSRMLS_CC));
H A Dstring.c252 int datalen; local
254 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &data, &datalen) == FAILURE) {
258 result = php_bin2hex((unsigned char *)data, datalen, &newlen);
274 int datalen; local
276 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &data, &datalen) == FAILURE) {
280 if (datalen % 2 != 0) {
285 result = php_hex2bin((unsigned char *)data, datalen, &newlen);
H A Dvar_unserializer.c377 long datalen; local
379 datalen = parse_iv2((*p) + 2, p);
383 if (datalen < 0 || (max - (*p)) <= datalen) {
384 zend_error(E_WARNING, "Insufficient data for unserializing - %ld required, %ld present", datalen, (long)(max - (*p)));
391 } else if (ce->unserialize(rval, ce, (const unsigned char*)*p, datalen, (zend_unserialize_data *)var_hash TSRMLS_CC) != SUCCESS) {
395 (*p) += datalen;
H A Dvar_unserializer.re381 long datalen;
383 datalen = parse_iv2((*p) + 2, p);
387 if (datalen < 0 || (max - (*p)) <= datalen) {
388 zend_error(E_WARNING, "Insufficient data for unserializing - %ld required, %ld present", datalen, (long)(max - (*p)));
395 } else if (ce->unserialize(rval, ce, (const unsigned char*)*p, datalen, (zend_unserialize_data *)var_hash TSRMLS_CC) != SUCCESS) {
399 (*p) += datalen;

Completed in 24 milliseconds