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

Function value_get_double

engine/value.c:160–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160double value_get_double(engine_value *val) {
161 zval tmp;
162
163 // Return value directly if already in correct type.
164 if (val->kind == KIND_DOUBLE) {
165 return Z_DVAL_P(val->internal);
166 }
167
168 value_copy(&tmp, val->internal);
169 convert_to_double(&tmp);
170
171 return Z_DVAL(tmp);
172}
173
174bool value_get_bool(engine_value *val) {
175 zval tmp;

Callers

nothing calls this directly

Calls 1

value_copyFunction · 0.85

Tested by

no test coverage detected