Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87820 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16353 invoked from network); 20 Aug 2015 16:49:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Aug 2015 16:49:21 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.217.169 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.217.169 mail-lb0-f169.google.com Received: from [209.85.217.169] ([209.85.217.169:35186] helo=mail-lb0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/66-00671-F0506D55 for ; Thu, 20 Aug 2015 12:49:21 -0400 Received: by lbcbn3 with SMTP id bn3so27599719lbc.2 for ; Thu, 20 Aug 2015 09:49:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=5tU/GrPJt2MkS1oEBkWBFmOrTeInRqKMhPoBIm3IOCE=; b=KsfTtvA2Yrx5SPSBYU87ZkapHY5x1NYxO1RGL9SMSlxdIWWI2TSK3xIDKvn6oUXmT6 IhrAdIXaWiFDbc9mR/0bwW/DcAPsTAdBVJYMNF9ix47fI7oNgKMxEuMIsBCwqYH9WXzU 044Mz4QVM0A40dYcTlwHqLLy04RNlQdlVMMwUcPEDZJBK2/jioiTYybZFPvea/ujqnX6 zpWeSmW8ZqO1oDlKIPpT2zGnLq1L3xM4PwMUQt6yR5GGvS/VqAv/gaYWVa/3TokIXWVO aeXvXC72kPr8uSJnCBC01Iin7+mK8Xz81WNj4uuONToAINdguvfNPdWzPJkUWV6Fdchn FDvQ== X-Gm-Message-State: ALoCoQkbkrIVi09mA7KSrAAnyJa4rhApmfZzfGflncfdisytgnuEH2CP7cpM1ZexWUfUVz6ZBhtT MIME-Version: 1.0 X-Received: by 10.112.13.72 with SMTP id f8mr3746897lbc.77.1440089356367; Thu, 20 Aug 2015 09:49:16 -0700 (PDT) Sender: php@golemon.com Received: by 10.112.34.102 with HTTP; Thu, 20 Aug 2015 09:49:16 -0700 (PDT) X-Originating-IP: [2620:10d:c090:200::1:e9ab] In-Reply-To: <55D4E2B1.1040309@gmail.com> References: <55D4E2B1.1040309@gmail.com> Date: Thu, 20 Aug 2015 09:49:16 -0700 X-Google-Sender-Auth: LOhnACeZjPQVgbKhVdgt6iuQW9Y Message-ID: To: Stanislav Malyshev Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] C++ Extensions From: pollita@php.net (Sara Golemon) On Wed, Aug 19, 2015 at 1:10 PM, Stanislav Malyshev wrote: >> A) Adding those defines prior to including stdint.h >> B) Expecting C++ ext devs to define those before including php.h >> C) Modifying zend_long.h to use things like >> std::numeric_limits() when __cplusplus is defined >> >> A may (potentially) have unexpected side-effects >> B has precedent (see ext/intl/config.m4) >> C makes the ifdef block that's already there notably more complex > > I'd rather have everything solved by php.h than having magic > incantations that one has to do prior to it. I would prefer A unless > there's really something wrong with it that. Given that these macros are > on their way out anyway: > https://sourceware.org/bugzilla/show_bug.cgi?id=15366 > I'm not sure it's that dangerous to define them in the meantime. > I agree! :) Though I didn't realize they were deprecated anyway. Second question, is it too late to put it in 7.0.0? Happy enough to put it behind #ifdef __cplusplus to limit the exposed surface area. -Sara