mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
parent
06df34072e
commit
4e338817d1
@ -661,18 +661,6 @@ size_t zend_spprintf(char **message, size_t max_len, const char *format, ...) /*
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
zend_string *zend_strpprintf(size_t max_len, const char *format, ...) /* {{{ */
|
||||
{
|
||||
va_list arg;
|
||||
zend_string *str;
|
||||
|
||||
va_start(arg, format);
|
||||
str = zend_vstrpprintf(max_len, format, arg);
|
||||
va_end(arg);
|
||||
return str;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ proto string Exception|Error::__toString()
|
||||
Obtain the string representation of the Exception object */
|
||||
ZEND_METHOD(exception, __toString)
|
||||
|
@ -243,6 +243,18 @@ static void zend_interned_strings_restore_int(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
ZEND_API zend_string *zend_strpprintf(size_t max_len, const char *format, ...) /* {{{ */
|
||||
{
|
||||
va_list arg;
|
||||
zend_string *str;
|
||||
|
||||
va_start(arg, format);
|
||||
str = zend_vstrpprintf(max_len, format, arg);
|
||||
va_end(arg);
|
||||
return str;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* tab-width: 4
|
||||
|
@ -34,6 +34,8 @@ void zend_interned_strings_init(void);
|
||||
void zend_interned_strings_dtor(void);
|
||||
void zend_known_interned_strings_init(zend_string ***, uint32_t *);
|
||||
|
||||
ZEND_API zend_string *zend_strpprintf(size_t max_len, const char *format, ...);
|
||||
|
||||
END_EXTERN_C()
|
||||
|
||||
/* Shortcuts */
|
||||
|
Loading…
Reference in New Issue
Block a user