We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8e65ac commit cf8546dCopy full SHA for cf8546d
ext/src/Cassandra/ExecutionOptions.c
@@ -88,9 +88,17 @@ PHP_METHOD(ExecutionOptions, __get)
88
} else if (name_len == 8 && strncmp("pageSize", name, name_len) == 0) {
89
RETURN_LONG(self->page_size);
90
} else if (name_len == 7 && strncmp("timeout", name, name_len) == 0) {
91
- RETURN_ZVAL(self->timeout, 1, 0);
+ if (self->timeout) {
92
+ RETURN_ZVAL(self->timeout, 1, 0);
93
+ } else {
94
+ RETURN_NULL();
95
+ }
96
} else if (name_len == 9 && strncmp("arguments", name, name_len) == 0) {
- RETURN_ZVAL(self->arguments, 1, 0);
97
+ if (self->arguments) {
98
+ RETURN_ZVAL(self->arguments, 1, 0);
99
100
101
102
}
103
104
0 commit comments