diff options
author | Nikita Popov <nikic@php.net> | 2016-12-18 17:31:00 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2017-01-01 21:28:20 +0100 |
commit | c7742e280a4edcc8b216d7b798c805c9a439d663 (patch) | |
tree | 50cf8b5c8ca25827faaad56a0b5bc10d5afddfac /Zend/zend_exceptions.c | |
parent | 38f72cea1bcfecc2a04c055418e4518bfd05c04a (diff) | |
download | php-git-c7742e280a4edcc8b216d7b798c805c9a439d663.tar.gz |
Export zend_s(tr)pprintf
It's annoying that in Zend you have to use zend_strpprintf instead
of strpprintf, while in PHP you have to use strpprintf instead of
zend_strpprintf.
Make zend_s(tr)pprintf always available and keep s(tr)pprintf as
macro aliases.
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r-- | Zend/zend_exceptions.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 0aaca540fb..3072b182ce 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -651,30 +651,6 @@ ZEND_METHOD(exception, getPrevious) ZVAL_COPY(return_value, GET_PROPERTY_SILENT(getThis(), ZEND_STR_PREVIOUS)); } /* }}} */ -size_t zend_spprintf(char **message, size_t max_len, const char *format, ...) /* {{{ */ -{ - va_list arg; - size_t len; - - va_start(arg, format); - len = zend_vspprintf(message, max_len, format, arg); - va_end(arg); - return len; -} -/* }}} */ - -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) |