Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61986 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96761 invoked from network); 3 Aug 2012 03:20:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2012 03:20:03 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.160.170 mail-gh0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:39953] helo=mail-gh0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/26-61111-2634B105 for ; Thu, 02 Aug 2012 23:20:02 -0400 Received: by ghbg2 with SMTP id g2so338521ghb.29 for ; Thu, 02 Aug 2012 20:19:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to :x-gm-message-state; bh=P0bUCaj5Jexf2IPh2dQm40k4Kf/EL9rhkOUpnjAbc9M=; b=o/I9i8/pr5IYdi377WwxvxQRFq8P0XSbapq8O/ZP80zZJptw/rhsSOJQy3LOmaTeOt Iv9gcIKPNf9J8npsG5BsBvbcol7XBHGOvk5CgeQg8pMIB533Bxv0YY9BwYGEZpNa17EL FNxsoqFwjIqYr9VBnnaLJbppS9j/w7qiHkDxe7N4h5O4TqB90jvtM/fAkNFH2CETLQTI cp/Pexec5AKD/kWej8EbrqQHhe8ISD45/1da0QwPSFsSs2xZhLyIx1IKvBPU8hxt0Mkn vfukxhP4feAOmm6rMO8gWwy4ixdbtOkJbq/qcVB907BMAw1XNw3aO+VXtf9MokI9+hEC xNGg== Received: by 10.50.17.226 with SMTP id r2mr450602igd.47.1343963999464; Thu, 02 Aug 2012 20:19:59 -0700 (PDT) Received: from [10.0.1.16] (c-67-164-28-199.hsd1.ca.comcast.net. [67.164.28.199]) by mx.google.com with ESMTPS id nh8sm1268452igc.1.2012.08.02.20.19.58 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Aug 2012 20:19:59 -0700 (PDT) References: <501B1847.9000700@gmail.com> In-Reply-To: <501B1847.9000700@gmail.com> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Message-ID: Cc: Sara Golemon , Leigh , PHP internals X-Mailer: iPhone Mail (9B206) Date: Thu, 2 Aug 2012 20:19:56 -0700 To: =?utf-8?Q?=C3=81ngel_Gonz=C3=A1lez?= X-Gm-Message-State: ALoCoQlkiUqpXyydePH0L5+Nri99M9nZUgeQXx/PBcCTwu44oYjgwYDNF3XQb/W7z9vqJAzQPXbL Subject: Re: [PHP-DEV] Add runkit to PHP Runtime From: php@golemon.com (Sara Golemon) On Aug 2, 2012, at 17:16, =C3=81ngel Gonz=C3=A1lez wrote= : > On 03/08/12 01:22, Sara Golemon wrote: >> In all seriousness, I'd love to hear how you'd do Sandboxing without >> using the tsrm context hack I used in runkit. That approach had >> nothing to do with being in PECL, it had to do with that being the >> only mechanism available to swap globals in and out at will. > Actually, you could replace the whole EG() struct. It'd be slower, but > it should work flawlessly. >=20 What about FG, EX, PG, MYSQLG, etc... God forbid you have an extension load= ed which won't react well to having some globals replaced, but not its own. Give me some credit, I considered that option some half a decade ago. :p=