Fetch and return field for method receiver.
| 15 | |
| 16 | // Fetch and return field for method receiver. |
| 17 | static zval *RECEIVER_GET(zval *object, zval *member) { |
| 18 | engine_receiver *this = RECEIVER_THIS(object); |
| 19 | zval *val = RECEIVER_RETVAL(); |
| 20 | |
| 21 | engine_value *result = engineReceiverGet(this, Z_STRVAL_P(member)); |
| 22 | if (result == NULL) { |
| 23 | ZVAL_NULL(val); |
| 24 | return val; |
| 25 | } |
| 26 | |
| 27 | value_copy(val, result->internal); |
| 28 | value_destroy(result); |
| 29 | |
| 30 | return val; |
| 31 | } |
| 32 | |
| 33 | // Set field for method receiver. |
| 34 | static void RECEIVER_SET(zval *object, zval *member, zval *value) { |
nothing calls this directly
no test coverage detected