note 122184 deleted from internals2.variables.tables by cmb
| From: | cmb@php.net | Date: | Sun, 10 Jan 2021 13:13:09 +0000 |
| Subject: | note 122184 deleted from internals2.variables.tables by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-216084@lists.php.net to get a copy of this message | ||
Note Submitter: axel dot bangert at net-wpf dot de
----
Hi,
it concerns the transponing of an saprfc php5 extension to php7.
I am trying to get a typ for value_ptr - zend_hash_get_current_data(hash,(void **)&value_ptr); -
in PHP7.
I tried ---- value_ptr, &value_ptr, (void*)&value_ptr, (void **)&value_ptr ---- and
switched it.
http://www.gimba.de/zend_ha...
I always get: IS_UNKNOWN or IS_UNDEF. But there are values in there if I print it out like that,
each others depending on naturally which --- value_ptr, &value_ptr, (void*)&value_ptr, (void
**)&value_ptr ---- I use.
php_printf("value_ptr=%ld", (void*)value_ptr);
http://www.gimba.de/zend_ha...
Following the definition in zend_hash.h in must be:
#define zend_hash_get_current_data(ht) \ zend_hash_get_current_data_ex(ht,
&(ht)->nInternalPointer)
http://www.gimba.de/zend_ha...
If I use zend_hash_get_current_data(hash, &(void**)value_ptr) I get --- IS_UNKNOWN
If I use zend_hash_get_current_data_ex(hash, &(void**)value_ptr) I get --- IS_UNDEF
Do you have an idea about that?
Axel Arnold Bangert - Herzogenrath 26.12.2017