summaryrefslogtreecommitdiff
path: root/ext/date/php_date.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-06-29 16:44:54 +0300
committerDmitry Stogov <dmitry@zend.com>2015-06-29 16:44:54 +0300
commit4bd22cf1c1d6a262fe2f026e082f2565433c53df (patch)
tree09a65791a35333a58320a3d872f12496d3a6aecd /ext/date/php_date.c
parent667e9bd4177e40a52b4f0cd6bfed5737c2694a47 (diff)
downloadphp-git-4bd22cf1c1d6a262fe2f026e082f2565433c53df.tar.gz
Improved zend_string API (Francois Laupretre)
Squashed commit of the following: commit d96eab8d79b75ac83d49d49ae4665f948d15a804 Author: Francois Laupretre <francois@tekwire.net> Date: Fri Jun 26 01:23:31 2015 +0200 Use the new 'ZSTR' macros in the rest of the code. Does not change anything to the generated code (thanks to compat macros) but cleaner. commit b3526439104ac7a89a8e0c79dbebf33b22bd01b8 Author: Francois Laupretre <francois@tekwire.net> Date: Thu Jun 25 13:45:06 2015 +0200 Improve zend_string API Add missing methods
Diffstat (limited to 'ext/date/php_date.c')
-rw-r--r--ext/date/php_date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index be48b13a8c..3702e8e6d1 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -1079,7 +1079,7 @@ static zend_string *date_format(char *format, size_t format_len, timelib_time *t
int weekYearSet = 0;
if (!format_len) {
- return STR_EMPTY_ALLOC();
+ return ZSTR_EMPTY_ALLOC();
}
if (localtime) {
@@ -4212,7 +4212,7 @@ static zend_string *date_interval_format(char *format, size_t format_len, timeli
char buffer[33];
if (!format_len) {
- return STR_EMPTY_ALLOC();
+ return ZSTR_EMPTY_ALLOC();
}
for (i = 0; i < format_len; i++) {