Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1031 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55402 invoked from network); 24 Apr 2003 19:40:22 -0000 Received: from unknown (HELO gateway.zk3.dec.com) (206.152.163.42) by pb1.pair.com with SMTP; 24 Apr 2003 19:40:22 -0000 Received: by gateway.zk3.dec.com; (5.65v4.0/1.3/10May95) id AA10792; Thu, 24 Apr 2003 15:40:20 -0400 Received: from php.net by lead.zk3.dec.com (8.12.1/1.1.20.3/27Apr99-0346PM) id h3OJe7Fo187358; Thu, 24 Apr 2003 15:40:08 -0400 (EDT) Message-ID: <3EA83D97.80201@php.net> Date: Thu, 24 Apr 2003 15:40:07 -0400 User-Agent: Mozilla/5.0 (X11; U; OSF1 alpha; en-US; rv:1.3a) Gecko/20021217 X-Accept-Language: en-us, en Mime-Version: 1.0 To: zak@mysql.com, georg@php.net Cc: internals@lists.php.net Content-Type: multipart/mixed; boundary="------------020008090708080805050902" Subject: Compilation issue with mysql/php & HP-ux From: ddhill@php.net (David Hill) --------------020008090708080805050902 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 ? Diff attached. thanks, Dave --------------020008090708080805050902 Content-Type: text/plain; name="mysql.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mysql.txt" --- ext/mysql/libmysql/my_tempnam.c.orig 2003-04-24 15:33:36.000000000 -0400 +++ ext/mysql/libmysql/my_tempnam.c 2003-04-24 15:33:57.000000000 -0400 @@ -96,13 +96,13 @@ old_env=(char**)environ; if (dir) { /* Don't use TMPDIR if dir is given */ - ((char **)environ)=(char**)temp_env; /* May give warning */ + environ=(char**)temp_env; /* May give warning */ temp_env[0]=0; } #endif res=tempnam((char*) dir,(my_string) pfx); /* Use stand. dir with prefix */ #ifndef OS2 - ((char**)environ)=(char**)old_env; /* May give warning */ + environ=(char**)old_env; /* May give warning */ #endif if (!res) DBUG_PRINT("error",("Got error: %d from tempnam",errno)); --------------020008090708080805050902--