Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101871 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92426 invoked from network); 14 Feb 2018 16:29:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2018 16:29:38 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.219 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.219 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.219] ([81.169.146.219:28261] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/E3-26725-0F3648A5 for ; Wed, 14 Feb 2018 11:29:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1518625773; s=strato-dkim-0002; d=kelunik.com; h=Content-Type:Cc:To:Subject:Message-ID:Date:From:References: In-Reply-To:X-RZG-CLASS-ID:X-RZG-AUTH; bh=vi8YHhVxFO24SupWH1VxHQ5+3Yc9Kttb/7uYYL1Atag=; b=V8jU9S4ZBuNQgBXFS/Sr5b99bcZwdaBE7EDnWc/bIqg/o0WEoaLE/iC1B0R4YD7VNN v0jB7isQWNwJAUZ4xW+O94778ekAC4DtDigKfERsM6abw2IbuEZ9uje1VnwNDpQVlucT Va0ARsrUUraICnmIfQQrF9WNhESG9r25PyqEctUo12tQ3vlEp93llCqb7Yi3CIj4cPSt Tg8B8SfCQjA4imqnUTMqw7AVwxFAK2RQBIxAkSxcnMrET96MqiPUZJTKdfZh0AAYeBAW G50rihWQN+cEVb7Xo4xfwJ32DoTG2NY9p7pNQ5R8cBH3OqCkg+TQeijP/JH6dSDX39TK JJGw== X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mlsGbEv0XHBzMIJSS+jKTzde5mDb8Db2nURiu3cA== X-RZG-CLASS-ID: mo00 Received: by mail-yw0-f170.google.com with SMTP id w142so577014ywg.13 for ; Wed, 14 Feb 2018 08:29:33 -0800 (PST) X-Gm-Message-State: APf1xPBIF2JBzh7PaJ+vuvH6xhx8opefSoJu9w0bjN1GmnY054fLD8dc ADbQzj7yuea8rLtjvuiZ+uvIiak04MTtwLsE2zI= X-Google-Smtp-Source: AH8x2254h1v/IwGvvOqVxqaL3BxaIfApjJU41sXQBMHxv32W2pRNVNR2DaAAvfCo30GsKf54tmdmsxuig1D6d6LCbeU= X-Received: by 10.37.234.5 with SMTP id p5mr3665237ybd.331.1518625772633; Wed, 14 Feb 2018 08:29:32 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a25:b6c9:0:0:0:0:0 with HTTP; Wed, 14 Feb 2018 08:29:32 -0800 (PST) In-Reply-To: References: Date: Wed, 14 Feb 2018 17:29:32 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Michael Morris Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] About assert() From: me@kelunik.com (Niklas Keller) > In PHP 7 only foo() will be in the backtrace. In PHP 5 assert will be > listed as well. > > What you are proposing has already been done. It's also why > zend.assertions has three settings: 1: on, -1: off, 0: emulate PHP 5. > Unless you have code on your hands that is breaking when the -1 setting is > used, the 0 setting should never be used. I don't think that's true. 0 can be used to dynamically switch assertions on and off, which can be useful in some applications. Regards, Niklas