Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55456 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71190 invoked from network); 15 Sep 2011 17:22:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2011 17:22:51 -0000 Authentication-Results: pb1.pair.com header.from=confik@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=confik@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.54 as permitted sender) X-PHP-List-Original-Sender: confik@gmail.com X-Host-Fingerprint: 74.125.83.54 mail-gw0-f54.google.com Received: from [74.125.83.54] ([74.125.83.54:43166] helo=mail-gw0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/BB-29375-A64327E4 for ; Thu, 15 Sep 2011 13:22:50 -0400 Received: by gwj18 with SMTP id 18so3103458gwj.13 for ; Thu, 15 Sep 2011 10:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=/JqZgPUVzg/NLA/NvdqpLJgX5biE72X6ad7UKLNs3iw=; b=xSyEm1aLN7Aw5RUt/MSfKbNI4w5JD7leEFIrqRuzGMXn1VssQa0VHwdNbEZJLdwVYP zMRJaPFT1sU15Rh06xz5A+6j4CuUayqzcjXj2y0mBIQ5X1d1F809vX+MOqCUq3+s4o7n C3vgTdaECzMd7RZ6la0WHm4Ao/V5VleSQCqFY= Received: by 10.101.26.35 with SMTP id d35mr726298anj.112.1316107367117; Thu, 15 Sep 2011 10:22:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.33.19 with HTTP; Thu, 15 Sep 2011 10:22:27 -0700 (PDT) In-Reply-To: <30E87869-CED2-441D-8321-F30219C949EA@macvicar.net> References: <30E87869-CED2-441D-8321-F30219C949EA@macvicar.net> Date: Thu, 15 Sep 2011 22:22:27 +0500 Message-ID: To: Scott MacVicar Cc: Pierre Joye , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Running mhash tests From: confik@gmail.com (Alexey Shein) It's very strange but after 5-6 recompiles with different configurations (I tried to reduce "breaking" setup) my current configuration started to work itself. Thanks everybody for help. 2011/9/15 Scott MacVicar : > > On 14 Sep 2011, at 13:46, Alexey Shein wrote: > >> 2011/9/15 Pierre Joye : >>> hi, >>> >>> On Wed, Sep 14, 2011 at 9:58 PM, Alexey Shein wrote: >>> >>>> Should we delete these tests (and, maybe deprecate/move to pecl the >>>> extension itself)? >>> >>> I don't think we should, they are here to make sure that the emulation >>> layer works fine. >>> >>>> If not, I'd like to know how to run these tests. >>> >>> 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? >>> >> >> 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 > #! /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) -- Regards, Shein Alexey