summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-10-12 22:18:05 +0200
committerAnatol Belski <ab@php.net>2016-10-12 22:18:41 +0200
commit611ab7fe5b9fe41de56c25b1d348a866794b1fb1 (patch)
treebef37433bb6f815905d47f40745cad4fc257b021
parent671d8054f85d2dec1a00201a73ab792847c13919 (diff)
downloadphp-git-611ab7fe5b9fe41de56c25b1d348a866794b1fb1.tar.gz
export symbol missing by phpdbg
-rw-r--r--Zend/zend_exceptions.c12
-rw-r--r--Zend/zend_string.c12
-rw-r--r--Zend/zend_string.h2
3 files changed, 14 insertions, 12 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 89c94eb56f..388c982115 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -696,18 +696,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)
diff --git a/Zend/zend_string.c b/Zend/zend_string.c
index 03d77e1293..39912dae30 100644
--- a/Zend/zend_string.c
+++ b/Zend/zend_string.c
@@ -198,6 +198,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
diff --git a/Zend/zend_string.h b/Zend/zend_string.h
index 722fc3ae46..a1c1bebaea 100644
--- a/Zend/zend_string.h
+++ b/Zend/zend_string.h
@@ -33,6 +33,8 @@ ZEND_API zend_ulong zend_hash_func(const char *str, size_t len);
void zend_interned_strings_init(void);
void zend_interned_strings_dtor(void);
+ZEND_API zend_string *zend_strpprintf(size_t max_len, const char *format, ...);
+
END_EXTERN_C()
/* Shortcuts */