Home
last modified time | relevance | path

Searched refs:buf (Results 176 – 200 of 349) sorted by relevance

12345678910>>...14

/PHP-7.2/ext/spl/
H A Dspl_observer.c704 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 Dposix.c1075 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 Dzend.h155 …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 Dzend_interfaces.h77 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 Dzend_gc.h78 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 Dtransliterator_methods.c69 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 Dphpdbg_io.h29 PHPDBG_API int phpdbg_consume_stdin_line(char *buf);
H A Dphpdbg_list.h45 char *buf; member
H A Dphpdbg_cmd.c744 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 Dutf32_be.c81 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 Dutf32_le.c81 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 Dutf16_be.c109 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 Dutf16_le.c119 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 Dsockets.c140 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 Dmulticast.c764 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 Dwinutil.h32 PHP_WINUTIL_API int php_win32_get_random_bytes(unsigned char *buf, size_t size);
/PHP-7.2/ext/com_dotnet/
H A Dcom_wrapper.c75 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 Dtsrm_win32.c761 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 Dphp_odbc.c851 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 Dxmlrpc.c186 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 Dxp_ssl.c463 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 Dzip_dirent.c99 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 Dfpm_main.c356 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 Dphp_stream_filter_api.h48 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 Drfc1867.c265 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()

Completed in 81 milliseconds

12345678910>>...14