@@ -1144,29 +1144,29 @@ php_cassandra_cluster_builder_properties(zval *object TSRMLS_DC)
11441144 }
11451145
11461146 PHP5TO7_ZVAL_MAYBE_MAKE (blacklistHosts );
1147- if (! PHP5TO7_ZVAL_IS_UNDEF ( self -> blacklist_hosts ) ) {
1148- PHP5TO7_ZVAL_COPY (PHP5TO7_ZVAL_MAYBE_P (blacklistHosts ), PHP5TO7_ZVAL_MAYBE_P ( self -> blacklist_hosts ) );
1147+ if (self -> blacklist_hosts ) {
1148+ PHP5TO7_ZVAL_STRING (PHP5TO7_ZVAL_MAYBE_P (blacklistHosts ), self -> blacklist_hosts );
11491149 } else {
11501150 ZVAL_NULL (PHP5TO7_ZVAL_MAYBE_P (blacklistHosts ));
11511151 }
11521152
11531153 PHP5TO7_ZVAL_MAYBE_MAKE (whitelistHosts );
1154- if (! PHP5TO7_ZVAL_IS_UNDEF ( self -> whitelist_hosts ) ) {
1155- PHP5TO7_ZVAL_COPY (PHP5TO7_ZVAL_MAYBE_P (whitelistHosts ), PHP5TO7_ZVAL_MAYBE_P ( self -> whitelist_hosts ) );
1154+ if (self -> whitelist_hosts ) {
1155+ PHP5TO7_ZVAL_STRING (PHP5TO7_ZVAL_MAYBE_P (whitelistHosts ), self -> whitelist_hosts );
11561156 } else {
11571157 ZVAL_NULL (PHP5TO7_ZVAL_MAYBE_P (whitelistHosts ));
11581158 }
11591159
11601160 PHP5TO7_ZVAL_MAYBE_MAKE (blacklistDCs );
1161- if (! PHP5TO7_ZVAL_IS_UNDEF ( self -> blacklist_dcs ) ) {
1162- PHP5TO7_ZVAL_COPY (PHP5TO7_ZVAL_MAYBE_P (blacklistDCs ), PHP5TO7_ZVAL_MAYBE_P ( self -> blacklist_dcs ) );
1161+ if (self -> blacklist_dcs ) {
1162+ PHP5TO7_ZVAL_STRING (PHP5TO7_ZVAL_MAYBE_P (blacklistDCs ), self -> blacklist_dcs );
11631163 } else {
11641164 ZVAL_NULL (PHP5TO7_ZVAL_MAYBE_P (blacklistDCs ));
11651165 }
11661166
11671167 PHP5TO7_ZVAL_MAYBE_MAKE (whitelistDCs );
1168- if (! PHP5TO7_ZVAL_IS_UNDEF ( self -> whitelist_dcs ) ) {
1169- PHP5TO7_ZVAL_COPY (PHP5TO7_ZVAL_MAYBE_P (whitelistDCs ), PHP5TO7_ZVAL_MAYBE_P ( self -> whitelist_dcs ) );
1168+ if (self -> whitelist_dcs ) {
1169+ PHP5TO7_ZVAL_STRING (PHP5TO7_ZVAL_MAYBE_P (whitelistDCs ), self -> whitelist_dcs );
11701170 } else {
11711171 ZVAL_NULL (PHP5TO7_ZVAL_MAYBE_P (whitelistDCs ));
11721172 }
0 commit comments