Re: Use zend_string* for op_array->arg_info[].name and class_name
| From: | Dmitry Stogov | Date: | Tue, 18 Nov 2014 04:34:50 +0000 |
| Subject: | Re: Use zend_string* for op_array->arg_info[].name and class_name | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78930@lists.php.net to get a copy of this message | ||
On Tue, Nov 18, 2014 at 6:01 AM, Xinchen Hui <xinchen.h@zend.com> wrote:
> Hey:
>
>
>
> On Mon, Nov 17, 2014 at 5:25 PM, Dmitry Stogov <dmitry@zend.com> wrote:
> > Hi,
> >
> > Please review the patch
> https://gist.github.com/dstogov/47a39aff37f0a6441ea0
>
> I am not sure, why can't we build a zend_string arg->name from char *
> while doing register internal functions?
>
We can, but it'll take significant amount of additional memory and then we
will have to free it on shutdown.
Thanks. Dmitry.
>
> then we can have the same zend_arg_info in runtime for both
> internal/user functions?
>
> thanks
> >
> > Thanks. Dmitry.
>
>
>
> --
> Xinchen Hui
> @Laruence
> http://www.laruence.com/
>