diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-06-29 16:44:54 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-06-29 16:44:54 +0300 |
commit | 4bd22cf1c1d6a262fe2f026e082f2565433c53df (patch) | |
tree | 09a65791a35333a58320a3d872f12496d3a6aecd /ext/standard/browscap.c | |
parent | 667e9bd4177e40a52b4f0cd6bfed5737c2694a47 (diff) | |
download | php-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/standard/browscap.c')
-rw-r--r-- | ext/standard/browscap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/browscap.c b/ext/standard/browscap.c index c04307f1c9..110da9210c 100644 --- a/ext/standard/browscap.c +++ b/ext/standard/browscap.c @@ -174,7 +174,7 @@ static void php_browscap_parser_cb(zval *arg1, zval *arg2, zval *arg3, int callb (Z_STRLEN_P(arg2) == 4 && !strncasecmp(Z_STRVAL_P(arg2), "none", sizeof("none") - 1)) || (Z_STRLEN_P(arg2) == 5 && !strncasecmp(Z_STRVAL_P(arg2), "false", sizeof("false") - 1)) ) { - // TODO: USE STR_EMPTY_ALLOC()? + // TODO: USE ZSTR_EMPTY_ALLOC()? ZVAL_NEW_STR(&new_property, zend_string_init("", sizeof("")-1, persistent)); } else { /* Other than true/false setting */ ZVAL_STR(&new_property, zend_string_dup(Z_STR_P(arg2), persistent)); |