Re: [PHP-DEV] Patch: PHP (cvs) on Itanium From: Rasmus Lerdorf (rasmus <email protected>)
Date: 07/19/00

I have applied your php3 patch. Thanks. That Zend patch is pretty
ugly. However, in the interest of getting PHP 4 to compile out of the box
on Itanium systems for now, is there some sort of reliable compiler
constant we can check in an ifdef here?

-Rasmus

> Index: zend_execute_API.c
> ===================================================================
> RCS file: /repository/Zend/zend_execute_API.c,v
> retrieving revision 1.103
> diff -u -r1.103 zend_execute_API.c
> --- zend_execute_API.c 2000/07/03 16:53:39 1.103
> +++ zend_execute_API.c 2000/07/14 14:39:41
> @@ -105,8 +105,17 @@
>
> void init_executor(CLS_D ELS_DC)
> {
> +#if 0
> INIT_ZVAL(EG(uninitialized_zval));
> INIT_ZVAL(EG(error_zval));
> +#else
> + zval *uzval = &executor_globals.uninitialized_zval;
> + zval *ezval = &executor_globals.error_zval;
> +
> + *uzval = zval_used_for_init;
> + *ezval = zval_used_for_init;
> +#endif
> +
> EG(uninitialized_zval_ptr)=&EG(uninitialized_zval);
> EG(error_zval_ptr)=&EG(error_zval);
> zend_ptr_stack_init(&EG(arg_types_stack));
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>