Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46642 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17112 invoked from network); 11 Jan 2010 18:01:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2010 18:01:17 -0000 Authentication-Results: pb1.pair.com header.from=jess@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jess@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: jess@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:34699] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/E4-26332-C676B4B4 for ; Mon, 11 Jan 2010 13:01:17 -0500 Received: from il-gw1.zend.com (unknown [10.1.1.21]) by il-mr1.zend.com (Postfix) with ESMTP id 655D050475; Mon, 11 Jan 2010 19:45:24 +0200 (IST) Received: from [10.1.2.102] ([10.1.2.102]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 11 Jan 2010 20:01:13 +0200 Message-ID: <4B4B6768.3060006@zend.com> Date: Mon, 11 Jan 2010 20:01:12 +0200 User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: Andrey Hristov CC: PHP Developers Mailing List References: <4B4B53A8.8010300@zend.com> <4B4B5639.1020404@mysql.com> <4B4B5728.20502@zend.com> <4B4B5879.5030809@zend.com> <4B4B596E.7070608@mysql.com> <4B4B5C7E.5040305@zend.com> <4B4B5E6C.9070908@mysql.com> <4B4B60A7.5030604@zend.com> <4B4B6326.20903@mysql.com> In-Reply-To: <4B4B6326.20903@mysql.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Jan 2010 18:01:13.0140 (UTC) FILETIME=[0FF71740:01CA92E8] Subject: Re: [PHP-DEV] [PATCH] Attempt to include ext/mysqlnd/mysqlnd_portability.h when building MySQLi against libmysql From: jess@zend.com (Jess Portnoy) Hi Andrey, Sounds good to me. Would you like me to test and submit a patch or will you? May the source be with you, Best regards, Jess Portnoy Andrey Hristov wrote: > Hi Jess, > Jess Portnoy wrote: >> I see but assuming mysqlnd is copied, I can still see a problem, in >> the configure script: >> echo "#define $php_def_have_what 1" >> ext/mysqlnd/php_mysqlnd_config.h >> When running my configure: >> ./configure --disable-xml --disable-dom --disable-libxml >> --disable-simplexml --without-pear --disable-xmlreader >> --disable-xmlwriter --without-iconv >> >> ext/mysqlnd/php_mysqlnd_config.h is not created and >> ext/mysqlnd/mysqlnd_portability.h attempts to include that and hence, >> even if the mysqlnd dir is copied to $PHP_PREFIX/include/php/ext >> regardless of your configure argument, there will still be a problem >> with this auto generated header. >> >> May the source be with you, >> Best regards, >> Jess Portnoy >> > > Possible solution is to copy the macros from mysqlnd_portability.h to > mysqli and use ifndef to define them, if mysqlnd_portability.h is not > available. Hopefully the code will compile without the need to typedef > types as the macros use C99 types (uintXX_t) which should be available > mostly anywhere. > > Best, > Andrey