| 336 | } |
| 337 | |
| 338 | engine_value *value_array_key_get(engine_value *arr, char *key) { |
| 339 | HashTable *h = NULL; |
| 340 | engine_value *val = value_new(); |
| 341 | |
| 342 | switch (arr->kind) { |
| 343 | case KIND_ARRAY: |
| 344 | case KIND_MAP: |
| 345 | h = Z_ARRVAL_P(arr->internal); |
| 346 | break; |
| 347 | case KIND_OBJECT: |
| 348 | h = Z_OBJPROP_P(arr->internal); |
| 349 | break; |
| 350 | default: |
| 351 | return val; |
| 352 | } |
| 353 | |
| 354 | VALUE_ARRAY_KEY_GET(h, key, val); |
| 355 | } |
nothing calls this directly
no test coverage detected