Questions tagged [zend-api]

3 questions
0
votes
1 answer

What is the rv parameter in the zend_read_property function

I'm using the zend_read_property to read the attribute from an object. zend_read_property( scope: *mut zend_class_entry, object: *mut zval, name: *const c_char, name_length: size_t, silent: zend_bool, rv: *mut zval ) ->…
Mark Smith
  • 138
  • 1
  • 8
0
votes
1 answer

How to dump functions, args and return values in PHP?

I am a pentester working on a project and I stumbled on an encrypted PHP file. My idea is trying to modify PHP's source code so it dumps every function called name, arg names, arg types, and values. I tried modifying the…
bananabr
  • 147
  • 11
0
votes
1 answer

Are `zval *retval` argument and the `zval *` return value of the `zend_call_method` the same?

Is the zval * value returned by the zend api method zend_call_method same as the zval *retval argument passed into it? I can see that zend_call_method is declared in zend_interfaces.h. I tried grepping the source directory for its definition, but…
Joyce Babu
  • 19,602
  • 13
  • 62
  • 97