Re: Re[2]: [PHP-DEV] Question: How do you get a zval** in a non-deprecated way?
| From: | fuhs at purdue dot edu | Date: | Tue, 08 Jul 2003 22:11:23 +0000 |
| Subject: | Re: Re[2]: [PHP-DEV] Question: How do you get a zval** in a non-deprecated way? | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3317@lists.php.net to get a copy of this message | ||
I had asked about this before, but I ran into some kind of confirmation thing
and the discussion stopped.
This patch would add a 'Z' flag to zend_parse_parameters*().
Example:
#typdef zvar zval**
zvar a_zvar;
zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z", &zvar);
Zend/zend_API.c RELEASE ver 4.3.1
425c425,434
<
---
> case 'Z':
> {
> zval ***p=va_arg(*va, zval ***);
> if(Z_TYPE_PP(arg) == IS_NULL &&
return_null){
> *p = NULL;
> } else {
> *p = arg;
> }
> }
> break;
474c483
< case 'z':
---
> case 'z': case 'Z':
Josh
Quoting Marcus Börger <marcus.boerger@t-online.de>:
> Hello fuhs,
>
> Tuesday, July 8, 2003, 11:58:24 PM, you wrote:
>
> fpe> Ok, thanks.
>
> fpe> Is there a reason why this functionality is not supported in the new
> API?
>
> Lazyness?
>
> Provide a patch and maybe someone adds it. I guess you're not the own who
> ran
> into this :-)
>
>
>
>
> --
> Best regards,
> Marcus mailto:helly@php.net
>
>