Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66210 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86979 invoked from network); 25 Feb 2013 18:33:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Feb 2013 18:33:21 -0000 Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.81 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.81 blu0-omc2-s6.blu0.hotmail.com Windows 2000 SP4, XP SP1 Received: from [65.55.111.81] ([65.55.111.81:2644] helo=blu0-omc2-s6.blu0.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/B3-10787-07EAB215 for ; Mon, 25 Feb 2013 13:33:21 -0500 Received: from BLU0-SMTP440 ([65.55.111.71]) by blu0-omc2-s6.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 25 Feb 2013 10:33:18 -0800 X-EIP: [pqGvkC6LZibd5QM6SZbVfBCG+daBtCK7] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Received: from bob-weinands-imac.fritz.box ([78.141.134.76]) by BLU0-SMTP440.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 25 Feb 2013 10:33:16 -0800 MIME-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="iso-8859-1" Disposition-Notification-To: bobwei9@hotmail.com In-Reply-To: <512BA931.7010909@sugarcrm.com> Date: Mon, 25 Feb 2013 19:33:14 +0100 CC: PHP List Developers Mailing Content-Transfer-Encoding: 7bit References: <1361810738.2376.74.camel@guybrush> <512BA931.7010909@sugarcrm.com> To: Stas Malyshev X-Mailer: Apple Mail (2.1499) X-OriginalArrivalTime: 25 Feb 2013 18:33:16.0866 (UTC) FILETIME=[93ED2220:01CE1386] Subject: Re: [PHP-DEV] About restricting the recursive implicit calls From: bobwei9@hotmail.com (Bob Weinand) Am 25.2.2013 um 19:10 schrieb Stas Malyshev : > Hi! > >> Yes, but you can do an approximation. And in 99.999% of the cases 100 >> will be enough. I can hardly imagine a case where you need to do over >> 100 implicit function calls. They should fit in every normal stack size of >> servers today. > > Depth-first search in a modest-size data structure would easily go over > 100. But if you need it, xdebug already has this option. > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php No, no, ... You may use recursive functions (which are limited by the memory_limit), but if you use recursive magics, it's a design error. This is not the purpose of magics (, call_user_func(_array)?) and simply an abuse of the language. Bob