MCPcopy Create free account
hub / github.com/deuill/go-php / value_get_bool

Function value_get_bool

engine/value.c:174–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174bool value_get_bool(engine_value *val) {
175 zval tmp;
176
177 // Return value directly if already in correct type.
178 if (val->kind == KIND_BOOL) {
179 return VALUE_TRUTH(val->internal);
180 }
181
182 value_copy(&tmp, val->internal);
183 convert_to_boolean(&tmp);
184
185 return VALUE_TRUTH(&tmp);
186}
187
188char *value_get_string(engine_value *val) {
189 zval tmp;

Callers

nothing calls this directly

Calls 1

value_copyFunction · 0.85

Tested by

no test coverage detected