Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1065 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80850 invoked from network); 28 Apr 2003 13:28:45 -0000 Received: from unknown (HELO mysql.com) (213.136.49.178) by pb1.pair.com with SMTP; 28 Apr 2003 13:28:45 -0000 Received: from pres.towel (mail.server [10.100.1.21]) by mysql.com (8.12.8/8.12.8-1.80) with ESMTP id h3SDSg2f001979; Mon, 28 Apr 2003 15:28:43 +0200 Organization: MySQL AB To: David Hill , georg@php.net Date: Mon, 28 Apr 2003 07:28:42 -0600 User-Agent: KMail/1.5.1 Cc: internals@lists.php.net References: <3EA83D97.80201@php.net> In-Reply-To: <3EA83D97.80201@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200304280728.43492.zak@mysql.com> Subject: Re: [PHP-DEV] Compilation issue with mysql/php & HP-ux From: zak@mysql.com (Zak Greant) On April 24, 2003 13:40, David Hill wrote: > Hi gents, > The hp-ux compiler has an issue with a couple of lines in > ext/mysql/libmysql/my_tempnam.c in the php 4_3 & PHP5 code stream. There > are two uneeded lvalue casts that the compiler chokes on. > > Any chance that you guys can fix this ? Hi David, The odd cast was used as a way to force some systems to let us update environ with a char ** pointer. In versions of the code later than this, we have had to switch to: (*(char***) &environ)=(char**) temp_env; as a way to deal with the IBM compiler under AIX not allowing us to cast the value of environ. How does this change work out for you? --zak