Re: com php-src: fix C90 compat: Zend/zend_API.c
| From: | Anatol Belski | Date: | Tue, 19 Mar 2013 21:35:32 +0000 |
| Subject: | Re: com php-src: fix C90 compat: Zend/zend_API.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-71632@lists.php.net to get a copy of this message | ||
Happy to help where i can :)
Regards
Anatol
On Tue, 2013-03-19 at 19:37 +0400, Dmitry Stogov wrote:
> Sorry, my mistake.
> Thanks.
>
> Dmitry.
>
> On Tue, Mar 19, 2013 at 5:42 PM, Anatol Belski <ab@php.net> wrote:
> Commit: 7687b8b81c599b0374cb902e9dd812d2cfc12efd
> Author: Anatol Belski <ab@php.net> Tue, 19 Mar 2013
> 14:42:18 +0100
> Parents: 7b0993bfb4b19bb160a72310b907c4fc12a5bef9
> Branches: PHP-5.4
>
> Link:
>
> http://git.php.net/?p=php-src.git;a=commitdiff;h=7687b8b81c599b0374cb902e9dd812d2cfc12efd
>
> Log:
> fix C90 compat
>
> Changed paths:
> M Zend/zend_API.c
>
>
> Diff:
> diff --git a/Zend/zend_API.c b/Zend/zend_API.c
> index b9e97cb..668ddff 100644
> --- a/Zend/zend_API.c
> +++ b/Zend/zend_API.c
> @@ -1039,9 +1039,10 @@ static int
> zval_update_class_constant(zval **pp, int is_static, int
> offset TSRML
>
> zend_hash_move_forward_ex(&ce->properties_info, &pos)) {
> if (is_static ==
> ((prop_info->flags & ZEND_ACC_STATIC) != 0) &&
> offset ==
> prop_info->offset) {
> + int ret;
>
> zend_class_entry *old_scope = *scope;
> *scope =
> prop_info->ce;
> - int ret =
> zval_update_constant(pp, (void*)1 TSRMLS_CC);
> + ret =
> zval_update_constant(pp, (void*)1 TSRMLS_CC);
> *scope =
> old_scope;
> return ret;
> }
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>