Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32077 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48146 invoked by uid 1010); 6 Sep 2007 08:24:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 48131 invoked from network); 6 Sep 2007 08:24:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Sep 2007 08:24:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=hartmut@mysql.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=hartmut@mysql.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mysql.com from 213.136.52.68 cause and error) X-PHP-List-Original-Sender: hartmut@mysql.com X-Host-Fingerprint: 213.136.52.68 mailgate-out2.mysql.com Linux 2.5 (sometimes 2.4) (4) Received: from [213.136.52.68] ([213.136.52.68:35061] helo=mailgate.mysql.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/67-25837-A49BFD64 for ; Thu, 06 Sep 2007 04:24:43 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate.mysql.com (8.13.8/8.13.8) with ESMTP id l868ObpP017842; Thu, 6 Sep 2007 10:24:37 +0200 Received: from mail.mysql.com ([10.222.1.99]) by localhost (mailgate.mysql.com [10.222.1.98]) (amavisd-new, port 10026) with LMTP id 16922-01-2; Thu, 6 Sep 2007 10:24:37 +0200 (CEST) Received: from [10.100.64.53] (10-100-64-53.mysql.internal [10.100.64.53]) (authenticated bits=0) by mail.mysql.com (8.13.3/8.13.3) with ESMTP id l868OTR1009389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 6 Sep 2007 10:24:30 +0200 Message-ID: <46DFB940.7040600@mysql.com> Date: Thu, 06 Sep 2007 10:24:32 +0200 Organization: MySQL AB User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061211 SeaMonkey/1.0.7 MIME-Version: 1.0 To: BuildSmart CC: PHP Developers Mailing List , Rasmus Lerdorf References: <46DF60BF.9090805@lerdorf.com> <5430305D-28D0-48C6-8A21-4E711CF21311@daleenterprise.com> In-Reply-To: <5430305D-28D0-48C6-8A21-4E711CF21311@daleenterprise.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at mailgate.mysql.com Subject: Re: [PHP-DEV] proof of concept or undocumented? From: hartmut@mysql.com (Hartmut Holzgraefe) BuildSmart wrote: > The only differences I could find was that openssl was enabled in the=20 > working builds but not enabled in the failing build. >=20 [...] > I went a step further and manually added the ssl libraries (-lssl=20 > -lcrypto) to the Makefile (both as bundled and shared) and all worked w= ell. >=20 > This cannot be considered a bug (or maybe it is), perhaps an additional= =20 > check could/should be performed to see if mysql is built with SSL=20 > support and if so check whether openssl is enabled and add the ssl=20 > libraries to the sapi build or to MYSQL_SHARED_LDADD if it's not or to = > auto-enable openssl? yes, ext/mysql is not too clever about this and simply relies on ext/openssl being enabled at the same time. Adding an extra test can't rely on mysql_config though as AFAIR it is not using mysql_config at all. If you want to check whether you'd need to add a compile/link test with a small example program that tries to e.g. use http://dev.mysql.com/doc/refman/4.1/en/mysql-ssl-set.html I'm not sure though whether this function is only available with ssl-enabled MySQL builds or whether it is always there and just returning error codes, i think it is the later so you'd have to create a functionality test, not just a simple "does it compile and link without errors" one. As this is not a change to the actual functionality of ext/mysql i think a working patch would be accepted even though the extension is deprecated by now. OTOH i don't really think it is worth the effort anymore though ... --=20 Hartmut Holzgraefe, Principal Support Engineer . Discover new MySQL Monitoring & Advisory features at: http://www.mysql.com/products/enterprise/whats_new.html Hauptsitz: MySQL GmbH, Dachauer Str.37, 80335 M=FCnchen Gesch=E4ftsf=FChrer: Kaj Arn=F6 - HRB M=FCnchen 162140