Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63254 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18632 invoked from network); 1 Oct 2012 04:21:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Oct 2012 04:21:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.131 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.131 smtp131.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.131] ([67.192.241.131:51352] helo=smtp131.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/32-26330-35A19605 for ; Mon, 01 Oct 2012 00:21:39 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp29.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id B4C1F3981B5; Mon, 1 Oct 2012 00:21:36 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp29.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 670353980F6; Mon, 1 Oct 2012 00:21:36 -0400 (EDT) Message-ID: <50691A4F.70702@sugarcrm.com> Date: Sun, 30 Sep 2012 21:21:35 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: PHP Internals , "nikic@php.net" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: generators & php tools From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! I was looking into generators topic and I couldn't find answer to this question: how generators are supposed to interact with PHP tools, such as debuggers, profilers, etc.? Specifically, how calls to generator are handled? Usually, the tool overrides zend_execute and zend_execute_internal and every function call goes through there. But generator does not use these - it uses execute_ex instead. So can generator be debugged/profiled? What happens if I say "step out" inside generator - would that work? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227