Home
last modified time | relevance | path

Searched refs:buffer (Results 126 – 150 of 291) sorted by last modified time

12345678910>>...12

/PHP-5.5/ext/standard/tests/file/
H A Dfile_get_contents_file_put_contents_variation2.phpt27 fill_buffer( $buffer, "text", 100);
28 file_put_contents( $filename, $buffer );
29 fill_buffer( $buffer, "numeric", 100);
30 file_put_contents( $filename, $buffer, FILE_APPEND, NULL );
H A Dfile.inc10 fill_buffer() : fills buffer with specified contents
38 Function : bool fill_buffer(string &$buffer, string $fill_type, int $fill_size);
39 Description: Fills the $buffer with data as specified with requested size.
40 $buffer = buffer to be filled
48 function fill_buffer(&$buffer, $fill_type, $fill_size) {
74 $buffer = substr($tmp_buff, 0, $fill_size);
76 $buffer = $tmp_buff;
/PHP-5.5/ext/standard/
H A Dsha1.c203 ((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); in PHP_SHA1Update()
204 SHA1Transform(context->state, context->buffer); in PHP_SHA1Update()
215 ((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], in PHP_SHA1Update()
H A Dsha1.h30 unsigned char buffer[64]; /* input buffer */ member
H A Dpassword.c93 efree(buffer); in php_password_salt_to64()
100 efree(buffer); in php_password_salt_to64()
106 efree(buffer); in php_password_salt_to64()
115 char *buffer; in php_password_make_salt() local
163 efree(buffer); in php_password_make_salt()
169 efree(buffer); in php_password_make_salt()
356 char *buffer; in PHP_FUNCTION() local
389 efree(buffer); in PHP_FUNCTION()
395 efree(buffer); in PHP_FUNCTION()
402 efree(buffer); in PHP_FUNCTION()
[all …]
H A Dphp_crypt_r.h52 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
53 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
H A Diptc.c315 unsigned char *buffer, recnum, dataset, key[ 16 ]; in PHP_FUNCTION() local
324 buffer = (unsigned char *)str; in PHP_FUNCTION()
327 if ((buffer[inx] == 0x1c) && ((buffer[inx+1] == 0x01) || (buffer[inx+1] == 0x02))){ in PHP_FUNCTION()
335 if (buffer[ inx++ ] != 0x1c) { in PHP_FUNCTION()
342 dataset = buffer[ inx++ ]; in PHP_FUNCTION()
343 recnum = buffer[ inx++ ]; in PHP_FUNCTION()
345 if (buffer[ inx ] & (unsigned char) 0x80) { /* long tag */ in PHP_FUNCTION()
349 len = (((long) buffer[ inx + 2 ]) << 24) + (((long) buffer[ inx + 3 ]) << 16) + in PHP_FUNCTION()
350 (((long) buffer[ inx + 4 ]) << 8) + (((long) buffer[ inx + 5 ])); in PHP_FUNCTION()
353 len = (((unsigned short) buffer[ inx ])<<8) | (unsigned short)buffer[ inx+1 ]; in PHP_FUNCTION()
[all …]
H A Dmd5.c329 body(ctx, ctx->buffer, 64); in PHP_MD5Update()
337 memcpy(ctx->buffer, data, size); in PHP_MD5Update()
346 ctx->buffer[used++] = 0x80; in PHP_MD5Final()
352 body(ctx, ctx->buffer, 64); in PHP_MD5Final()
360 ctx->buffer[56] = ctx->lo; in PHP_MD5Final()
361 ctx->buffer[57] = ctx->lo >> 8; in PHP_MD5Final()
362 ctx->buffer[58] = ctx->lo >> 16; in PHP_MD5Final()
363 ctx->buffer[59] = ctx->lo >> 24; in PHP_MD5Final()
364 ctx->buffer[60] = ctx->hi; in PHP_MD5Final()
365 ctx->buffer[61] = ctx->hi >> 8; in PHP_MD5Final()
[all …]
H A Dmd5.h47 unsigned char buffer[64]; member
H A Dimage.c181 static unsigned long int php_swf_get_bits (unsigned char* buffer, unsigned int pos, unsigned int co… in php_swf_get_bits() argument
189 ((((buffer[loop / 8]) >> (7 - (loop % 8))) & 0x01) << (count - (loop - pos) - 1)); in php_swf_get_bits()
443 unsigned char *buffer; in php_read_APP() local
453 buffer = emalloc(length); in php_read_APP()
455 if (php_stream_read(stream, buffer, (long) length) <= 0) { in php_read_APP()
456 efree(buffer); in php_read_APP()
464 add_assoc_stringl(info, markername, buffer, length, 1); in php_read_APP()
467 efree(buffer); in php_read_APP()
H A Dformatted_print.c65 *buffer = erealloc(*buffer, *size); in php_sprintf_appendchar()
68 (*buffer)[(*pos)++] = add; in php_sprintf_appendchar()
108 *buffer = erealloc(*buffer, *size); in php_sprintf_appendstring()
112 (*buffer)[(*pos)++] = (neg) ? '-' : '+'; in php_sprintf_appendstring()
118 (*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
122 memcpy(&(*buffer)[*pos], add, copy_len + 1); in php_sprintf_appendstring()
126 (*buffer)[(*pos)++] = padding; in php_sprintf_appendstring()
210 php_sprintf_appenddouble(char **buffer, int *pos, in php_sprintf_appenddouble() argument
344 php_sprintf_getnumber(char *buffer, int *pos) in php_sprintf_getnumber() argument
347 register long num = strtol(&buffer[*pos], &endptr, 10); in php_sprintf_getnumber()
[all …]
H A Dftp_fopen_wrapper.c83 static inline int get_ftp_result(php_stream *stream, char *buffer, size_t buffer_size TSRMLS_DC) in get_ftp_result() argument
85 while (php_stream_gets(stream, buffer, buffer_size-1) && in get_ftp_result()
86 !(isdigit((int) buffer[0]) && isdigit((int) buffer[1]) && in get_ftp_result()
87 isdigit((int) buffer[2]) && buffer[3] == ' ')); in get_ftp_result()
88 return strtol(buffer, NULL, 10); in get_ftp_result()
H A Dfile.c1181 char *buffer = NULL; in PHP_FUNCTION() local
1200 ret = php_stream_write(stream, buffer ? buffer : arg2, num_bytes); in PHP_FUNCTION()
1201 if (buffer) { in PHP_FUNCTION()
1202 efree(buffer); in PHP_FUNCTION()
H A Dcrypt.c155 struct php_crypt_extended_data buffer; in php_crypt() local
217 memset(&buffer, 0, sizeof(buffer)); in php_crypt()
220 crypt_res = _crypt_extended_r(password, salt, &buffer); in php_crypt()
234 struct crypt_data buffer; in php_crypt() local
235 memset(&buffer, 0, sizeof(buffer)); in php_crypt()
237 CRYPTD buffer; in php_crypt()
241 crypt_res = crypt_r(password, salt, &buffer); in php_crypt()
H A Dcrypt_sha256.c269 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes()
276 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes()
279 buffer = (const char *) buffer + add; in sha256_process_bytes()
294 sha256_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx); in sha256_process_bytes()
295 buffer = (const char *) buffer + 64; in sha256_process_bytes()
299 buffer = (const char *) buffer + (len & ~63); in sha256_process_bytes()
308 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
313 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes()
570 buffer = NULL; in php_sha256_crypt_r()
594 return buffer; in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c296 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
304 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
308 buffer = (const char *) buffer + add; in sha512_process_bytes()
324 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes()
325 buffer = (const char *) buffer + 128; in sha512_process_bytes()
332 buffer = (const char *) buffer + (len & ~127); in sha512_process_bytes()
341 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
346 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
617 buffer = NULL; in php_sha512_crypt_r()
640 return buffer; in php_sha512_crypt_r()
[all …]
H A Dbasic_functions.c2123 ZEND_ARG_INFO(0, buffer)
2128 ZEND_ARG_INFO(0, buffer)
2640 ZEND_ARG_INFO(0, buffer)
3878 char buffer[40]; in PHP_NAMED_FUNCTION() local
3894 if (!inet_ntop(af, address, buffer, sizeof(buffer))) { in PHP_NAMED_FUNCTION()
3899 RETURN_STRING(buffer, 1); in PHP_NAMED_FUNCTION()
3912 char buffer[17]; in PHP_NAMED_FUNCTION() local
3918 memset(buffer, 0, sizeof(buffer)); in PHP_NAMED_FUNCTION()
3930 ret = inet_pton(af, address, buffer); in PHP_NAMED_FUNCTION()
3937 RETURN_STRINGL(buffer, af == AF_INET ? 4 : 16, 1); in PHP_NAMED_FUNCTION()
H A Dconfig.m414 char buffer[64];
27 fgets(buffer, sizeof(buffer), fp);
30 fgets(buffer, sizeof(buffer), fp);
31 if (0 != strcmp(buffer, "line 1\n"))
33 fgets(buffer, sizeof(buffer), fp);
34 if (0 != strcmp(buffer, "line 3\n"))
/PHP-5.5/ext/sqlite3/
H A Dsqlite3.c1541 char *buffer = NULL; local
1548 blength = php_stream_copy_to_mem(stream, (void *)&buffer, PHP_STREAM_COPY_ALL, 0);
1552 buffer = Z_STRVAL_P(param->parameter);
1555 sqlite3_bind_blob(stmt_obj->stmt, param->param_number, buffer, blength, SQLITE_TRANSIENT);
1558 pefree(buffer, 0);
/PHP-5.5/ext/spl/internal/
H A Dsplfileobject.inc264 * Invalidate current line buffer and set line number to 0.
281 * @note Fill current line buffer if not done yet.
282 * @return line buffer
306 /** Invalidate current line buffer.
332 * Free the current line buffer and increment the line counter
/PHP-5.5/ext/sockets/tests/
H A Dsocket_strerror.phpt130 string(25) "No buffer space available"
/PHP-5.5/ext/sockets/
H A Dsendrecvmsg.c368 void *buffer; in php_do_getsockopt_ipv6_rfc3542() local
386 buffer = ecalloc(1, size); in php_do_getsockopt_ipv6_rfc3542()
387 res = getsockopt(php_sock->bsd_socket, level, optname, buffer, &size); in php_do_getsockopt_ipv6_rfc3542()
391 zval *zv = to_zval_run_conversions(buffer, reader, "in6_pktinfo", in php_do_getsockopt_ipv6_rfc3542()
401 efree(buffer); in php_do_getsockopt_ipv6_rfc3542()
/PHP-5.5/ext/soap/
H A Dsoap.c2163 char buffer[1024]; local
2176 buffer_len = vslprintf(buffer, sizeof(buffer)-1, format, argcopy);
2179 buffer_len = vslprintf(buffer, sizeof(buffer)-1, format, args);
2181 buffer[sizeof(buffer)-1]=0;
2183 buffer_len = sizeof(buffer) - 1;
2234 char buffer[1024]; local
2248 strcpy(buffer, "Internal Error");
2257 buffer_len = vslprintf(buffer, sizeof(buffer)-1, format, argcopy);
2260 buffer_len = vslprintf(buffer, sizeof(buffer)-1, format, args);
2262 buffer[sizeof(buffer)-1]=0;
[all …]
H A Dphp_http.c339 char **buffer, in make_http_soap_request() argument
883 if (!buffer) { in make_http_soap_request()
1280 *buffer = Z_STRVAL(retval); in make_http_soap_request()
1294 *buffer = http_body; in make_http_soap_request()
1307 char *s = *buffer; in make_http_soap_request()
1319 efree(*buffer); in make_http_soap_request()
H A Dphp_packet_soap.c25 int parse_packet_soap(zval *this_ptr, char *buffer, int buffer_size, sdlFunctionPtr fn, char *fn_na… in parse_packet_soap() argument
43 response = soap_xmlParseMemory(buffer, buffer_size); in parse_packet_soap()

Completed in 95 milliseconds

12345678910>>...12