Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64574 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30440 invoked from network); 5 Jan 2013 23:42:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2013 23:42:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=enumag@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=enumag@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.46 as permitted sender) X-PHP-List-Original-Sender: enumag@gmail.com X-Host-Fingerprint: 74.125.83.46 mail-ee0-f46.google.com Received: from [74.125.83.46] ([74.125.83.46:47510] helo=mail-ee0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/DC-62408-45AB8E05 for ; Sat, 05 Jan 2013 18:42:13 -0500 Received: by mail-ee0-f46.google.com with SMTP id e53so8568770eek.19 for ; Sat, 05 Jan 2013 15:42:10 -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=DHr79L6VTNXJMIurj3Nx1hPdE2+y2KYXX5eKW/ajicw=; b=lsIqP3KYK5olhiv5C8sSqOruQNLD3LuLeI+MrXhOkIOxleNpsH8stWyYJLEzsvHOJL rotpg1nTx0mUnUjnUkjmK+YHQf3zCs0LjBX80iLz0SYv8OMn8103zgFsg5rmYokg1sJe eAx68ld/o8gOZ6lx5lbKD8xD2djyPsx+Vi8JFcbgiKq1Hry5UHjepV0Z8LsHjeYpTWQr 56ONNN85GbNstaQlXeXYRD5QBUBrs5UNUYWEIpaBMcrl/GuKrtCDpm0ze/Q4wEIux57o 208/172J7biAb/DV1bW2rE6cGzX4qPmuFimL07BqddTIsfff1WVjb7nfd/sXbpgIg3QT +Rtw== X-Received: by 10.14.219.72 with SMTP id l48mr155250878eep.37.1357429329973; Sat, 05 Jan 2013 15:42:09 -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 6sm120481261eea.3.2013.01.05.15.42.08 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Jan 2013 15:42:09 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Stas Malyshev" , =?utf-8?B?SsOhY2h5bSBUb3XFoWVr?= Cc: "internals@lists.php.net" References: <50E742A7.9010909@sugarcrm.com> <50E8A99F.5000900@sugarcrm.com> Date: Sun, 06 Jan 2013 00:41:56 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: 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?=) And by tests I mean fixing all the old tests which use Exception::getTra= ce(). There is no need to write a new test(s). Dne Sun, 06 Jan 2013 00:28:17 +0100 J=C3=A1chym Tou=C5=A1ek napsal(a): > 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 whe= re added in 5.1.1 (not in 5.1.0!) and were enabled by default (there was= n'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 op= inon. 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 directiv= es >> 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.