Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28129 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31258 invoked by uid 1010); 24 Feb 2007 22:06:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31243 invoked from network); 24 Feb 2007 22:06:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2007 22:06:09 -0000 Authentication-Results: pb1.pair.com header.from=mo@nevali.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mo@nevali.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nevali.net from 217.112.91.87 cause and error) X-PHP-List-Original-Sender: mo@nevali.net X-Host-Fingerprint: 217.112.91.87 oberon.jazzio.com NetCache 5.3-5.5 Received: from [217.112.91.87] ([217.112.91.87:64930] helo=oberon.jazzio.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/43-30677-566B0E54 for ; Sat, 24 Feb 2007 17:04:23 -0500 Received: from [217.112.91.88] (melo.nevali.net [217.112.91.88]) by oberon.jazzio.com (Postfix) with ESMTP id 85026106C6B2; Sat, 24 Feb 2007 22:04:18 +0000 (UTC) In-Reply-To: <45E08D56.9060802@iamjochem.com> References: <20070224031755.GA29737@melo.nevali.net> <45E08D56.9060802@iamjochem.com> Mime-Version: 1.0 (Apple Message framework v752.3) X-Gpgmail-State: !signed Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Message-ID: <5009567A-0E5E-4A05-B0E7-9AA05D1073B9@nevali.net> Cc: php internals Content-Transfer-Encoding: quoted-printable Date: Sat, 24 Feb 2007 22:03:53 +0000 To: Jochem Maas X-Mailer: Apple Mail (2.752.3) Subject: Re: [PHP-DEV] Simulating require_once within an extension From: mo@nevali.net (Mo McRoberts) Hi Jochem, On 24-Feb-2007, at 19:09, Jochem Maas wrote: > I suspect you could implement the desired functionality > using http://php.net/manual/en/function.stream-wrapper-register.php > > although I can't find any info on whether include/require > actually work with registered stream wrappers .. maybe one of the > devs could confirm/deny whether this is possible. > > which would allow you to do something like this (assuming it is =20 > possible to do): > > require_once 'momcr://foo/script.php'; That's a good idea, but unfortunately won't work for me--the =20 =91require=92 step is the first part of the function, which will then go = =20 on to do other things (the return value from the function will end up =20= being a class instance=97and it will be irrespective of whether the =20 includee had previously been included or not); it's just the case =20 that this is as far as I've got with C implementation of it before =20 running into problems! Mo.