Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 25 of 355) sorted by path

12345678910>>...15

/php-src/TSRM/
H A Dtsrm_win32.c618 unsigned char buf[4]; in tsrm_choose_random_shm_key() local
619 if (php_win32_get_random_bytes(buf, 4) != SUCCESS) { in tsrm_choose_random_shm_key()
623 ((uint32_t)(buf[0]) << 24) | in tsrm_choose_random_shm_key()
624 (((uint32_t)buf[1]) << 16) | in tsrm_choose_random_shm_key()
625 (((uint32_t)buf[2]) << 8) | in tsrm_choose_random_shm_key()
626 (((uint32_t)buf[3])); in tsrm_choose_random_shm_key()
770 shm->descriptor->shm_perm.uid = buf->shm_perm.uid; in shmctl()
771 shm->descriptor->shm_perm.gid = buf->shm_perm.gid; in shmctl()
822 if (!buf) { in win32_utime()
828 UnixTimeToFileTime(buf->modtime, &mtime); in win32_utime()
[all …]
H A Dtsrm_win32.h100 TSRM_API int win32_utime(const char *filename, struct utimbuf *buf);
105 TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf);
/php-src/Zend/Optimizer/
H A Dzend_worklist.h26 int *buf; member
32 (s)->buf = (int*)do_alloca(sizeof(int) * _len, use_heap); \
38 free_alloca((s)->buf, use_heap)
44 stack->buf = (int*)zend_arena_calloc(arena, sizeof(*stack->buf), len); in zend_worklist_stack_prepare()
52 stack->buf[stack->len++] = i; in zend_worklist_stack_push()
58 return stack->buf[stack->len - 1]; in zend_worklist_stack_peek()
64 return stack->buf[--stack->len]; in zend_worklist_stack_pop()
73 …(w)->stack.buf = (int*)do_alloca(ZEND_MM_ALIGNED_SIZE(sizeof(int) * _len) + sizeof(zend_ulong) * z…
76 (w)->visited = (zend_bitset)((char*)(w)->stack.buf + ZEND_MM_ALIGNED_SIZE(sizeof(int) * _len)); \
81 free_alloca((w)->stack.buf, use_heap)
/php-src/Zend/tests/
H A Dbug70805.phpt17 … unset($GLOBALS["a"]); // this will be called in gc_colloct_roots and put $a into gc roots buf
42 unset($a); // This one cannot be put into roots buf because it's full, thus gc_colloct_roots will b…
43 // but C::__destructor which is called in gc_colloct_roots will put $a into buf
44 // which will make $a be put into gc roots buf twice
H A Dcompare_001.phpt36 $buf = ob_get_clean();
37 echo str_replace("\n", "", $buf);
H A Dcompare_001_64bit.phpt36 $buf = ob_get_clean();
37 echo str_replace("\n", "", $buf);
H A Dcompare_002.phpt36 $buf = ob_get_clean();
37 echo str_replace("\n", "", $buf);
H A Dcompare_002_64bit.phpt36 $buf = ob_get_clean();
37 echo str_replace("\n", "", $buf);
H A Dcompare_003.phpt36 $buf = ob_get_clean();
37 echo str_replace("\n", "", $buf);
H A Dcompare_003_64bit.phpt36 $buf = ob_get_clean();
37 echo str_replace("\n", "", $buf);
H A Dcompare_004.phpt36 $buf = ob_get_clean();
37 echo str_replace("\n", "", $buf);
H A Dcompare_004_64bit.phpt36 $buf = ob_get_clean();
37 echo str_replace("\n", "", $buf);
H A Dcompare_005.phpt36 $buf = ob_get_clean();
37 echo str_replace("\n", "", $buf);
H A Dcompare_005_64bit.phpt36 $buf = ob_get_clean();
37 echo str_replace("\n", "", $buf);
H A Dcompare_006.phpt36 $buf = ob_get_clean();
37 echo str_replace("\n", "", $buf);
H A Dcompare_006_64bit.phpt36 $buf = ob_get_clean();
37 echo str_replace("\n", "", $buf);
/php-src/Zend/
H A Dzend.c287 buf.len = max_len; in ZEND_INI_END()
292 if (buf.c) { in ZEND_INI_END()
293 *pbuf = buf.c; in ZEND_INI_END()
294 return buf.len; in ZEND_INI_END()
328 smart_str buf = {0}; in zend_vstrpprintf() local
332 if (!buf.s) { in zend_vstrpprintf()
529 smart_str_0(&buf); in zend_print_flat_zval_r()
530 zend_write(ZSTR_VAL(buf.s), ZSTR_LEN(buf.s)); in zend_print_flat_zval_r()
611 smart_str_0(&buf); in zend_print_zval_r_to_str()
612 return buf.s; in zend_print_zval_r_to_str()
[all …]
H A Dzend.h203 …int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, z…
247 void (*printf_to_smart_string_function)(smart_string *buf, const char *format, va_list ap);
248 void (*printf_to_smart_str_function)(smart_str *buf, const char *format, va_list ap);
339 extern void (*zend_printf_to_smart_string)(smart_string *buf, const char *format, va_list ap);
340 extern void (*zend_printf_to_smart_str)(smart_str *buf, const char *format, va_list ap);
H A Dzend_alloc.c398 char *buf = php_win32_error_to_msg(err); in stderr_last_error() local
400 if (!buf[0]) { in stderr_last_error()
404 fprintf(stderr, "\n%s: [0x%08lx] %s\n", msg, err, buf); in stderr_last_error()
407 php_win32_error_msg_free(buf); in stderr_last_error()
H A Dzend_ast.c1062 zend_ast_zval *new = (zend_ast_zval*)buf; in zend_ast_tree_copy()
1067 buf = (void*)((char*)buf + sizeof(zend_ast_zval)); in zend_ast_tree_copy()
1074 buf = (void*)((char*)buf + sizeof(zend_ast_zval)); in zend_ast_tree_copy()
1083 buf = (void*)((char*)buf + zend_ast_list_size(list->children)); in zend_ast_tree_copy()
1086 new->child[i] = (zend_ast*)buf; in zend_ast_tree_copy()
1087 buf = zend_ast_tree_copy(list->child[i], buf); in zend_ast_tree_copy()
1094 zend_ast *new = (zend_ast*)buf; in zend_ast_tree_copy()
1098 buf = (void*)((char*)buf + zend_ast_size(children)); in zend_ast_tree_copy()
1101 new->child[i] = (zend_ast*)buf; in zend_ast_tree_copy()
1102 buf = zend_ast_tree_copy(ast->child[i], buf); in zend_ast_tree_copy()
[all …]
H A Dzend_execute.c4206 …te_data *execute_data, zend_execute_data *call, uint32_t op_num, zend_get_gc_buffer *buf) /* {{{ */ in zend_unfinished_calls_gc() argument
4316 zend_get_gc_buffer_add_zval(buf, p); in zend_unfinished_calls_gc()
4321 zend_get_gc_buffer_add_obj(buf, Z_OBJ(call->This)); in zend_unfinished_calls_gc()
4326 zend_get_gc_buffer_add_zval(buf, val); in zend_unfinished_calls_gc()
4330 zend_get_gc_buffer_add_obj(buf, ZEND_CLOSURE_OBJECT(call->func)); in zend_unfinished_calls_gc()
H A Dzend_execute.h428 …end_execute_data *execute_data, zend_execute_data *call, uint32_t op_num, zend_get_gc_buffer *buf);
H A Dzend_fibers.c759 zend_get_gc_buffer *buf = zend_get_gc_buffer_create(); in zend_fiber_object_gc() local
761 zend_get_gc_buffer_add_zval(buf, &fiber->fci.function_name); in zend_fiber_object_gc()
762 zend_get_gc_buffer_add_zval(buf, &fiber->result); in zend_fiber_object_gc()
765 zend_get_gc_buffer_use(buf, table, num); in zend_fiber_object_gc()
772 …shed_execution_gc_ex(ex, ex->func && ZEND_USER_CODE(ex->func->type) ? ex->call : NULL, buf, false); in zend_fiber_object_gc()
780 zend_get_gc_buffer_add_zval(buf, val); in zend_fiber_object_gc()
787 zend_get_gc_buffer_use(buf, table, num); in zend_fiber_object_gc()
H A Dzend_gc.c167 #define GC_IDX2PTR(idx) (GC_G(buf) + (idx))
465 if (gc_globals->buf) { in root_buffer_dtor()
466 free(gc_globals->buf); in root_buffer_dtor()
467 gc_globals->buf = NULL; in root_buffer_dtor()
478 gc_globals->buf = NULL; in gc_globals_ctor_ex()
520 if (GC_G(buf)) { in gc_reset()
554 GC_G(buf)[0].ref = NULL; in gc_enable() local
600 GC_G(buf) = perealloc(GC_G(buf), sizeof(gc_root_buffer) * new_size, 1); in gc_grow_root_buffer()
1395 gc_root_buffer *buf; in gc_add_garbage() local
1409 buf = GC_IDX2PTR(idx); in gc_add_garbage()
[all …]
H A Dzend_gdb.c117 char buf[1024]; in zend_gdb_present() local
118 ssize_t n = read(fd, buf, sizeof(buf) - 1); in zend_gdb_present()
123 buf[n] = 0; in zend_gdb_present()
124 s = strstr(buf, "TracerPid:"); in zend_gdb_present()
133 sprintf(buf, "/proc/%d/exe", (int)pid); in zend_gdb_present()
134 if (readlink(buf, out, sizeof(out) - 1) > 0) { in zend_gdb_present()

Completed in 91 milliseconds

12345678910>>...15