/PHP-8.4/sapi/fpm/fpm/ |
H A D | fpm_trace.c | 9 int fpm_trace_get_strz(char *buf, size_t sz, long addr) /* {{{ */ in fpm_trace_get_strz() argument 12 long l = addr; in fpm_trace_get_strz() 17 for (addr = l; ; addr += SIZEOF_LONG) { in fpm_trace_get_strz() 18 if (0 > fpm_trace_get_long(addr, &l)) { in fpm_trace_get_strz()
|
H A D | fpm_trace_ptrace.c | 55 int fpm_trace_get_long(long addr, long *data) /* {{{ */ in fpm_trace_get_long() argument 60 .piod_offs = (void *) addr, in fpm_trace_get_long() 71 *data = ptrace(PTRACE_PEEKDATA, traced_pid, (void *) addr, 0); in fpm_trace_get_long()
|
H A D | fpm_trace.h | 11 int fpm_trace_get_long(long addr, long *data); 12 int fpm_trace_get_strz(char *buf, size_t sz, long addr);
|
H A D | fpm_trace_mach.c | 80 int fpm_trace_get_long(long addr, long *data) /* {{{ */ in fpm_trace_get_long() argument 82 size_t offset = ((uintptr_t) (addr) % fpm_pagesize); in fpm_trace_get_long() 83 vm_offset_t base = (uintptr_t) (addr) - offset; in fpm_trace_get_long()
|
H A D | fpm_trace_pread.c | 54 int fpm_trace_get_long(long addr, long *data) /* {{{ */ in fpm_trace_get_long() argument 56 if (sizeof(*data) != pread(mem_file, (void *) data, sizeof(*data), (uintptr_t) addr)) { in fpm_trace_get_long()
|
H A D | fpm_sockets.c | 316 if ((status = getaddrinfo(addr, port, &hints, &servinfo)) != 0) { in fpm_socket_af_inet_socket_by_addr() 325 zlog(ZLOG_DEBUG, "Found address for %s, socket opened on %s", addr, tmpbuf); in fpm_socket_af_inet_socket_by_addr() 328 zlog(ZLOG_WARNING, "Found multiple addresses for %s, %s ignored", addr, tmpbuf); in fpm_socket_af_inet_socket_by_addr() 342 char *addr = NULL; in fpm_socket_af_inet_listening_socket() local 350 addr = dup_address; in fpm_socket_af_inet_listening_socket() 353 addr_len = strlen(addr); in fpm_socket_af_inet_listening_socket() 354 if (addr[0] == '[' && addr[addr_len - 1] == ']') { in fpm_socket_af_inet_listening_socket() 355 addr[addr_len - 1] = '\0'; in fpm_socket_af_inet_listening_socket() 356 addr++; in fpm_socket_af_inet_listening_socket() 370 if (addr) { in fpm_socket_af_inet_listening_socket() [all …]
|
/PHP-8.4/sapi/phpdbg/ |
H A D | phpdbg_watch.h | 68 } addr; member 120 int phpdbg_watchpoint_segfault_handler(void *addr); 123 void phpdbg_create_addr_watchpoint(void *addr, size_t size, phpdbg_watchpoint_t *watch); 138 static zend_always_inline void *phpdbg_get_page_boundary(void *addr) { in phpdbg_get_page_boundary() argument 139 return (void *) ((size_t) addr & ~(phpdbg_pagesize - 1)); in phpdbg_get_page_boundary() 142 static zend_always_inline size_t phpdbg_get_total_page_size(void *addr, size_t size) { in phpdbg_get_total_page_size() argument 143 …t) phpdbg_get_page_boundary((void *) ((size_t) addr + size - 1)) - (size_t) phpdbg_get_page_bounda… in phpdbg_get_total_page_size()
|
H A D | phpdbg_watch.c | 230 …addr.ptr) > (char *) addr || (char *) phpdbg_get_page_boundary(watch->addr.ptr) + phpdbg_get_total… in phpdbg_check_for_watchpoint() 290 addr 350 watch->addr.ptr = addr; 405 } else if (coll->reference.addr.ptr) { 425 if (Z_REFCOUNTED_P(watch->addr.zv)) { 445 if (Z_ISREF_P(watch->addr.zv)) { 461 coll->reference.addr.ptr = NULL; 564 if (element->watch->addr.ptr == ptr) { 602 zv = element->watch->addr.zv; 782 zv = element->parent->watch->addr.zv; [all …]
|
H A D | phpdbg_win.c | 22 int mprotect(void *addr, size_t size, int protection) { in mprotect() argument 24 …return (int)VirtualProtect(addr, size, protection == (PROT_READ | PROT_WRITE) ? PAGE_READWRITE : P… in mprotect()
|
/PHP-8.4/ext/ffi/tests/ |
H A D | nested_addr.phpt | 2 FFI Cannot nest FFI::addr() calls 16 $structPtrPtr = \FFI::addr(\FFI::addr($struct)); 19 Fatal error: Uncaught FFI\Exception: FFI::addr() cannot create a reference to a temporary pointer i… 21 #0 %s(%d): FFI::addr(Object(FFI\CData:struct <anonymous>*))
|
/PHP-8.4/ext/opcache/jit/ir/ |
H A D | ir_disasm.c | 96 sym->addr = addr; in ir_disasm_add_symbol() 106 if (sym->addr > node->addr) { in ir_disasm_add_symbol() 115 } else if (sym->addr < node->addr) { in ir_disasm_add_symbol() 124 IR_ASSERT(sym->addr == node->addr); in ir_disasm_add_symbol() 193 if (addr < node->addr) { in ir_disasm_find_symbol() 198 *offset = addr - node->addr; in ir_disasm_find_symbol() 587 addr = 0; 590 addr = addr * 16 + (*r - '0'); 592 addr = addr * 16 + (*r - 'A' + 10); 594 addr = addr * 16 + (*r - 'a' + 10); [all …]
|
H A D | ir_php.h | 15 void *zend_jit_snapshot_handler(ir_ctx *ctx, ir_ref snapshot_ref, ir_insn *snapshot, void *addr) 17 #define IR_SNAPSHOT_HANDLER(ctx, ref, insn, addr) \ argument 18 zend_jit_snapshot_handler(ctx, ref, insn, addr)
|
/PHP-8.4/main/streams/ |
H A D | transports.c | 303 param.want_addr = addr ? 1 : 0; in php_stream_xport_accept() 311 if (addr) { in php_stream_xport_accept() 312 *addr = param.outputs.addr; in php_stream_xport_accept() 338 param.want_addr = addr ? 1 : 0; in php_stream_xport_get_name() 344 if (addr) { in php_stream_xport_get_name() 345 *addr = param.outputs.addr; in php_stream_xport_get_name() 421 if (!oob && addr == NULL) { in php_stream_xport_recvfrom() 446 param.want_addr = addr ? 1 : 0; in php_stream_xport_recvfrom() 455 if (addr) { in php_stream_xport_recvfrom() 456 *addr = param.outputs.addr; in php_stream_xport_recvfrom() [all …]
|
H A D | php_stream_transport.h | 82 void **addr, socklen_t *addrlen, 90 void **addr, socklen_t *addrlen 101 int flags, void **addr, socklen_t *addrlen, 107 int flags, void *addr, socklen_t addrlen); 143 struct sockaddr *addr; member 152 struct sockaddr *addr; member
|
/PHP-8.4/ext/curl/tests/ |
H A D | curl_basic_008.phpt | 9 $addr = "www.".uniqid().".invalid"; 10 if (gethostbyname($addr) != $addr) {
|
H A D | curl_basic_010.phpt | 9 $addr = "www.".uniqid().".".uniqid(); 10 if (gethostbyname($addr) != $addr) {
|
/PHP-8.4/ext/standard/ |
H A D | net.c | 50 PHPAPI zend_string* php_inet_ntop(const struct sockaddr *addr) { in php_inet_ntop() argument 53 if (!addr) { return NULL; } in php_inet_ntop() 55 switch (addr->sa_family) { in php_inet_ntop() 59 …if (inet_ntop(AF_INET6, &(((struct sockaddr_in6*)addr)->sin6_addr), ZSTR_VAL(ret), INET6_ADDRSTRLE… in php_inet_ntop() 69 …if (inet_ntop(AF_INET, &(((struct sockaddr_in*)addr)->sin_addr), ZSTR_VAL(ret), INET_ADDRSTRLEN)) { in php_inet_ntop() 79 switch (addr->sa_family) { in php_inet_ntop() 87 if (getnameinfo(addr, addrlen, ZSTR_VAL(ret), NI_MAXHOST, NULL, 0, NI_NUMERICHOST) == SUCCESS) { in php_inet_ntop() 104 struct sockaddr *addr, struct sockaddr *netmask, in iface_append_unicast() argument 112 if (addr) { in iface_append_unicast() 113 add_assoc_long(&u, "family", addr->sa_family); in iface_append_unicast() [all …]
|
/PHP-8.4/ext/sockets/tests/ |
H A D | socket_recvmsg.phpt | 21 $addr = '::1'; 38 $r = socket_sendto($sends1, $m = "testing packet", strlen($m), 0, $addr, 3001); 44 "name" => ["family" => AF_INET6, "addr" => "::1"], 66 [addr] => ::1 80 [addr] => ::1
|
H A D | socket_sendrecvmsg_multi_msg.phpt | 19 $addr = '::1'; 38 "name" => [ "addr" => "::1", "port" => 3003], 44 'addr' => '::1', 53 "name" => ["family" => AF_INET6, "addr" => "::1"], 76 [addr] => ::1 90 [addr] => ::1
|
H A D | socket_sendrecvmsg_multi_msg-unix.phpt | 24 $addr = '::1'; 43 "name" => [ "addr" => "::1", "port" => 3002], 55 "name" => ["family" => AF_INET6, "addr" => "::1"], 78 [addr] => ::1 92 [addr] => ::1
|
H A D | socket_create_listen.phpt | 14 socket_getsockname($sock, $addr, $port); 15 var_dump($addr, $port);
|
H A D | socket_create_listen-win32.phpt | 14 socket_getsockname($sock, $addr, $port); 15 var_dump($addr, $port);
|
/PHP-8.4/main/ |
H A D | php_network.h | 272 const struct sockaddr *addr, 279 #define php_connect_nonb(sock, addr, addrlen, timeout) \ argument 280 php_network_connect_socket((sock), (addr), (addrlen), 0, (timeout), NULL, NULL) 288 struct sockaddr **addr, 298 struct sockaddr **addr, 304 struct sockaddr **addr, 308 PHPAPI void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port); 309 PHPAPI socklen_t php_sockaddr_size(php_sockaddr_storage *addr); 335 struct sockaddr **addr, 339 PHPAPI zend_result php_network_parse_network_address_with_port(const char *addr,
|
H A D | network.c | 570 if (*addr == '[') { in php_network_parse_network_address_with_port() 576 addr++; in php_network_parse_network_address_with_port() 585 tmp = estrndup(addr, colon - addr); in php_network_parse_network_address_with_port() 649 struct sockaddr **addr, in php_network_populate_name_from_sockaddr() argument 653 if (addr) { in php_network_populate_name_from_sockaddr() 654 *addr = emalloc(sl); in php_network_populate_name_from_sockaddr() 655 memcpy(*addr, sa, sl); in php_network_populate_name_from_sockaddr() 708 struct sockaddr **addr, in php_network_get_peer_name() argument 719 addr, addrlen in php_network_get_peer_name() 739 addr, addrlen in php_network_get_sock_name() [all …]
|
/PHP-8.4/Zend/ |
H A D | zend_call_stack.c | 134 void *addr; in zend_call_stack_get_linux_pthread() local 146 error = pthread_attr_getstack(&attr, &addr, &max_size); in zend_call_stack_get_linux_pthread() 162 addr = (int8_t*)addr + guard_size; in zend_call_stack_get_linux_pthread() 167 stack->base = (int8_t*)addr + max_size; in zend_call_stack_get_linux_pthread() 292 void *addr; in zend_call_stack_get_freebsd_pthread() local 305 error = pthread_attr_getstack(&attr, &addr, &max_size); in zend_call_stack_get_freebsd_pthread() 310 stack->base = (int8_t*)addr + max_size; in zend_call_stack_get_freebsd_pthread() 584 void *addr; in zend_call_stack_get_netbsd_pthread() local 592 error = pthread_attr_getstack(&attr, &addr, &max_size); in zend_call_stack_get_netbsd_pthread() 602 addr = (char *)addr + guard_size; in zend_call_stack_get_netbsd_pthread() [all …]
|