/PHP-7.2/ext/spl/ |
H A D | spl_observer.c | 704 smart_str buf = {0}; in SPL_METHOD() local 713 smart_str_appendl(&buf, "x:", 2); in SPL_METHOD() 715 php_var_serialize(&buf, &flags, &var_hash); in SPL_METHOD() 722 smart_str_free(&buf); in SPL_METHOD() 727 smart_str_appendc(&buf, ','); in SPL_METHOD() 729 smart_str_appendc(&buf, ';'); in SPL_METHOD() 734 smart_str_appendl(&buf, "m:", 2); in SPL_METHOD() 743 if (buf.s) { in SPL_METHOD() 744 RETURN_NEW_STR(buf.s); in SPL_METHOD() 757 char *buf; in SPL_METHOD() local [all …]
|
/PHP-7.2/ext/posix/ |
H A D | posix.c | 1075 char *buf; in PHP_FUNCTION() local 1087 buf = emalloc(buflen); in PHP_FUNCTION() 1091 if (getgrnam_r(name, g, buf, buflen, &g) || g == NULL) { in PHP_FUNCTION() 1094 buf = erealloc(buf, buflen); in PHP_FUNCTION() 1098 efree(buf); in PHP_FUNCTION() 1115 efree(buf); in PHP_FUNCTION() 1201 char *buf; in PHP_FUNCTION() local 1213 buf = emalloc(buflen); in PHP_FUNCTION() 1216 if (getpwnam_r(name, pw, buf, buflen, &pw) || pw == NULL) { in PHP_FUNCTION() 1217 efree(buf); in PHP_FUNCTION() [all …]
|
/PHP-7.2/Zend/ |
H A D | zend.h | 155 …int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, z… 189 void (*printf_to_smart_string_function)(smart_string *buf, const char *format, va_list ap); 190 void (*printf_to_smart_str_function)(smart_str *buf, const char *format, va_list ap); 269 extern void (*zend_printf_to_smart_string)(smart_string *buf, const char *format, va_list ap); 270 extern void (*zend_printf_to_smart_str)(smart_str *buf, const char *format, va_list ap);
|
H A D | zend_interfaces.h | 77 ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, si… 80 …_unserialize_deny(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, ze…
|
H A D | zend_gc.h | 78 gc_root_buffer buf[GC_NUM_ADDITIONAL_ENTRIES]; member 86 gc_root_buffer *buf; /* preallocated arrays of buffers */ member
|
/PHP-7.2/ext/intl/transliterator/ |
H A D | transliterator_methods.c | 69 char *buf = NULL; in create_transliterator() local 71 spprintf( &buf, 0, "transliterator_create: unable to open ICU transliterator" in create_transliterator() 73 if( buf == NULL ) { in create_transliterator() 79 intl_error_set_custom_msg( NULL, buf, /* copy message */ 1 ); in create_transliterator() 80 efree( buf ); in create_transliterator()
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_io.h | 29 PHPDBG_API int phpdbg_consume_stdin_line(char *buf);
|
H A D | phpdbg_list.h | 45 char *buf; member
|
H A D | phpdbg_cmd.c | 744 char buf[PHPDBG_MAX_CMD]; in phpdbg_read_input() local 760 phpdbg_consume_stdin_line(cmd = buf); in phpdbg_read_input() 820 char buf[PHPDBG_MAX_CMD]; in phpdbg_ask_user_permission() local 825 phpdbg_consume_stdin_line(buf); in phpdbg_ask_user_permission() 826 if (buf[1] == '\n' && (buf[0] == 'y' || buf[0] == 'n')) { in phpdbg_ask_user_permission() 827 if (buf[0] == 'y') { in phpdbg_ask_user_permission()
|
/PHP-7.2/ext/mbstring/oniguruma/src/ |
H A D | utf32_be.c | 81 utf32be_code_to_mbc(OnigCodePoint code, UChar *buf) in utf32be_code_to_mbc() argument 83 UChar* p = buf; in utf32be_code_to_mbc()
|
H A D | utf32_le.c | 81 utf32le_code_to_mbc(OnigCodePoint code, UChar *buf) in utf32le_code_to_mbc() argument 83 UChar* p = buf; in utf32le_code_to_mbc()
|
H A D | utf16_be.c | 109 utf16be_code_to_mbc(OnigCodePoint code, UChar *buf) in utf16be_code_to_mbc() argument 111 UChar* p = buf; in utf16be_code_to_mbc()
|
H A D | utf16_le.c | 119 utf16le_code_to_mbc(OnigCodePoint code, UChar *buf) in utf16le_code_to_mbc() argument 121 UChar* p = buf; in utf16le_code_to_mbc()
|
/PHP-7.2/ext/sockets/ |
H A D | sockets.c | 140 ZEND_ARG_INFO(0, buf) 186 ZEND_ARG_INFO(1, buf) 193 ZEND_ARG_INFO(0, buf) 200 ZEND_ARG_INFO(1, buf) 209 ZEND_ARG_INFO(0, buf) 605 const char *buf; local 629 buf = NULL; 646 return (buf ? (char *) buf : ""); 1693 zval_ptr_dtor(buf); 1694 ZVAL_NULL(buf); [all …]
|
H A D | multicast.c | 764 char *buf = NULL, local 777 buf = ecalloc(size, 1); 779 if_conf.ifc_buf = buf; 793 efree(buf); 794 buf = NULL; 836 efree(buf); 850 if (buf != NULL) 851 efree(buf);
|
/PHP-7.2/win32/ |
H A D | winutil.h | 32 PHP_WINUTIL_API int php_win32_get_random_bytes(unsigned char *buf, size_t size);
|
/PHP-7.2/ext/com_dotnet/ |
H A D | com_wrapper.c | 75 char buf[4096]; in trace() local 77 snprintf(buf, sizeof(buf), "T=%08x ", GetCurrentThreadId()); in trace() 78 OutputDebugString(buf); in trace() 81 vsnprintf(buf, sizeof(buf), fmt, ap); in trace() 83 OutputDebugString(buf); in trace()
|
/PHP-7.2/TSRM/ |
H A D | tsrm_win32.c | 761 TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf) in shmctl() argument 771 memcpy(buf, shm->descriptor, sizeof(struct shmid_ds)); in shmctl() 776 shm->descriptor->shm_perm.uid = buf->shm_perm.uid; in shmctl() 777 shm->descriptor->shm_perm.gid = buf->shm_perm.gid; in shmctl() 778 shm->descriptor->shm_perm.mode = buf->shm_perm.mode; in shmctl() 813 TSRM_API int win32_utime(const char *filename, struct utimbuf *buf) /* {{{ */ in win32_utime() argument 838 if (!buf) { in win32_utime() 844 UnixTimeToFileTime(buf->modtime, &mtime); in win32_utime() 845 UnixTimeToFileTime(buf->actime, &atime); in win32_utime()
|
/PHP-7.2/ext/odbc/ |
H A D | php_odbc.c | 851 char buf[32]; in PHP_MINFO_FUNCTION() local 855 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_persistent)); in PHP_MINFO_FUNCTION() 857 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_links)); in PHP_MINFO_FUNCTION() 861 snprintf(buf, sizeof(buf), "0x%0.4x", ODBCVER); in PHP_MINFO_FUNCTION() 1458 char buf[4096]; in PHP_FUNCTION() local 1808 efree(buf); in php_odbc_fetch_hash() 1841 if (buf) { in php_odbc_fetch_hash() 1842 efree(buf); in php_odbc_fetch_hash() 1961 efree(buf); in PHP_FUNCTION() 1984 if (buf) efree(buf); in PHP_FUNCTION() [all …]
|
/PHP-7.2/ext/xmlrpc/libxmlrpc/ |
H A D | xmlrpc.c | 186 char buf[30]; in date_from_ISO8601() local 190 char *p = (char *) text, *p2 = buf; in date_from_ISO8601() 195 if (p2-buf >= sizeof(buf)) { in date_from_ISO8601() 202 text = buf; in date_from_ISO8601() 272 static int date_to_ISO8601 (time_t value, char *buf, int length) { in date_to_ISO8601() argument 279 return strftime (buf, length, "%Y-%m-%dT%H:%M:%SZ", tm); in date_to_ISO8601() 281 return strftime(buf, length, "%Y%m%dT%H:%M:%SZ", tm); in date_to_ISO8601() 760 char buf[1024]; in map_expat_errors() local 761 snprintf(buf, sizeof(buf), in map_expat_errors() 777 xReturn = XMLRPC_UtilityCreateFault(code, buf); in map_expat_errors()
|
/PHP-7.2/ext/openssl/ |
H A D | xp_ssl.c | 463 char buf[1024]; in php_openssl_matches_common_name() local 469 cert_name_len = X509_NAME_get_text_by_NID(cert_name, NID_commonName, buf, sizeof(buf)); in php_openssl_matches_common_name() 473 } else if ((size_t)cert_name_len != strlen(buf)) { in php_openssl_matches_common_name() 480 cert_name_len, buf, subject_name); in php_openssl_matches_common_name() 592 memcpy(buf, Z_STRVAL_P(val), Z_STRLEN_P(val)+1); in php_openssl_passwd_callback() 1976 return php_openssl_sockop_io( 1, stream, buf, count ); in php_openssl_sockop_read() 1982 return php_openssl_sockop_io( 0, stream, (char*)buf, count ); in php_openssl_sockop_write() 2146 nr_bytes = php_stream_socket_ops.read(stream, buf, count); in php_openssl_sockop_io() 2396 char buf; in php_openssl_sockop_set_option() local 2419 int n = SSL_peek(sslsock->ssl_handle, &buf, sizeof(buf)); in php_openssl_sockop_set_option() [all …]
|
/PHP-7.2/ext/zip/lib/ |
H A D | zip_dirent.c | 99 zip_uint8_t buf[EOCDLEN + EOCD64LEN + EOCD64LOCLEN]; in _zip_cdir_write() local 133 if ((buffer = _zip_buffer_new(buf, sizeof(buf))) == NULL) { in _zip_cdir_write() 300 zip_uint8_t buf[CDENTRYSIZE]; in _zip_dirent_read() local 316 if ((buffer = _zip_buffer_new_from_source(src, size, buf, error)) == NULL) { in _zip_dirent_read() 623 zip_uint8_t buf[CDENTRYSIZE]; in _zip_dirent_write() local 698 if ((buffer = _zip_buffer_new(buf, sizeof(buf))) == NULL) { in _zip_dirent_write() 766 if (_zip_write(za, buf, _zip_buffer_offset(buffer)) < 0) { in _zip_dirent_write()
|
/PHP-7.2/sapi/fpm/fpm/ |
H A D | fpm_main.c | 356 char buf[SAPI_CGI_MAX_HEADER_LENGTH]; in sapi_cgi_send_headers() local 373 len = slprintf(buf, SAPI_CGI_MAX_HEADER_LENGTH, "%s\r\n", SG(sapi_headers).http_status_line); in sapi_cgi_send_headers() 390 len = slprintf(buf, sizeof(buf), "Status:%s\r\n", s); in sapi_cgi_send_headers() 413 …len = slprintf(buf, sizeof(buf), "Status: %d %s\r\n", SG(sapi_headers).http_response_code, err->st… in sapi_cgi_send_headers() 415 len = slprintf(buf, sizeof(buf), "Status: %d\r\n", SG(sapi_headers).http_response_code); in sapi_cgi_send_headers() 422 PHPWRITE_H(buf, len); in sapi_cgi_send_headers() 649 char *buf = malloc(len + 2); in sapi_cgi_log_fastcgi() local 650 memcpy(buf, message, len); in sapi_cgi_log_fastcgi() 651 memcpy(buf + len, "\n", sizeof("\n")); in sapi_cgi_log_fastcgi() 652 ret = fcgi_write(request, FCGI_STDERR, buf, len + 1); in sapi_cgi_log_fastcgi() [all …]
|
/PHP-7.2/main/streams/ |
H A D | php_stream_filter_api.h | 48 char *buf; member 70 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, uint8…
|
/PHP-7.2/main/ |
H A D | rfc1867.c | 265 char *buf = self->buffer + self->bytes_in_buffer; in fill_buffer() local 267 actual_read = (int)sapi_module.read_post(buf, bytes_to_read); in fill_buffer() 619 static size_t multipart_buffer_read(multipart_buffer *self, char *buf, size_t bytes, int *end) in multipart_buffer_read() argument 646 memcpy(buf, self->buf_begin, len); in multipart_buffer_read() 647 buf[len] = 0; in multipart_buffer_read() 649 if (bound && len > 0 && buf[len-1] == '\r') { in multipart_buffer_read() 650 buf[--len] = 0; in multipart_buffer_read() 667 char buf[FILLUNIT], *out=NULL; in multipart_buffer_read_body() local 670 while((read_bytes = multipart_buffer_read(self, buf, sizeof(buf), NULL))) { in multipart_buffer_read_body() 672 memcpy(out + total_bytes, buf, read_bytes); in multipart_buffer_read_body()
|