Home
last modified time | relevance | path

Searched refs:buf (Results 151 – 175 of 313) sorted by relevance

12345678910>>...13

/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_conf.c188 char *buf; in fpm_conf_expand_pool_name() local
205 efree(buf); in fpm_conf_expand_pool_name()
1028 char *buf; in fpm_conf_process_all_pools() local
1034 efree(buf); in fpm_conf_process_all_pools()
1038 efree(buf); in fpm_conf_process_all_pools()
1158 char buf[64]; in fpm_conf_write_pid() local
1558 free(buf); in fpm_conf_load_ini_file()
1564 buf[n] = c; in fpm_conf_load_ini_file()
1578 free(buf); in fpm_conf_load_ini_file()
1590 free(buf); in fpm_conf_load_ini_file()
[all …]
/PHP-7.4/sapi/phpdbg/
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[1] == '\r' && buf[2] == '\n')) && (buf[0] == 'y' || buf[0] == 'n')) { in phpdbg_ask_user_permission()
827 if (buf[0] == 'y') { in phpdbg_ask_user_permission()
H A Dphpdbg_io.h29 PHPDBG_API int phpdbg_consume_stdin_line(char *buf);
H A Dphpdbg_list.h45 char *buf; member
/PHP-7.4/ext/standard/
H A Dftp_fopen_wrapper.c616 static ssize_t php_ftp_dirstream_read(php_stream *stream, char *buf, size_t count) in php_ftp_dirstream_read() argument
618 php_stream_dirent *ent = (php_stream_dirent *)buf; in php_ftp_dirstream_read()
1065 char *p, *e, *buf; in php_stream_ftp_mkdir() local
1067 buf = estrndup(ZSTR_VAL(resource->path), ZSTR_LEN(resource->path)); in php_stream_ftp_mkdir()
1068 e = buf + ZSTR_LEN(resource->path); in php_stream_ftp_mkdir()
1071 while ((p = strrchr(buf, '/'))) { in php_stream_ftp_mkdir()
1073 php_stream_printf(stream, "CWD %s\r\n", strlen(buf) ? buf : "/"); in php_stream_ftp_mkdir()
1081 php_stream_printf(stream, "MKD %s\r\n", strlen(buf) ? buf : "/"); in php_stream_ftp_mkdir()
1086 p = buf; in php_stream_ftp_mkdir()
1092 php_stream_printf(stream, "MKD %s\r\n", buf); in php_stream_ftp_mkdir()
[all …]
/PHP-7.4/ext/tidy/
H A Dtidy.c533 efree(buf); in php_tidy_free()
646 TidyBuffer buf; in php_tidy_quick_repair() local
648 tidyBufInit(&buf); in php_tidy_quick_repair()
811 TidyBuffer buf; in tidy_node_cast_handler() local
830 tidyBufInit(&buf); in tidy_node_cast_handler()
833 ZVAL_STRINGL(out, (char *) buf.bp, buf.size-1); in tidy_node_cast_handler()
837 tidyBufFree(&buf); in tidy_node_cast_handler()
878 TidyBuffer buf; in tidy_add_default_properties() local
892 ADD_PROPERTY_STRINGL(obj->std.properties, value, buf.bp, buf.size ? buf.size-1 : 0); in tidy_add_default_properties()
1052 TidyBuffer buf; in php_tidy_parse_string() local
[all …]
/PHP-7.4/sapi/cgi/
H A Dcgi_main.c407 len = slprintf(buf, sizeof(buf), "Status:%s", s); in sapi_cgi_send_headers()
439 PHPWRITE_H(buf, len); in sapi_cgi_send_headers()
603 char *buf; in _sapi_cgi_putenv() local
624 buf = (char *) malloc(len); in _sapi_cgi_putenv()
625 if (buf == NULL) { in _sapi_cgi_putenv()
632 putenv(buf); in _sapi_cgi_putenv()
638 putenv(buf); in _sapi_cgi_putenv()
765 char *buf = malloc(len+2); in sapi_cgi_log_message() local
767 memcpy(buf, message, len); in sapi_cgi_log_message()
770 free(buf); in sapi_cgi_log_message()
[all …]
/PHP-7.4/ext/sysvsem/
H A Dsysvsem.c48 struct semid_ds *buf; /* buffer for IPC_STAT, IPC_SET */ member
383 struct semid_ds buf; local
395 un.buf = &buf;
/PHP-7.4/ext/hash/
H A Dhash.c151 char buf[1024]; in php_hash_do_hash() local
154 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in php_hash_do_hash()
155 ops->hash_update(context, (unsigned char *) buf, n); in php_hash_do_hash()
283 char buf[1024]; in php_hash_do_hash_hmac() local
287 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in php_hash_do_hash_hmac()
288 ops->hash_update(context, (unsigned char *) buf, n); in php_hash_do_hash_hmac()
460 char buf[1024]; in PHP_FUNCTION() local
468 if ((n = php_stream_read(stream, buf, toread)) <= 0) { in PHP_FUNCTION()
489 char buf[1024]; in PHP_FUNCTION() local
506 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/spl/
H A Dspl_observer.c699 smart_str buf = {0}; in SPL_METHOD() local
708 smart_str_appendl(&buf, "x:", 2); in SPL_METHOD()
710 php_var_serialize(&buf, &flags, &var_hash); in SPL_METHOD()
716 smart_str_free(&buf); in SPL_METHOD()
721 smart_str_appendc(&buf, ','); in SPL_METHOD()
723 smart_str_appendc(&buf, ';'); in SPL_METHOD()
728 smart_str_appendl(&buf, "m:", 2); in SPL_METHOD()
737 if (buf.s) { in SPL_METHOD()
738 RETURN_NEW_STR(buf.s); in SPL_METHOD()
751 char *buf; in SPL_METHOD() local
[all …]
/PHP-7.4/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.4/sapi/litespeed/
H A Dlsapilib.c99 uint32 buf[4]; member
245 char buf[1024]; in LSAPI_Log() local
246 char *p = buf; in LSAPI_Log()
278 if (p > buf) in LSAPI_Log()
279 fprintf(stderr, "%.*s", (int)(p - buf), buf); in LSAPI_Log()
4113 t = (uint32) ((unsigned) buf[3] << 8 | buf[2]) << 16 | in byteReverse()
4114 ((unsigned) buf[1] << 8 | buf[0]); in byteReverse()
4252 a = buf[0]; in lsapi_MD5Transform()
4253 b = buf[1]; in lsapi_MD5Transform()
4254 c = buf[2]; in lsapi_MD5Transform()
[all …]
/PHP-7.4/Zend/
H A Dzend_interfaces.h75 ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, si…
78 …_unserialize_deny(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, ze…
H A Dzend.h159 …int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, z…
198 void (*printf_to_smart_string_function)(smart_string *buf, const char *format, va_list ap);
199 void (*printf_to_smart_str_function)(smart_str *buf, const char *format, va_list ap);
286 extern void (*zend_printf_to_smart_string)(smart_string *buf, const char *format, va_list ap);
287 extern void (*zend_printf_to_smart_str)(smart_str *buf, const char *format, va_list ap);
H A Dzend_gc.c164 #define GC_IDX2PTR(idx) (GC_G(buf) + (idx))
423 if (gc_globals->buf) { in root_buffer_dtor()
424 free(gc_globals->buf); in root_buffer_dtor()
425 gc_globals->buf = NULL; in root_buffer_dtor()
436 gc_globals->buf = NULL; in gc_globals_ctor_ex()
474 if (GC_G(buf)) { in gc_reset()
502 GC_G(buf)[0].ref = NULL; in gc_enable() local
548 GC_G(buf) = perealloc(GC_G(buf), sizeof(gc_root_buffer) * new_size, 1); in gc_grow_root_buffer()
1132 gc_root_buffer *buf; in gc_add_garbage() local
1146 buf = GC_IDX2PTR(idx); in gc_add_garbage()
[all …]
H A Dzend_virtual_cwd.c129 zend_stat_t buf; in php_is_dir_ok() local
131 if (php_sys_stat(state->cwd, &buf) == 0 && S_ISDIR(buf.st_mode)) in php_is_dir_ok()
140 zend_stat_t buf; in php_is_file_ok() local
142 if (php_sys_stat(state->cwd, &buf) == 0 && S_ISREG(buf.st_mode)) in php_is_file_ok()
306 if (buf == NULL) { in virtual_getcwd()
317 memcpy(buf, cwd, length+1); in virtual_getcwd()
319 return buf; in virtual_getcwd()
1362 ret = win32_utime(new_state.cwd, buf); in virtual_utime()
1364 ret = utime(new_state.cwd, buf); in virtual_utime()
1537 retval = php_sys_stat(new_state.cwd, buf); in virtual_stat()
[all …]
/PHP-7.4/ext/pcre/pcre2lib/sljit/
H A DsljitLir.c461 buf = compiler->buf; in sljit_free_compiler()
462 while (buf) { in sljit_free_compiler()
463 curr = buf; in sljit_free_compiler()
464 buf = buf->next; in sljit_free_compiler()
469 while (buf) { in sljit_free_compiler()
470 curr = buf; in sljit_free_compiler()
471 buf = buf->next; in sljit_free_compiler()
554 ret = compiler->buf->memory + compiler->buf->used_size; in ensure_buf()
603 struct sljit_memory_fragment *buf = compiler->buf; in reverse_buf() local
610 prev = buf; in reverse_buf()
[all …]
/PHP-7.4/ext/odbc/
H A Dphp_odbc.c844 char buf[32]; in PHP_MINFO_FUNCTION() local
848 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_persistent)); in PHP_MINFO_FUNCTION()
850 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_links)); in PHP_MINFO_FUNCTION()
854 snprintf(buf, sizeof(buf), "0x%0.4x", ODBCVER); in PHP_MINFO_FUNCTION()
1454 char buf[4096]; in PHP_FUNCTION() local
1805 efree(buf); in php_odbc_fetch_hash()
1848 if (buf) { in php_odbc_fetch_hash()
1849 efree(buf); in php_odbc_fetch_hash()
1969 efree(buf); in PHP_FUNCTION()
2002 if (buf) efree(buf); in PHP_FUNCTION()
[all …]
/PHP-7.4/win32/
H A Dwinutil.h34 PHP_WINUTIL_API int php_win32_get_random_bytes(unsigned char *buf, size_t size);
/PHP-7.4/ext/com_dotnet/
H A Dcom_wrapper.c73 char buf[4096]; in trace() local
75 snprintf(buf, sizeof(buf), "T=%08x ", GetCurrentThreadId()); in trace()
76 OutputDebugString(buf); in trace()
79 vsnprintf(buf, sizeof(buf), fmt, ap); in trace()
81 OutputDebugString(buf); in trace()
/PHP-7.4/ext/fileinfo/libmagic/
H A Dprint.c236 file_fmttime(uint64_t v, int flags, char *buf) in file_fmttime() argument
259 pp = php_asctime_r(tm, buf); in file_fmttime()
266 return strcpy(buf, "*Invalid time*"); in file_fmttime()
/PHP-7.4/TSRM/
H A Dtsrm_win32.c747 TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf) in shmctl() argument
757 memcpy(buf, shm->descriptor, sizeof(struct shmid_ds)); in shmctl()
762 shm->descriptor->shm_perm.uid = buf->shm_perm.uid; in shmctl()
763 shm->descriptor->shm_perm.gid = buf->shm_perm.gid; in shmctl()
764 shm->descriptor->shm_perm.mode = buf->shm_perm.mode; in shmctl()
790 TSRM_API int win32_utime(const char *filename, struct utimbuf *buf) /* {{{ */ in win32_utime() argument
815 if (!buf) { in win32_utime()
821 UnixTimeToFileTime(buf->modtime, &mtime); in win32_utime()
822 UnixTimeToFileTime(buf->actime, &atime); in win32_utime()
/PHP-7.4/ext/sockets/
H A Dmulticast.c760 char *buf = NULL, local
773 buf = ecalloc(size, 1);
775 if_conf.ifc_buf = buf;
789 efree(buf);
790 buf = NULL;
831 efree(buf);
845 if (buf != NULL)
846 efree(buf);
/PHP-7.4/main/
H A Dmain.c954 return PHPWRITE(buf, size); in php_write()
1223 buf_len = strlen(buf); in php_win32_docref1_from_error()
1225 buf[buf_len - 1] = '\0'; in php_win32_docref1_from_error()
1226 buf[buf_len - 2] = '\0'; in php_win32_docref1_from_error()
1229 php_win32_error_msg_free(buf); in php_win32_docref1_from_error()
1236 buf_len = strlen(buf); in php_win32_docref2_from_error()
1238 buf[buf_len - 1] = '\0'; in php_win32_docref2_from_error()
1239 buf[buf_len - 2] = '\0'; in php_win32_docref2_from_error()
1242 php_win32_error_msg_free(buf); in php_win32_docref2_from_error()
1401 zend_string_free(buf); in php_error_cb()
[all …]
/PHP-7.4/ext/xmlrpc/libxmlrpc/
H A Dxmlrpc.c183 char buf[30]; in date_from_ISO8601() local
187 char *p = (char *) text, *p2 = buf; in date_from_ISO8601()
192 if (p2-buf >= sizeof(buf)) { in date_from_ISO8601()
199 text = buf; in date_from_ISO8601()
269 static int date_to_ISO8601 (time_t value, char *buf, int length) { in date_to_ISO8601() argument
276 return strftime (buf, length, "%Y-%m-%dT%H:%M:%SZ", tm); in date_to_ISO8601()
278 return strftime(buf, length, "%Y%m%dT%H:%M:%SZ", tm); in date_to_ISO8601()
757 char buf[1024]; in map_expat_errors() local
758 snprintf(buf, sizeof(buf), in map_expat_errors()
774 xReturn = XMLRPC_UtilityCreateFault(code, buf); in map_expat_errors()

Completed in 165 milliseconds

12345678910>>...13