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

/PHP_TRUNK/ext/pdo_pgsql/
H A Dpgsql_driver.c600 size_t buffer_len = 0; local
608 if (buffer_len < Z_STRLEN_P(tmp)) {
609 buffer_len = Z_STRLEN_P(tmp);
610 query = erealloc(query, buffer_len + 2); /* room for \n\0 */
/PHP_TRUNK/ext/standard/
H A Dpassword.c332 size_t buffer_len = 0; local
339 buffer_len = Z_STRLEN_P(option_buffer);
347 buffer_len = ZSTR_LEN(tmp);
365 if (buffer_len > INT_MAX) {
370 } else if (buffer_len < required_salt_len) {
373 php_error_docref(NULL, E_WARNING, "Provided salt is too short: %zd expecting %zd", buffer_len, required_salt_len);
375 } else if (php_password_salt_is_alphabet(buffer, buffer_len) == FAILURE) {
377 if (php_password_salt_to64(buffer, buffer_len, required_salt_len, salt) == FAILURE) {
381 php_error_docref(NULL, E_WARNING, "Provided salt is too short: %zd", buffer_len);
H A Duser_filters.c500 size_t buffer_len; local
503 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zs", &zstream, &buffer, &buffer_len) == FAILURE) {
509 if (!(pbuffer = pemalloc(buffer_len, php_stream_is_persistent(stream)))) {
513 memcpy(pbuffer, buffer, buffer_len);
515 bucket = php_stream_bucket_new(stream, pbuffer, buffer_len, 1, php_stream_is_persistent(stream));
/PHP_TRUNK/ext/intl/uchar/
H A Duchar.c46 int buffer_len = 0; local
56 U8_APPEND_UNSAFE(buffer, buffer_len, cp);
57 buffer[buffer_len] = 0;
58 RETURN_STRINGL(buffer, buffer_len);
240 int32_t buffer_len; local
247 buffer_len = u_charName(cp, (UCharNameChoice)nameChoice, NULL, 0, &error);
248 buffer = zend_string_alloc(buffer_len, 0);
250 buffer_len = u_charName(cp, (UCharNameChoice)nameChoice, ZSTR_VAL(buffer), ZSTR_LEN(buffer) + 1, &error);
437 int buffer_len = 0; local
438 U8_APPEND_UNSAFE(buffer, buffer_len, re
[all...]
/PHP_TRUNK/ext/fileinfo/
H A Dfileinfo.c434 size_t buffer_len; local
453 buffer_len = Z_STRLEN_P(what);
472 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|lr", &buffer, &buffer_len, &options, &zcontext) == FAILURE) {
478 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs|lr", &zfinfo, &buffer, &buffer_len, &options, &zcontext) == FAILURE) {
495 ret_val = (char *) magic_buffer(magic, buffer, buffer_len);
530 if (CHECK_NULL_PATH(buffer, buffer_len)) {
/PHP_TRUNK/ext/oci8/
H A Doci8_interface.c290 ub4 buffer_len; local
305 if (php_oci_lob_read(descriptor, -1, 0, &buffer, &buffer_len)) {
308 if (buffer_len > 0) {
309 zend_string *ret = zend_string_init(buffer, buffer_len, 0);
328 ub4 buffer_len; local
353 if (php_oci_lob_read(descriptor, length, descriptor->lob_current_position, &buffer, &buffer_len)) {
356 if (buffer_len > 0) {
357 zend_string *ret = zend_string_init(buffer, buffer_len, 0);
/PHP_TRUNK/ext/simplexml/
H A Dsimplexml.c392 int buffer_len; local
414 buffer_len = xmlStrlen(buffer);
417 xmlNodeSetContentLen(node, buffer, buffer_len);
/PHP_TRUNK/ext/soap/
H A Dsoap.c2162 int buffer_len; local
2171 buffer_len = vslprintf(buffer, sizeof(buffer)-1, format, argcopy);
2174 buffer_len = vslprintf(buffer, sizeof(buffer)-1, format, args);
2177 if (buffer_len > sizeof(buffer) - 1 || buffer_len < 0) {
2178 buffer_len = sizeof(buffer) - 1;
2243 int buffer_len; local
2248 buffer_len = vslprintf(buffer, sizeof(buffer)-1, format, argcopy);
2251 buffer_len = vslprintf(buffer, sizeof(buffer)-1, format, args);
2254 if (buffer_len > sizeo
[all...]
/PHP_TRUNK/main/
H A Dmain.c712 int buffer_len = 0; local
722 buffer_len = (int)vspprintf(&buffer, 0, format, args);
725 replace_buffer = php_escape_html_entities((unsigned char*)buffer, buffer_len, 0, ENT_COMPAT, NULL);
728 buffer_len = (int)ZSTR_LEN(replace_buffer);
869 ZVAL_STRINGL(&tmp, buffer, buffer_len);
963 int buffer_len, display; local
965 buffer_len = (int)vspprintf(&buffer, PG(log_errors_max_len), format, args);
1096 zend_string *buf = php_escape_html_entities((unsigned char*)buffer, buffer_len, 0, ENT_COMPAT, NULL);
1188 ZVAL_STRINGL(&tmp, buffer, buffer_len);

Completed in 24 milliseconds