-
Couldn't load subscription status.
- Fork 8k
Closed
Description
Description
HI ,
I am trying to retrieve the properties of soapCLient when _trace property is set to 1. But it did not work.
client = new SoapClient(null, array('uri' => $url, 'location' => $url,
"exceptions" => 0,
"trace" => 1,
'stream_context' => stream_context_create(array(
'http' => array(
'header' => 'SomeCustomHeader: value'
),
)),
));
<?phpTrying to access properties of soapclient as below :
const char* cname = ZSTR_VAL(Z_OBJCE_P(object)->name); // this returned soapclient class name
HashTable* object_properties = Z_OBJPROP_P(object);
ZEND_HASH_FOREACH_KEY_VAL(object_properties, num_key, str_key, prop) { LOG("prop = %s ", Z_STRVAL_P(prop)); }
ZEND_HASH_FOREACH_END();// resulted in array of 36 elements but all values are empty.
Resulted in this output:
But I expected this output instead:
055+ class name SoapClient
056+ hash prop =
057+ hash prop =
058+ hash prop =
059+ hash prop =
060+ hash prop =
061+ hash prop =
062+ hash prop =
063+ hash prop =
064+ hash prop =
065+ hash prop =
066+ hash prop =
067+ hash prop =
068+ hash prop =
069+ hash prop =
070+ hash prop =
071+ hash prop =
072+ hash prop =
073+ hash prop =
074+ hash prop =
075+ hash prop =
076+ hash prop =
077+ hash prop =
078+ hash prop =
079+ hash prop =
080+ hash prop =
081+ hash prop =
082+ hash prop =
083+ hash prop =
084+ hash prop =
085+ hash prop =
086+ hash prop =
087+ hash prop =
088+ hash prop =
089+ hash prop =
090+ hash prop =
091+ hash prop = ��p1
PHP Version
PHP 8.4
Operating System
ubuntu2204