Home
last modified time | relevance | path

Searched refs:ptr (Results 176 – 200 of 243) sorted by relevance

12345678910

/php-src/ext/pdo_odbc/
H A Dodbc_stmt.c428 char *ptr = P->outbuf; in odbc_stmt_param_hook() local
433 amount = end - ptr; in odbc_stmt_param_hook()
439 len = php_stream_read(stm, ptr, amount); in odbc_stmt_param_hook()
443 ptr += len; in odbc_stmt_param_hook()
/php-src/ext/standard/
H A Dfile.c123 php_stream_context *context = (php_stream_context*)res->ptr; in ZEND_RSRC_DTOR_FUNC()
1646 static const char *php_fgetcsv_lookup_trailing_spaces(const char *ptr, size_t len) /* {{{ */ in php_fgetcsv_lookup_trailing_spaces() argument
1652 inc_len = (*ptr == '\0' ? 1 : php_mblen(ptr, len)); in php_fgetcsv_lookup_trailing_spaces()
1664 last_chars[1] = *ptr; in php_fgetcsv_lookup_trailing_spaces()
1667 ptr += inc_len; in php_fgetcsv_lookup_trailing_spaces()
1674 return ptr - 2; in php_fgetcsv_lookup_trailing_spaces()
1678 return ptr - 1; in php_fgetcsv_lookup_trailing_spaces()
1680 return ptr; in php_fgetcsv_lookup_trailing_spaces()
/php-src/ext/simplexml/
H A Dsimplexml.c1085 ZVAL_STR(&value, sxe_xmlNodeListGetString((xmlDocPtr) sxe->document->ptr, attr->children, 1)); in sxe_get_prop_hash()
1210 if (sxe1->document->ptr == sxe2->document->ptr) { in sxe_objects_compare()
1252 sxe->xpath = xmlXPathNewContext((xmlDocPtr) sxe->document->ptr); in PHP_METHOD()
1256 ns = xmlGetNsList((xmlDocPtr) sxe->document->ptr, nodeptr); in PHP_METHOD()
1328 sxe->xpath = xmlXPathNewContext((xmlDocPtr) sxe->document->ptr); in PHP_METHOD()
1359 xmlDocPtr doc = sxe->document->ptr; in PHP_METHOD()
1518 node = xmlDocGetRootElement((xmlDocPtr)sxe->document->ptr); in PHP_METHOD()
1809 contents = xmlNodeListGetString((xmlDocPtr) sxe->document->ptr, node->children, 1); in sxe_object_cast_ex()
1820 contents = xmlNodeListGetString((xmlDocPtr) sxe->document->ptr, sxe->node->node->children, 1); in sxe_object_cast_ex()
2055 docp = xmlCopyDoc(sxe->document->ptr, 1); in sxe_object_clone()
[all …]
/php-src/ext/dom/
H A Dphp_dom.h214 if (UNEXPECTED(__intern->ptr == NULL)) { \
224 __ptr = (__prtype)((php_libxml_node_ptr *)__intern->ptr)->node; \
/php-src/sapi/apache2handler/
H A Dsapi_apache2.c90 char *val, *ptr; in php_apache_sapi_header_handler() local
110 ptr = val; in php_apache_sapi_header_handler()
139 *ptr = ':'; in php_apache_sapi_header_handler()
/php-src/sapi/cli/
H A Dphp_cli.c266 const char *ptr = str; in sapi_cli_ub_write() local
284 ret = sapi_cli_single_write(ptr, remaining); in sapi_cli_ub_write()
292 ptr += ret; in sapi_cli_ub_write()
296 return (ptr - str); in sapi_cli_ub_write()
/php-src/ext/opcache/
H A Dzend_persist.c308 HashTable *ptr = zend_shared_memdup_put_free(attributes, sizeof(HashTable)); in zend_persist_attributes() local
309 GC_SET_REFCOUNT(ptr, 2); in zend_persist_attributes()
310 GC_TYPE_INFO(ptr) = GC_ARRAY | ((IS_ARRAY_IMMUTABLE|GC_NOT_COLLECTABLE) << GC_FLAGS_SHIFT); in zend_persist_attributes()
312 return ptr; in zend_persist_attributes()
413 zend_function *ptr = zend_shared_alloc_get_xlat_entry(op_array->prototype); in zend_persist_op_array_ex() local
415 if (ptr) { in zend_persist_op_array_ex()
416 op_array->prototype = ptr; in zend_persist_op_array_ex()
/php-src/ext/opcache/jit/ir/
H A Dir.c1667 int ir_mem_unmap(void *ptr, size_t size) argument
1670 UnmapViewOfFile(ptr);
1674 int ir_mem_protect(void *ptr, size_t size) argument
1684 int ir_mem_flush(void *ptr, size_t size) argument
1702 int ir_mem_unmap(void *ptr, size_t size) argument
1704 munmap(ptr, size);
1708 int ir_mem_protect(void *ptr, size_t size) argument
1730 int ir_mem_flush(void *ptr, size_t size) argument
1733 __builtin___clear_cache((char*)(ptr), (char*)(ptr) + size);
1736 sys_icache_invalidate(ptr, size);
[all …]
H A Dir.h996 int ir_mem_unmap(void *ptr, size_t size);
997 int ir_mem_protect(void *ptr, size_t size);
998 int ir_mem_unprotect(void *ptr, size_t size);
999 int ir_mem_flush(void *ptr, size_t size);
/php-src/ext/pcre/pcre2lib/sljit/
H A DsljitLir.c67 #define FAIL_IF_NULL(ptr) \ argument
69 if (SLJIT_UNLIKELY(!(ptr))) { \
75 #define PTR_FAIL_IF_NULL(ptr) \ argument
77 if (SLJIT_UNLIKELY(!(ptr))) { \
83 #define PTR_FAIL_WITH_EXEC_IF(ptr) \ argument
85 if (SLJIT_UNLIKELY(!(ptr))) { \
372 #define SLJIT_ADD_EXEC_OFFSET(ptr, exec_offset) ((sljit_u8 *)(ptr) + (exec_offset)) argument
374 #define SLJIT_ADD_EXEC_OFFSET(ptr, exec_offset) ((sljit_u8 *)(ptr)) argument
718 #define SLJIT_GET_NEXT_SIZE(ptr) (ptr != NULL) ? ((ptr)->size) : SLJIT_MAX_ADDRESS argument
719 #define SLJIT_GET_NEXT_ADDRESS(ptr) (ptr != NULL) ? ((ptr)->addr) : SLJIT_MAX_ADDRESS argument
/php-src/docs/source/core/data-structures/
H A Dzval.rst56 void *ptr;
196 ``zval.value.ptr``, and casted to the correct type depending on context. If ``ptr`` stores a class
/php-src/ext/opcache/jit/
H A Dzend_jit_vm_helpers.c393 trace_buffer[idx].ptr = _ptr; \
405 trace_buffer[idx].ptr = _ptr; \
416 trace_buffer[0].ptr = _ptr1; \
418 trace_buffer[1].ptr = _ptr2; \
427 trace_buffer[idx].ptr = _ptr;
H A Dzend_jit_internal.h142 static zend_always_inline zend_long zend_jit_hash(const void *ptr) in zend_jit_hash() argument
146 x = (uintptr_t)ptr >> 3; in zend_jit_hash()
408 const void *ptr; member
/php-src/Zend/
H A Dzend.c1987 void **ptr; in zend_map_ptr_new() local
1995 ptr = (void**)CG(map_ptr_real_base) + CG(map_ptr_last); in zend_map_ptr_new()
1996 *ptr = NULL; in zend_map_ptr_new()
1998 return ZEND_MAP_PTR_PTR2OFFSET(ptr); in zend_map_ptr_new()
2004 void **ptr; in zend_map_ptr_extend() local
2012 ptr = (void**)CG(map_ptr_real_base) + CG(map_ptr_last); in zend_map_ptr_extend()
2013 memset(ptr, 0, (last - CG(map_ptr_last)) * sizeof(void*)); in zend_map_ptr_extend()
H A Dzend_object_handlers.c538 uint32_t *ptr = (uint32_t*)Z_PTR_P(el); in zend_property_guard_dtor() local
539 if (EXPECTED(!(((uintptr_t)ptr) & 1))) { in zend_property_guard_dtor()
540 efree_size(ptr, sizeof(uint32_t)); in zend_property_guard_dtor()
554 uint32_t *ptr; in zend_get_property_guard() local
592 ptr = (uint32_t*)emalloc(sizeof(uint32_t)); in zend_get_property_guard()
593 *ptr = 0; in zend_get_property_guard()
594 return (uint32_t*)zend_hash_add_new_ptr(guards, member, ptr); in zend_get_property_guard()
/php-src/ext/libxml/
H A Dphp_libxml.h99 void *ptr; member
/php-src/ext/random/
H A Dphp_random.h176 PHPAPI zend_string *php_random_bin2hex_le(const void *ptr, const size_t len);
/php-src/ext/dba/
H A Ddba.c277 if (le->ptr == p) { in remove_pconnection_from_list()
286 dba_info *info = (dba_info *) rsrc->ptr; in close_pconnection()
290 rsrc->ptr = NULL; in close_pconnection()
590 connection->info = (dba_info *)le->ptr; in php_dba_open()
/php-src/ext/mysqlnd/
H A Dmysqlnd_structs.h64 void *ptr; member
171 typedef int (*func_mysqlnd_local_infile__init)(void ** ptr, const char * const filename);
172 typedef int (*func_mysqlnd_local_infile__read)(void * ptr, zend_uchar * buf, unsigned int buf_len);
173 typedef int (*func_mysqlnd_local_infile__error)(void * ptr, char * error_msg, unsigned int error_ms…
174 typedef void (*func_mysqlnd_local_infile__end)(void * ptr);
/php-src/ext/xml/
H A Dxml.c214 static void *php_xml_realloc_wrapper(void *ptr, size_t sz) in php_xml_realloc_wrapper() argument
216 return erealloc(ptr, sz); in php_xml_realloc_wrapper()
219 static void php_xml_free_wrapper(void *ptr) in php_xml_free_wrapper() argument
221 if (ptr != NULL) { in php_xml_free_wrapper()
222 efree(ptr); in php_xml_free_wrapper()
/php-src/ext/zend_test/
H A Dtest.c685 void zend_test_custom_free(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) in zend_test_custom_free()
690 _zend_mm_free(ZT_G(zend_orig_heap), ptr ZEND_FILE_LINE_EMPTY_CC ZEND_FILE_LINE_EMPTY_CC); in zend_test_custom_free()
693 void * zend_test_custom_realloc(void * ptr, size_t len ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) in zend_test_custom_realloc() argument
698 …return _zend_mm_realloc(ZT_G(zend_orig_heap), ptr, len ZEND_FILE_LINE_EMPTY_CC ZEND_FILE_LINE_EMPT… in zend_test_custom_realloc()
/php-src/ext/pdo/
H A Dpdo_dbh.c386 pdbh = (pdo_dbh_t*)le->ptr; in internal_construct()
1519 if (res->ptr) { in ZEND_RSRC_DTOR_FUNC()
1520 pdo_dbh_t *dbh = (pdo_dbh_t*)res->ptr; in ZEND_RSRC_DTOR_FUNC()
1522 res->ptr = NULL; in ZEND_RSRC_DTOR_FUNC()
/php-src/ext/spl/
H A Dspl_fixedarray.c423 zval *ptr = &(intern->array.elements[index]); in spl_fixedarray_object_write_dimension_helper() local
425 ZVAL_COPY_VALUE(&tmp, ptr); in spl_fixedarray_object_write_dimension_helper()
426 ZVAL_COPY_DEREF(ptr, value); in spl_fixedarray_object_write_dimension_helper()
/php-src/ext/pgsql/
H A Dpgsql.c311 PGconn *link = (PGconn *)rsrc->ptr; in _close_pgsql_plink()
320 rsrc->ptr = NULL; in _close_pgsql_plink()
355 link = (PGconn *) rsrc->ptr; in _rollback_transactions()
675 PQfinish(le->ptr); in php_pgsql_do_connect()
676 le->ptr = NULL; in php_pgsql_do_connect()
686 pg_result = PQexec(le->ptr, "select 1"); in php_pgsql_do_connect()
690 if (le->ptr == NULL) { in php_pgsql_do_connect()
691 le->ptr = PQconnectdb(connstring); in php_pgsql_do_connect()
694 PQreset(le->ptr); in php_pgsql_do_connect()
696 if (le->ptr == NULL || PQstatus(le->ptr) == CONNECTION_BAD) { in php_pgsql_do_connect()
[all …]
/php-src/ext/fileinfo/libmagic/
H A Dcompress.c500 char *ptr = mktemp(buf); in file_pipe2file() local
501 tfd = open(ptr, O_RDWR|O_TRUNC|O_EXCL|O_CREAT, 0600); in file_pipe2file()
503 (void)unlink(ptr); in file_pipe2file()

Completed in 202 milliseconds

12345678910