Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c
| From: | Jani Taskinen | Date: | Sun, 13 Jul 2003 02:10:24 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-1474@lists.php.net to get a copy of this message | ||
You should update the README.PARAMETER_PARSING_API file with
the information how this new option is used..
--Jani
On Fri, 11 Jul 2003, Andi Gutmans wrote:
>andi Fri Jul 11 06:21:39 2003 EDT
>
> Modified files:
> /ZendEngine2 zend_API.c
> Log:
> - Add support for Z in zend_parse_parameters(). It will allow the extension
> - to retreive the zval **, thus allowing it to use the convert_to_*_ex()
> - family of functions to do type conversions without effecting the value in
> - the engine itself. (Josh Fuhs <fuhs@purdue.edu>)
>
>
>Index: ZendEngine2/zend_API.c
>diff -u ZendEngine2/zend_API.c:1.182 ZendEngine2/zend_API.c:1.183
>--- ZendEngine2/zend_API.c:1.182 Mon Jul 7 12:22:55 2003
>+++ ZendEngine2/zend_API.c Fri Jul 11 06:21:39 2003
>@@ -18,7 +18,7 @@
> +----------------------------------------------------------------------+
> */
>
>-/* $Id: zend_API.c,v 1.182 2003/07/07 16:22:55 zeev Exp $ */
>+/* $Id: zend_API.c,v 1.183 2003/07/11 10:21:39 andi Exp $ */
>
> #include "zend.h"
> #include "zend_execute.h"
>@@ -430,7 +430,16 @@
> }
> }
> break;
>-
>+ case 'Z':
>+ {
>+ zval ***p = va_arg(*va, zval ***);
>+ if (Z_TYPE_PP(arg) == IS_NULL && return_null) {
>+ *p = NULL;
>+ } else {
>+ *p = arg;
>+ }
>+ }
>+ break;
> default:
> return "unknown";
> }
>@@ -476,7 +485,7 @@
> case 's': case 'b':
> case 'r': case 'a':
> case 'o': case 'O':
>- case 'z':
>+ case 'z': case 'Z':
> max_num_args++;
> break;
>
>
>
>
>
--
https://www.paypal.com/xclick/business=sniper@php.net&no_note=1&tax=0¤cy_code=EUR