Date: 12/15/00
- Next message: Andi Gutmans: "Re: [PHP-DEV] [PATCH] More AIX xlc trips"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] [PATCH] More AIX xlc trips"
- Maybe in reply to: Bill Stoddard: "[PHP-DEV] [PATCH] More AIX xlc trips"
- Next in thread: Andi Gutmans: "Re: [PHP-DEV] [PATCH] More AIX xlc trips"
- Reply: Andi Gutmans: "Re: [PHP-DEV] [PATCH] More AIX xlc trips"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Fixed - thanks!
Linux's gcc does not allow direct casting from a pointer to a 64 bit
integer.
AIX and Sun's native compiler do not allow casting on the left hand side of
the equasion.
Window's compiler is the most permissive.
- Sam Ruby
Andi Gutmans <andi <email protected>> on 12/15/2000 07:09:30 PM
To: Sam Ruby/Raleigh/IBM <email protected>
cc: "Bill Stoddard" <bill <email protected>>, <php-dev <email protected>>
Subject: Re: [PHP-DEV] [PATCH] More AIX xlc trips
Sam,
Any idea?
Andi
At 10:49 AM 12/15/00 -0500, Bill Stoddard wrote:
>xlc complains that the code is attempting to assign to an lvalue. I don't
>understand
>the reason for the funky casting in the original (force alignment?), so
the
>'fix' may not be valid.
>
>Bill
>
>Index: servlet.c
>===================================================================
>RCS file: /repository/php4/sapi/servlet/servlet.c,v
>retrieving revision 1.40
>diff -u -r1.40 servlet.c
>--- servlet.c 2000/11/18 02:44:04 1.40
>+++ servlet.c 2000/12/15 15:33:53
>@@ -304,7 +304,7 @@
> ELS_FETCH();
>
> MAKE_STD_ZVAL(pzval);
>- (pval*)(long)addr = pzval;
>+ addr = (jlong) pzval;
>
> zend_hash_add(&EG(symbol_table), (char*)nameAsUTF,
> strlen(nameAsUTF)+1, &pzval, sizeof(pval *), NULL);
>
>
>
>--
>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>
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- 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>
- Next message: Andi Gutmans: "Re: [PHP-DEV] [PATCH] More AIX xlc trips"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] [PATCH] More AIX xlc trips"
- Maybe in reply to: Bill Stoddard: "[PHP-DEV] [PATCH] More AIX xlc trips"
- Next in thread: Andi Gutmans: "Re: [PHP-DEV] [PATCH] More AIX xlc trips"
- Reply: Andi Gutmans: "Re: [PHP-DEV] [PATCH] More AIX xlc trips"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

