Searched refs:chunk (Results 1 - 13 of 13) sorted by relevance

/PHP_TRUNK/ext/phar/
H A Dmakestub.php59 foreach ($s1split as $i => $chunk) {
61 $s1split[$i] = substr($chunk, 1);
64 if ($chunk[strlen($chunk) - 1] == '\\') {
69 foreach ($s3split as $i => $chunk) {
71 $s3split[$i] = substr($chunk, 1);
74 if ($chunk[strlen($chunk) - 1] == '\\') {
81 foreach ($s1split as $i => $chunk) {
83 $stub .= "\tstatic const char newstub1_" . $i . '[] = "' . $chunk
[all...]
/PHP_TRUNK/ext/tokenizer/
H A Dtokenizer.php26 $chunk = $token[1]; variable
28 $chunk = $token; variable
30 $output .= $chunk;
/PHP_TRUNK/ext/standard/tests/file/
H A Dfile.inc121 // write in terms of a chunk of 1 K to avoid memory size overflow
/PHP_TRUNK/ext/pcre/pcrelib/sljit/
H A DsljitExecAllocator.c48 0 - This is the first block of the memory chunk.
89 static SLJIT_INLINE void free_chunk(void* chunk, sljit_uw size) argument
92 VirtualFree(chunk, 0, MEM_RELEASE);
114 static SLJIT_INLINE void free_chunk(void* chunk, sljit_uw size) argument
116 munmap(chunk, size);
278 /* The whole chunk is free. */
/PHP_TRUNK/ext/interbase/
H A Dibase_service.c161 int chunk = slprintf(&buf[spb_len], sizeof(buf) - spb_len, "%c%c%c%s", local
164 if ((spb_len + chunk) > sizeof(buf) || chunk <= 0) {
169 spb_len += chunk;
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_block_alloc.c32 mysqlnd_mempool_free_chunk(MYSQLND_MEMORY_POOL_CHUNK * chunk TSRMLS_DC)
34 MYSQLND_MEMORY_POOL * pool = chunk->pool;
36 if (chunk->from_pool) {
38 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) {
43 pool->free_size += chunk->size;
47 mnd_free(chunk->ptr);
49 mnd_free(chunk);
57 mysqlnd_mempool_resize_chunk(MYSQLND_MEMORY_POOL_CHUNK * chunk, unsigned int size TSRMLS_DC) argument
60 if (chunk
117 MYSQLND_MEMORY_POOL_CHUNK *chunk = NULL; local
[all...]
H A Dmysqlnd_structs.h59 enum_func_status (*resize_chunk)(MYSQLND_MEMORY_POOL_CHUNK * chunk, unsigned int size TSRMLS_DC);
60 void (*free_chunk)(MYSQLND_MEMORY_POOL_CHUNK * chunk TSRMLS_DC);
/PHP_TRUNK/win32/build/
H A Dconfutils.js1836 var pieces, stuff_to_crack, chunk;
1862 chunk = stuff_to_crack.substr(0, j);
1863 pieces += chunk;
1864 stuff_to_crack = stuff_to_crack.substr(chunk.length);
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c266 static void php_cli_server_buffer_append(php_cli_server_buffer *buffer, php_cli_server_chunk *chunk);
897 static size_t php_cli_server_chunk_size(const php_cli_server_chunk *chunk) /* {{{ */ argument
899 switch (chunk->type) {
901 return chunk->data.heap.len;
903 return chunk->data.immortal.len;
908 static void php_cli_server_chunk_dtor(php_cli_server_chunk *chunk) /* {{{ */ argument
910 switch (chunk->type) {
912 if (chunk->data.heap.block != chunk) {
913 pefree(chunk
923 php_cli_server_chunk *chunk, *next; local
937 php_cli_server_buffer_append(php_cli_server_buffer *buffer, php_cli_server_chunk *chunk) argument
949 php_cli_server_buffer_prepend(php_cli_server_buffer *buffer, php_cli_server_chunk *chunk) argument
962 php_cli_server_chunk *chunk; local
972 php_cli_server_chunk *chunk = pemalloc(sizeof(php_cli_server_chunk), 1); local
986 php_cli_server_chunk *chunk = pemalloc(sizeof(php_cli_server_chunk), 1); local
1001 php_cli_server_chunk *chunk = pemalloc(sizeof(php_cli_server_chunk) + len, 1); local
1026 php_cli_server_chunk *chunk, *next; local
1096 php_cli_server_chunk *chunk = php_cli_server_chunk_heap_new_self_contained(131072); local
1883 php_cli_server_chunk *chunk = php_cli_server_chunk_heap_new_self_contained(strlen(prologue_template) + 3 + strlen(status_string) + 1); local
1892 php_cli_server_chunk *chunk = php_cli_server_chunk_immortal_new(php_cli_server_css, sizeof(php_cli_server_css) - 1); local
1900 php_cli_server_chunk *chunk = php_cli_server_chunk_immortal_new(template, sizeof(template) - 1); local
1907 php_cli_server_chunk *chunk = php_cli_server_chunk_heap_new_self_contained(strlen(content_template) + escaped_request_uri->len + 3 + strlen(status_string) + 1); local
1917 php_cli_server_chunk *chunk = php_cli_server_chunk_immortal_new(epilogue_template, sizeof(epilogue_template) - 1); local
1925 php_cli_server_chunk *chunk; local
2005 php_cli_server_chunk *chunk; local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_alloc.h270 typedef void (*zend_mm_chunk_free_t)(zend_mm_storage *storage, void *chunk, size_t size);
271 typedef void (*zend_mm_chunk_truncate_t)(zend_mm_storage *storage, void *chunk, size_t old_size, size_t new_size);
H A Dzend_alloc.c189 * Inside chunk it's managed by pages of fixed size 4096B.
190 * So each chunk consists from 512 pages.
191 * The first page of each chunk is reseved for chunk header.
194 * free_pages - current number of free pages in this chunk
196 * free_tail - number of continuous free pages at the end of chunk
262 int free_tail; /* number of free pages at the end of chunk */
265 zend_mm_heap heap_slot; /* used only in main chunk */
305 #define ZEND_MM_PAGE_ADDR(chunk, page_num) \
306 ((void*)(((zend_mm_page*)(chunk))
804 zend_mm_chunk_init(zend_mm_heap *heap, zend_mm_chunk *chunk) argument
845 zend_mm_chunk *chunk = heap->main_chunk; local
1048 zend_mm_free_pages(zend_mm_heap *heap, zend_mm_chunk *chunk, int page_num, int pages_count) argument
1083 zend_mm_free_large(zend_mm_heap *heap, zend_mm_chunk *chunk, int page_num, int pages_count) argument
1157 zend_mm_chunk *chunk; local
1258 zend_mm_chunk *chunk; local
1328 zend_mm_chunk *chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(ptr, ZEND_MM_CHUNK_SIZE); local
1351 zend_mm_chunk *chunk; local
1453 zend_mm_chunk *chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(ptr, ZEND_MM_CHUNK_SIZE); local
1717 zend_mm_chunk *chunk = (zend_mm_chunk*)zend_mm_chunk_alloc_int(ZEND_MM_CHUNK_SIZE, ZEND_MM_CHUNK_SIZE); local
2157 zend_mm_chunk *chunk = (zend_mm_chunk*)ZEND_MM_ALIGNED_BASE(ptr, ZEND_MM_CHUNK_SIZE); local
2164 zend_mm_free_large(AG(mm_heap), chunk, page_num, pages_count); local
2475 zend_mm_chunk *chunk = (zend_mm_chunk*)storage->chunk_alloc(storage, ZEND_MM_CHUNK_SIZE, ZEND_MM_CHUNK_SIZE); local
[all...]
/PHP_TRUNK/ext/standard/
H A Ddns_win32.c262 DWORD chunk = data_aaaa->Ip6Address.IP6Dword[i]; local
263 out[i * 2] = htons(LOWORD(chunk));
264 out[i * 2 + 1] = htons(HIWORD(chunk));
H A Darray.c4677 zval chunk; local
4697 ZVAL_UNDEF(&chunk);
4700 /* If new chunk, create and initialize it. */
4701 if (Z_TYPE(chunk) == IS_UNDEF) {
4702 array_init_size(&chunk, (uint32_t)size);
4705 /* Add entry to the chunk, preserving keys if necessary. */
4710 zend_hash_update(Z_ARRVAL(chunk), str_key, entry);
4712 add_index_zval(&chunk, num_key, entry);
4715 add_next_index_zval(&chunk, entry);
4718 /* If reached the chunk siz
[all...]

Completed in 29 milliseconds