Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55447 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10708 invoked from network); 14 Sep 2011 21:01:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2011 21:01:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=scott@macvicar.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=scott@macvicar.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain macvicar.net from 209.85.210.48 cause and error) X-PHP-List-Original-Sender: scott@macvicar.net X-Host-Fingerprint: 209.85.210.48 mail-pz0-f48.google.com Received: from [209.85.210.48] ([209.85.210.48:36268] helo=mail-pz0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/E0-05109-B16117E4 for ; Wed, 14 Sep 2011 17:01:15 -0400 Received: by pzk34 with SMTP id 34so4197034pzk.35 for ; Wed, 14 Sep 2011 14:01:12 -0700 (PDT) Received: by 10.68.14.37 with SMTP id m5mr572248pbc.171.1316034072179; Wed, 14 Sep 2011 14:01:12 -0700 (PDT) Received: from asabalambp13.thefacebook.com ([66.220.144.73]) by mx.google.com with ESMTPS id f8sm16671700pbc.3.2011.09.14.14.01.11 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Sep 2011 14:01:11 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Wed, 14 Sep 2011 14:01:12 -0700 Cc: Pierre Joye , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <30E87869-CED2-441D-8321-F30219C949EA@macvicar.net> References: To: Alexey Shein X-Mailer: Apple Mail (2.1244.3) Subject: Re: [PHP-DEV] Running mhash tests From: scott@macvicar.net (Scott MacVicar) On 14 Sep 2011, at 13:46, Alexey Shein wrote: > 2011/9/15 Pierre Joye : >> hi, >>=20 >> On Wed, Sep 14, 2011 at 9:58 PM, Alexey Shein = wrote: >>=20 >>> Should we delete these tests (and, maybe deprecate/move to pecl the >>> extension itself)? >>=20 >> I don't think we should, they are here to make sure that the = emulation >> layer works fine. >>=20 >>> If not, I'd like to know how to run these tests. >>=20 >> Maybe the skipif is wrong, as far as I remember there was an issue >> with seeing the "mhash" layer as being the mhash extension. Maybe we >> should change the skipif and uses function_exists instead? Have you >> tried it? >>=20 >=20 > They both return false for me: > conf@laptop ~/php-src/trunk $ sapi/cli/php -r > 'var_dump(extension_loaded("mhash"), function_exists("mhash"));' > bool(false) > bool(false) > conf@laptop ~/php-src/trunk $ Definitely works for me on latest trunk. Does a shorter configure fix = this? I wonder if something elsewhere is breaking this. macvicar-mba:trunk macvicar$ cat config.nice=20 #! /bin/sh # # Created by configure './configure' \ '--disable-all' \ '--with-mhash' \ "$@" macvicar-mba:trunk macvicar$ sapi/cli/php -m [PHP Modules] Core date ereg hash mhash pcre Reflection SPL standard [Zend Modules] macvicar-mba:trunk macvicar$ sapi/cli/php -r = 'var_dump(extension_loaded("mhash"));' bool(true)=