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

Function RECEIVER_GET

engine/receiver.c:17–31  ·  view source on GitHub ↗

Fetch and return field for method receiver.

Source from the content-addressed store, hash-verified

15
16// Fetch and return field for method receiver.
17static 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.
34static void RECEIVER_SET(zval *object, zval *member, zval *value) {

Callers

nothing calls this directly

Calls 4

RECEIVER_RETVALFunction · 0.85
engineReceiverGetFunction · 0.85
value_copyFunction · 0.85
value_destroyFunction · 0.50

Tested by

no test coverage detected