| 144 | } |
| 145 | |
| 146 | int 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 | |
| 160 | double value_get_double(engine_value *val) { |
| 161 | zval tmp; |
nothing calls this directly
no test coverage detected