Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64581 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40936 invoked from network); 6 Jan 2013 00:08:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2013 00:08:53 -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 209.85.215.178 as permitted sender) X-PHP-List-Original-Sender: enumag@gmail.com X-Host-Fingerprint: 209.85.215.178 mail-ea0-f178.google.com Received: from [209.85.215.178] ([209.85.215.178:44077] helo=mail-ea0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/1F-62408-390C8E05 for ; Sat, 05 Jan 2013 19:08:52 -0500 Received: by mail-ea0-f178.google.com with SMTP id k11so7452459eaa.23 for ; Sat, 05 Jan 2013 16:08:48 -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=oA9Qr7EATahV/LZm3SVVMiq9cCXZW181MTNOG8xFokk=; b=a0gZ0rmrUByEXsNCBydSxDeeRIgcpL5GK42M/SQzl4DQUT2X6jyuXkTGVz51V6xR+s W4uDgLQ5qwbWSkxdIvbWT8pW7r1RPGhSMUD0cMndbGzku9X0e7mF4cUxh2uZaOAgvtJn xRlXGEUnSarmWIslILiz8JJqBhNoX06wHE2l9ewlOkE1bP7B4utueUEExUBQuvwhlmKO wMY9oTnT7KWWJ0X859KqgYB8kUPPMHn3bsiwjTOX83FoJKEdS78JGM3htOIhyAw3C+DE nvGTcWYaQBc1SzaKj5i07mMW9LzWjU7fxLsBcyYlBvA80L8ZpHsMPbgPzVjUkvGjLspK Hrmw== X-Received: by 10.14.216.70 with SMTP id f46mr155453323eep.12.1357430928548; Sat, 05 Jan 2013 16:08:48 -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 q44sm120603885eep.5.2013.01.05.16.08.47 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Jan 2013 16:08:47 -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> <50E8BA82.5000700@sugarcrm.com> <50E8BC3E.4030705@sugarcrm.com> Date: Sun, 06 Jan 2013 01:08:34 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <50E8BC3E.4030705@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?=) I agree with you that the parameters would be good. There should also be the limit parameter (same as for debug_backtrace). However I'm afraid I'm not that much familiar with C to actually write it. It's true that in 'args' there theoretically may not be any object. But as you are surely aware, the probability of that is pretty much zero in a real PHP application. Unless it does not use OOP of course, but in that case the 'object' field would also be empty. That means it would be good to add the parameters to Exception::getTrace(), but as I'm unable to do so there won't be anything wrong with just adding the 'object' for the timebeeing, don't you think? It would be very helpful for those who use some fancy debugger (see http://blog.juzna.cz/2011/07/tuning-error-reporting-in-php/). Dne Sun, 06 Jan 2013 00:50:22 +0100 Stas Malyshev napsal(a): > Hi! > >> I don't understand. There already IS the 'args' field where huge >> objects also can be (and very often are). The new 'object' field >> does not make any difference in this regard. > > It adds another place where huge objects can be - and unlike args, it is > guaranteed to be an object, and those tend to be big. So chances to blow > up the memory with this function become higher. That's why other > functions gained parameters to amend this situation some time ago, this > one would be good to add it too.