Searched refs:format (Results 1 - 25 of 78) sorted by relevance

1234

/PHP_TRUNK/sapi/fpm/fpm/
H A Dzlog.h21 __attribute__ ((format(printf,4,5)));
H A Dfpm_log.c107 char format[129]; local
160 memset(format, '\0', sizeof(format)); /* reset format */
177 if (format[0] == '\0' || !strcasecmp(format, "total")) {
181 } else if (!strcasecmp(format, "user")) {
185 } else if (!strcasecmp(format, "system")) {
190 zlog(ZLOG_WARNING, "only 'total', 'user' or 'system' are allowed as a modifier for %%%c ('%s')", *s, format);
194 format[
[all...]
/PHP_TRUNK/Zend/
H A Dzend_sprintf.c31 int zend_sprintf(char *buffer, const char *format, ...) argument
35 va_start(args, format);
36 vsprintf(buffer, format, args);
H A Dzend.h66 ZEND_API ZEND_NORETURN void zend_error_noreturn(int type, const char *format, ...);
68 void zend_error_noreturn(int type, const char *format, ...) ZEND_NORETURN;
178 void (*error_function)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 4, 0);
179 size_t (*printf_function)(const char *format, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1, 2);
189 size_t (*vspprintf_function)(char **pbuf, size_t max_len, const char *format, va_list ap);
190 zend_string *(*vstrpprintf_function)(size_t max_len, const char *format, va_list ap);
237 ZEND_API void zend_output_debug_string(zend_bool trigger_break, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
258 extern ZEND_API size_t (*zend_printf)(const char *format, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1, 2);
264 extern ZEND_API void (*zend_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 4, 0);
267 extern size_t (*zend_vspprintf)(char **pbuf, size_t max_len, const char *format, va_lis
[all...]
H A Dzend_exceptions.h44 ZEND_API zend_object *zend_throw_exception_ex(zend_class_entry *exception_ce, zend_long code TSRMLS_DC, const char *format, ...);
56 size_t zend_spprintf(char **message, size_t max_len, const char *format, ...);
57 zend_string *zend_strpprintf(size_t max_len, const char *format, ...);
H A Dzend.c49 ZEND_API size_t (*zend_printf)(const char *format, ...);
56 ZEND_API void (*zend_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args);
57 size_t (*zend_vspprintf)(char **pbuf, size_t max_len, const char *format, va_list ap);
58 zend_string *(*zend_vstrpprintf)(size_t max_len, const char *format, va_list ap);
979 ZEND_API void zend_error(int type, const char *format, ...) /* {{{ */ argument
981 static void zend_error_va_list(int type, const char *format, va_list args)
1083 va_start(args, format);
1084 zend_vspprintf(&dtrace_error_buffer, 0, format, args);
1092 va_start(args, format);
1099 zend_error_cb(type, error_filename, error_lineno, format, arg
1224 zend_error(int type, const char *format, ...) argument
1233 zend_error_noreturn(int type, const char *format, ...) argument
1244 zend_output_debug_string(zend_bool trigger_break, const char *format, ...) argument
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_debug.h31 void zend_accel_error(int type, const char *format, ...);
H A Dzend_accelerator_debug.c31 void zend_accel_error(int type, const char *format, ...) argument
83 va_start(args, format);
84 vfprintf(fLog, format, args);
/PHP_TRUNK/ext/gd/libgd/
H A Dxbm.c159 void gdCtxPrintf(gdIOCtx * out, const char *format, ...) argument
165 va_start(args, format);
166 len = vspprintf(&buf, 0, format, args);
/PHP_TRUNK/ext/intl/dateformat/
H A Ddateformat_format_object.cpp64 *format = NULL; local
77 &object, &format, &locale_str, &locale_len) == FAILURE) {
85 if (format == NULL || Z_TYPE_P(format) == IS_NULL) {
87 } else if (Z_TYPE_P(format) == IS_ARRAY) {
88 HashTable *ht = Z_ARRVAL_P(format);
93 "datefmt_format_object: bad format; if array, it must have "
102 "datefmt_format_object: bad format; the date format (first "
112 "datefmt_format_object: bad format; th
[all...]
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_exception.c39 void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...) argument
45 va_start(arg, format);
46 vspprintf(&message, 0, format, arg);
H A Dmysqli_report.c30 extern void php_mysqli_throw_sql_exception(char *sqlstate, int errorno TSRMLS_DC, char *format, ...);
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_debug.h36 unsigned int level, const char * type, const char *format, ...);
205 static inline void DBG_INF_FMT(const char * const format, ...) {} argument
206 static inline void DBG_ERR_FMT(const char * const format, ...) {} argument
216 static inline void TRACE_ALLOC_INF_FMT(const char * const format, ...) {} argument
217 static inline void TRACE_ALLOC_ERR_FMT(const char * const format, ...) {} argument
/PHP_TRUNK/ext/standard/
H A Ddatetime.c53 Return date string in standard format for http headers */
81 char *strptime(const char *s, const char *format, struct tm *tm);
84 /* {{{ proto string strptime(string timestamp, string format)
90 char *format; local
95 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &ts, &ts_length, &format, &format_length) == FAILURE) {
101 unparsed_part = strptime(ts, format, &parsed_time);
H A Dformatted_print.c376 char *format, padding; local
416 format = Z_STRVAL(args[format_offset]);
426 PRINTF_DEBUG(("sprintf: format[%d]='%c'\n", inpos, format[inpos]));
428 if (format[inpos] != '%') {
429 php_sprintf_appendchar(&result, &outpos, format[inpos++] TSRMLS_CC);
430 } else if (format[inpos + 1] == '%') {
434 /* starting a new format specifier, reset variables */
442 format[inpos], inpos));
443 if (isascii((int)format[inpo
[all...]
H A Dpack.c61 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Type %c: integer overflow in format string", code); \
104 /* {{{ proto string pack(string format, mixed arg1 [, mixed arg2 [, mixed ...]])
105 Takes one or more arguments and packs them into a binary string according to the format argument */
111 char *format; local
128 format = Z_STRVAL(argv[0]);
131 /* We have a maximum of <formatlen> format codes to deal with */
136 /* Preprocess format into formatcodes and formatargs */
138 char code = format[i++];
141 /* Handle format arguments if any */
143 char c = format[
515 char *format, *input; local
[all...]
H A Dscanf.c118 static char *BuildCharSet(CharSet *cset, char *format);
129 * This function examines a character set format specification
134 * Returns the next format position.
141 static char * BuildCharSet(CharSet *cset, char *format) argument
149 ch = format;
152 ch = ++format;
154 end = format + 1; /* verify this - cc */
170 cset->chars = (char *) safe_emalloc(sizeof(char), (end - format - 1), 0);
181 ch = format++;
185 ch = format
311 ValidateFormat(char *format, int numVars, int *totalSubs) argument
579 php_sscanf_internal( char *string, char *format, int argCount, zval *args, int varStart, zval *return_value TSRMLS_DC) argument
[all...]
H A Dscanf.h32 /* can be caused by bad parameters or format*/
44 PHPAPI int ValidateFormat(char *format, int numVars, int *totalVars);
45 PHPAPI int php_sscanf_internal(char *string,char *format,int argCount,zval *args,
/PHP_TRUNK/main/
H A Dphp.h284 PHPAPI size_t php_printf(const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1,
288 int Debug(char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, 2);
302 PHPAPI void php_verror(const char *docref, const char *params, int type, const char *format, va_list args TSRMLS_DC) PHP_ATTRIBUTE_FORMAT(printf, 4, 0);
310 /* PHPAPI void php_error(int type, const char *format, ...); */
311 PHPAPI void php_error_docref0(const char *docref TSRMLS_DC, int type, const char *format, ...)
313 PHPAPI void php_error_docref1(const char *docref TSRMLS_DC, const char *param1, int type, const char *format, ...)
315 PHPAPI void php_error_docref2(const char *docref TSRMLS_DC, const char *param1, const char *param2, int type, const char *format, ...)
H A Dphp_sprintf.c31 php_sprintf (char*s, const char* format, ...) argument
36 va_start (args, format);
38 ret = vsprintf (s, format, args);
H A Dsnprintf.c159 /* exponential format (e.g. 1.2345e+13) */
196 /* standard format 0. */
208 /* standard format */
302 * Convert num to its decimal format.
372 PHPAPI char * php_conv_fp(register char format, register double num, argument
383 if (format == 'F') {
385 } else { /* either e or E format */
399 if (format == 'F') {
439 if (format != 'F') {
444 *s++ = format; /* eithe
477 ap_php_conv_p2(register u_wide_int num, register int nbits, char format, char *buf_end, register size_t *len) argument
1211 strx_printv(int *ccp, char *buf, size_t len, const char *format, va_list ap) argument
1242 ap_php_slprintf(char *buf, size_t len, const char *format,...) argument
1258 ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap) argument
1271 ap_php_snprintf(char *buf, size_t len, const char *format,...) argument
1283 ap_php_vsnprintf(char *buf, size_t len, const char *format, va_list ap) argument
1292 ap_php_vasprintf(char **buf, const char *format, va_list ap) argument
1316 ap_php_asprintf(char **buf, const char *format, ...) argument
[all...]
H A Dsnprintf.h81 PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...);
82 PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap);
85 PHPAPI int ap_php_vasprintf(char **buf, const char *format, va_list ap);
86 PHPAPI int ap_php_asprintf(char **buf, const char *format, ...);
87 PHPAPI int php_sprintf (char* s, const char* format, ...) PHP_ATTRIBUTE_FORMAT(printf, 2, 3);
89 PHPAPI char * php_conv_fp(register char format, register double num,
160 char format, char *buf_end, register size_t *len);
H A Dspprintf.h40 PHPAPI size_t spprintf( char **pbuf, size_t max_len, const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 3, 4);
42 PHPAPI size_t vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) PHP_ATTRIBUTE_FORMAT(printf, 3, 0);
44 PHPAPI zend_string *vstrpprintf(size_t max_len, const char *format, va_list ap);
46 PHPAPI zend_string *strpprintf(size_t max_len, const char *format, ...);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_utils.c227 PHPDBG_API int phpdbg_print(int type TSRMLS_DC, FILE *fp, const char *format, ...) /* {{{ */ argument
233 if (format != NULL && strlen(format) > 0L) {
234 va_start(args, format);
235 vspprintf(&buffer, 0, format, args);
305 char *format = NULL, *buffer = NULL; local
312 &format, "[%s]: %s\n", buffer, fmt);
314 fp, format, args);
316 free(format);
/PHP_TRUNK/ext/soap/
H A Dphp_soap.h205 #define soap_error0(severity, format) \
206 php_error(severity, "SOAP-ERROR: " format)
208 #define soap_error1(severity, format, param1) \
209 php_error(severity, "SOAP-ERROR: " format, param1)
211 #define soap_error2(severity, format, param1, param2) \
212 php_error(severity, "SOAP-ERROR: " format, param1, param2)
214 #define soap_error3(severity, format, param1, param2, param3) \
215 php_error(severity, "SOAP-ERROR: " format, param1, param2, param3)

Completed in 125 milliseconds

1234