Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75918 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52390 invoked from network); 23 Jul 2014 02:23:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2014 02:23:31 -0000 Authentication-Results: pb1.pair.com header.from=the.warl0ck.1989@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=the.warl0ck.1989@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.46 as permitted sender) X-PHP-List-Original-Sender: the.warl0ck.1989@gmail.com X-Host-Fingerprint: 209.85.219.46 mail-oa0-f46.google.com Received: from [209.85.219.46] ([209.85.219.46:36589] helo=mail-oa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/0D-21666-2AC1FC35 for ; Tue, 22 Jul 2014 22:23:30 -0400 Received: by mail-oa0-f46.google.com with SMTP id m1so765619oag.5 for ; Tue, 22 Jul 2014 19:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0gpv/VO46HILkhBscFOuKkXNuu5EPyOvNrFYQ8iI6Cc=; b=X4V0KKgR3wib2b6g3bLQLrENjpIYqxXDQj2ugZOTqF1XVKoWQVlDWtNTFMxsC/o2Ki xzAoY0WPc8L7/CdapuWeSO8FRzxqrjV9b/SwMJWV9PwgVV/Z6fcNSIkhou9eLIaaHVK2 a37LViRSmnjQEfNHbh0aIjKChXIDnGoEnUFgv0tPFw+zsk0cpzoW0x0rKiD0znkrsL0g cl4YACfQA1PxmtoQSPkCgpMLxF8zS9xpw9YXA3d61luDMrwVYS2VTISDtrI2hLBdlzry /fTU9rTRq6opNp954PhPV/ir+apG+ktZ5k77siFFxBsT41y1RJxAADbvi4C9gbur6Z/f sh2Q== MIME-Version: 1.0 X-Received: by 10.60.135.2 with SMTP id po2mr54334817oeb.40.1406082209193; Tue, 22 Jul 2014 19:23:29 -0700 (PDT) Received: by 10.76.23.102 with HTTP; Tue, 22 Jul 2014 19:23:29 -0700 (PDT) Date: Wed, 23 Jul 2014 10:23:29 +0800 Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: How do I know if the code is in eval? From: the.warl0ck.1989@gmail.com (Aaron Lewis) Hi, How can I know the line no in eval()'d code? e.g eval()'d code on line 1 (I couldn't find the definition of that output, so I had to ask it here) zend_get_executed_lineno(TSRMLS_C) doesn't seem to be the right value Also, I'm not sure how to tell if the code is in eval() either -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33