Searched refs:bytes (Results 1 - 21 of 21) sorted by relevance

/PHP_TRUNK/build/
H A Dshtool483 bytes=`echo '\1' | wc -c | awk '{ printf("%s", $1); }'`
484 if [ ".$bytes" != .3 ]; then
485 bytes=`echo -E '\1' | wc -c | awk '{ printf("%s", $1); }'`
486 if [ ".$bytes" = .3 ]; then
493 bytes=`echo -n 123 2>/dev/null | wc -c | awk '{ printf("%s", $1); }'`
494 if [ ".$bytes" = .3 ]; then
/PHP_TRUNK/ext/standard/tests/file/
H A Dfile.inc220 if $flag is specified as "byte", then then given size is taken in bytes
221 $flag = specifiy if size has to be treated as no of total bytes or
224 "byte" = take size in terms of bytes
/PHP_TRUNK/ext/gd/libgd/
H A Dxbm.c44 int bytes = 0, i; local
80 bytes = (width * height / 8) + 1;
81 if (!bytes) {
95 if (!bytes || !max_bit) {
106 for (i = 0; i < bytes; i++) {
/PHP_TRUNK/ext/mbstring/oniguruma/
H A Dregcomp.c282 add_bytes(regex_t* reg, UChar* bytes, int len) argument
284 BBUF_ADD(reg, bytes, len);
H A Dregint.h342 /* bytes buffer */
373 #define BBUF_WRITE(buf,pos,bytes,n) do{\
376 xmemcpy((buf)->p + (pos), (bytes), (n));\
387 #define BBUF_ADD(buf,bytes,n) BBUF_WRITE((buf),(buf)->used,(bytes),(n))
410 #define BBUF_INSERT(buf,pos,bytes,n) do {\
412 BBUF_WRITE(buf,pos,bytes,n);\
416 xmemcpy((buf)->p + (pos), (bytes), (n));\
/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcre_jit_compile.c3182 static SLJIT_INLINE void add_prefix_byte(pcre_uint8 byte, pcre_uint8 *bytes) argument
3184 pcre_uint8 len = bytes[0];
3192 bytes[0] = 1;
3193 bytes[1] = byte;
3198 if (bytes[i] == byte)
3203 bytes[0] = 255;
3208 bytes[len] = byte;
3209 bytes[0] = len;
3212 static int scan_prefix(compiler_common *common, pcre_uchar *cc, pcre_uint32 *chars, pcre_uint8 *bytes, int max_chars) argument
3294 max_chars = scan_prefix(common, cc + len, chars, bytes, max_char
3550 pcre_uint8 bytes[MAX_N_CHARS * MAX_N_BYTES]; local
[all...]
/PHP_TRUNK/ext/mbstring/ucgendat/
H A Ducgendat.c1298 ac_uint4 bytes; local
1355 if ((bytes = sizeof(ac_uint2) * (NUMPROPS + 1)) & 3)
1356 bytes += 4 - (bytes & 3);
1357 nprops = bytes / sizeof(ac_uint2);
1358 bytes += sizeof(ac_uint4) * idx;
1410 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out);
1566 bytes = comps_used * sizeof(_comp_t);
1567 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out);
1644 bytes
[all...]
/PHP_TRUNK/ext/dom/
H A Dnode.c1831 int bytes; local
1833 bytes = xmlOutputBufferClose(buf);
1835 RETURN_LONG(bytes);
H A Ddocument.c1568 int bytes, format, saveempty = 0; local
1593 bytes = xmlSaveFormatFileEnc(file, docp, NULL, format);
1597 if (bytes == -1) {
1600 RETURN_LONG(bytes);
2109 int bytes, format; local
2131 bytes = htmlSaveFileFormat(file, docp, encoding, format);
2133 if (bytes == -1) {
2136 RETURN_LONG(bytes);
/PHP_TRUNK/ext/shmop/
H A Dshmop.c233 int bytes; local
255 bytes = count ? count : shmop->size - start;
257 return_string = zend_string_init(startaddr, bytes, 0);
/PHP_TRUNK/ext/imap/
H A Dphp_imap.c3380 if (body->size.bytes) {
3381 add_property_long(return_value, "bytes", body->size.bytes);
3693 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "bytes", sizeof("bytes") - 1)) != NULL) {
3695 bod->size.bytes = Z_LVAL_P(pvalue);
3797 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "bytes", sizeof("bytes") - 1)) != NULL) {
3799 bod->size.bytes = Z_LVAL_P(pvalue);
4399 * add 2 bytes fo
[all...]
/PHP_TRUNK/main/
H A Drfc1867.c244 * Returns number of bytes added to buffer.
260 /* read the required number of bytes */
281 /* eof if we are out of bytes, or if we hit the final boundary */
617 static int multipart_buffer_read(multipart_buffer *self, char *buf, size_t bytes, int *end) argument
623 if (bytes > self->bytes_in_buffer) {
637 /* maximum number of bytes we are reading */
638 len = max < bytes-1 ? max : bytes-1;
721 sapi_module.sapi_error(E_WARNING, "POST Content-Length of " ZEND_LONG_FMT " bytes exceeds the limit of " ZEND_LONG_FMT " bytes", S
[all...]
/PHP_TRUNK/main/streams/
H A Dstreams.c991 /* set the maximum number of bytes we're allowed to read from buffer */
1025 /* try to read up to maxlen length bytes while we don't find the delim */
1042 /* search for delimiter, but skip buffered_len (the number of bytes
1068 * could not completely fill the read buffer with maxlen bytes and we
1139 * Returns the number of bytes consumed from buf by the first filter in the chain.
1156 /* for our return value, we are interested in the number of bytes consumed from
1221 size_t bytes; local
1228 bytes = _php_stream_write_filtered(stream, buf, count, PSFS_FLAG_NORMAL);
1230 bytes = _php_stream_write_buffer(stream, buf, count);
1233 if (bytes) {
[all...]
/PHP_TRUNK/ext/standard/
H A Dfile.c553 php_error_docref(NULL, E_WARNING, "maxlen truncated from %pd to %d bytes", maxlen, INT_MAX);
567 Write/Create a file with contents data and return the number of bytes written */
628 php_error_docref(NULL, E_WARNING, "content truncated from %zu to " ZEND_LONG_FMT " bytes", len, ZEND_LONG_MAX);
646 php_error_docref(NULL, E_WARNING, "Only %pl of %zd bytes written, possibly out of free disk space", numbytes, Z_STRLEN_P(data));
663 php_error_docref(NULL, E_WARNING, "Failed to write %zd bytes to %s", ZSTR_LEN(str), filename);
681 php_error_docref(NULL, E_WARNING, "Only %pd of %zd bytes written, possibly out of free disk space", numbytes, Z_STRLEN(out));
1076 zend_long bytes = 0; local
1084 if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|ls", &fd, &bytes, &allowed_tags, &allowed_tags_len) == FAILURE) {
1091 if (bytes <= 0) {
1096 len = (size_t) bytes;
[all...]
H A Dcrypt_sha256.c78 /* This array contains the bytes used to pad the buffer to the next
104 /* Process LEN bytes of BUFFER, accumulating context into CTX.
122 number of bytes. Do a double word increment. */
128 /* Process all bytes in the buffer with 64 bytes in each round of
219 /* Process the remaining bytes in the internal buffer and the usual
225 /* Take yet unprocessed bytes into account. */
226 uint32_t bytes = ctx->buflen; local
230 /* Now count remaining bytes. */
231 ctx->total[0] += bytes;
[all...]
H A Dcrypt_sha512.c80 /* This array contains the bytes used to pad the buffer to the next
129 /* Process LEN bytes of BUFFER, accumulating context into CTX.
146 number of bytes. Do a double word increment. */
152 /* Process all bytes in the buffer with 128 bytes in each round of
246 /* Process the remaining bytes in the internal buffer and the usual
252 /* Take yet unprocessed bytes into account. */
253 uint64_t bytes = ctx->buflen; local
257 /* Now count remaining bytes. */
258 ctx->total[0] += bytes;
[all...]
H A Drandom.c77 static int php_random_bytes(void *bytes, size_t size) argument
81 if (php_win32_get_random_bytes(bytes, size) == FAILURE) {
86 arc4random_buf(bytes, size);
106 ssize_t n = read(fd, bytes + read_bytes, size - read_bytes);
124 Return an arbitrary length of pseudo-random bytes as binary string */
128 zend_string *bytes; local
139 bytes = zend_string_alloc(size, 0);
141 if (php_random_bytes(ZSTR_VAL(bytes), size) == FAILURE) {
142 zend_string_release(bytes);
146 ZSTR_VAL(bytes)[siz
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_io.c52 int bytes = PHPDBG_G(input_buflen), len = 0; local
55 memcpy(buf, PHPDBG_G(input_buffer), bytes);
62 if (bytes <= 0) {
66 for (i = len; i < len + bytes; i++) {
68 if (i != len + bytes - 1) {
69 memmove(buf + i, buf + i + 1, len + bytes - i - 1);
76 PHPDBG_G(input_buflen) = len + bytes - 1 - i;
87 len += bytes;
88 } while ((bytes = phpdbg_mixed_read(PHPDBG_G(io)[PHPDBG_STDIN].fd, buf + len, PHPDBG_MAX_CMD - len, -1)) > 0);
90 if (bytes <
[all...]
/PHP_TRUNK/ext/hash/
H A Dhash.c641 php_error_docref(NULL, E_WARNING, "Supplied salt is too long, max of INT_MAX - 4 bytes: %zd supplied", salt_len);
930 /* {{{ proto string mhash_keygen_s2k(int hash, string input_password, string salt, int bytes)
935 int bytes; local
944 bytes = (int)l_bytes;
945 if (bytes <= 0){
969 int times = bytes / block_size;
970 if (bytes % block_size != 0) times++;
990 RETVAL_STRINGL(key, bytes);
991 ZEND_SECURE_ZERO(key, bytes);
1223 ZEND_ARG_INFO(0, bytes)
[all...]
/PHP_TRUNK/ext/simplexml/
H A Dsimplexml.c1437 int bytes; local
1438 bytes = xmlSaveFile(filename, (xmlDocPtr) sxe->document->ptr);
1439 if (bytes == -1) {
/PHP_TRUNK/Zend/
H A Dzend_alloc.c40 * elements. The result is aligned to 8 bytes.
293 zend_mm_page_map free_map; /* 512 bits or 64 bytes */
298 char bytes[ZEND_MM_PAGE_SIZE]; member in struct:_zend_mm_page
306 char bytes[ZEND_MM_PAGE_SIZE * 8]; member in struct:_zend_mm_bin
1016 zend_mm_safe_error(heap, "Allowed memory size of %zu bytes exhausted at %s:%d (tried to allocate %zu bytes)", heap->limit, __zend_filename, __zend_lineno, size);
1018 zend_mm_safe_error(heap, "Allowed memory size of %zu bytes exhausted (tried to allocate %zu bytes)", heap->limit, ZEND_MM_PAGE_SIZE * pages_count);
1034 zend_mm_safe_error(heap, "Out of memory (allocated %zu) at %s:%d (tried to allocate %zu bytes)", heap->real_size, __zend_filename, __zend_lineno, size);
1036 zend_mm_safe_error(heap, "Out of memory (allocated %zu) (tried to allocate %zu bytes)", hea
[all...]

Completed in 76 milliseconds