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

Function value_get_long

engine/value.c:146–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146int value_get_long(engine_value *val) {
147 zval tmp;
148
149 // Return value directly if already in correct type.
150 if (val->kind == KIND_LONG) {
151 return Z_LVAL_P(val->internal);
152 }
153
154 value_copy(&tmp, val->internal);
155 convert_to_long(&tmp);
156
157 return Z_LVAL(tmp);
158}
159
160double value_get_double(engine_value *val) {
161 zval tmp;

Callers

nothing calls this directly

Calls 1

value_copyFunction · 0.85

Tested by

no test coverage detected