com php-src: Revert "export symbol missing by phpdbg": Zend/zend_exceptions.c Zend/zend_string.c Zend/zend _string.h
| From: | Anatol Belski | Date: | Thu, 13 Oct 2016 07:50:32 +0000 |
| Subject: | com php-src: Revert "export symbol missing by phpdbg": Zend/zend_exceptions.c Zend/zend_string.c Zend/zend _string.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95012@lists.php.net to get a copy of this message | ||
Commit: 3104882cf873308c43dca20bdfd698dd3470a246
Author: Anatol Belski <ab@php.net> Thu, 13 Oct 2016 09:50:32 +0200
Parents: cd8c9b06149dc7dc0415524f1d74880fd6f2d25c
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3104882cf873308c43dca20bdfd698dd3470a246
Log:
Revert "export symbol missing by phpdbg"
This reverts commit 611ab7fe5b9fe41de56c25b1d348a866794b1fb1.
Overseen strpprintf is there
Changed paths:
M Zend/zend_exceptions.c
M Zend/zend_string.c
M Zend/zend_string.h
Diff:
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 388c982..89c94eb 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -696,6 +696,18 @@ 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 39912da..03d77e1 100644
--- a/Zend/zend_string.c
+++ b/Zend/zend_string.c
@@ -198,18 +198,6 @@ 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 a1c1beb..722fc3a 100644
--- a/Zend/zend_string.h
+++ b/Zend/zend_string.h
@@ -33,8 +33,6 @@ 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 */