Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64567 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20705 invoked from network); 5 Jan 2013 23:28:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2013 23:28:34 -0000 Authentication-Results: pb1.pair.com header.from=enumag@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=enumag@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.53 as permitted sender) X-PHP-List-Original-Sender: enumag@gmail.com X-Host-Fingerprint: 74.125.83.53 mail-ee0-f53.google.com Received: from [74.125.83.53] ([74.125.83.53:64822] helo=mail-ee0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/9A-62408-127B8E05 for ; Sat, 05 Jan 2013 18:28:34 -0500 Received: by mail-ee0-f53.google.com with SMTP id c50so8546148eek.12 for ; Sat, 05 Jan 2013 15:28:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=kCgELm/R2dsKg1DptyaGx/iE8/JqQtFjBH7ICuUFUkE=; b=P2kjmdu8DX52vB6SVWWVOPo77eYJVkD/lg8fT1UN13oH91VSPRBUyo/jlo/Csroni3 QEkrcjfYW0P75vSimv3VjWeVB8WG6yP7EITV7M1ENQ+ugRpTObAz3eMyzI26TnXKqlhu iobiBnW+NlPXQQmYshrsimHQ9Zm+759eKuhEQk8e38Qi/YAN5GARNUnzbUkwCM/ha+aA DMtLPTj5s7W7/RFKoGXKmWPS5a6YSaVuj3nj5o4EqBkrQ1u57eOW7A/ADttU6bp2LDXR /doy8ZmHSAGFcgbsJGVWD6qfneW5+T5XYhFdOlFRHQDO2MZ2dLPZ1rekSghzhIXufJci 4ypA== X-Received: by 10.14.184.134 with SMTP id s6mr153926948eem.43.1357428511365; Sat, 05 Jan 2013 15:28:31 -0800 (PST) Received: from jachym-pc (ip-89-176-75-69.net.upcbroadband.cz. [89.176.75.69]) by mx.google.com with ESMTPS id r1sm120415825eeo.2.2013.01.05.15.28.30 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Jan 2013 15:28:30 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Stas Malyshev" Cc: "internals@lists.php.net" References: <50E742A7.9010909@sugarcrm.com> <50E8A99F.5000900@sugarcrm.com> Date: Sun, 06 Jan 2013 00:28:17 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <50E8A99F.5000900@sugarcrm.com> User-Agent: Opera Mail/12.11 (Win32) Subject: Re: [PHP-DEV] How to get a PHP bug fixed? From: enumag@gmail.com (=?utf-8?B?SsOhY2h5bSBUb3XFoWVr?=) Are you sure there should be the $options parameter? It would not save any memory because the trace needs to be pregenerated regardless. Back compatibilty clearly doesn't need to be that strict in this case because for example in case of debug_backtrace function the 'object' fields where added in 5.1.1 (not in 5.1.0!) and were enabled by default (there wasn't even a way to disable them - that came with 5.2.5). With that in mind there is no need for the $options parameter in my opinon. Which meens the only thing missing is the tests, right? Dne Sat, 05 Jan 2013 23:30:55 +0100 Stas Malyshev napsal(a): > Hi! > >> I've looked into it and I'm not sure whether an option for getTrace >> method is the best way to solve this. I mean the trace is created >> along with the exception so it would have to be generated with the >> object fields regardless and then filtered if the option is not set. >> I think it would be better to add new PHP directive for this >> (disabled by default for back compatibility). > > No, I don't think it is a good idea. We have too many config directives > already, and behavior-modifying directives is really not a good idea, > since it is a global state with all its problems. > >> Also what do you mean by DEBUG_BACKTRACE_*? > > Constants used for trace parameters.