Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80143 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81988 invoked from network); 4 Jan 2015 12:34:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2015 12:34:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=reeze.xia@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=reeze.xia@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: reeze.xia@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:41147] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/00-15455-94339A45 for ; Sun, 04 Jan 2015 07:34:17 -0500 Received: by mail-wg0-f54.google.com with SMTP id z12so8331096wgg.41 for ; Sun, 04 Jan 2015 04:34:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=1Q27OtJAkW3a7ACgLPzMShbfeNhyeMSgTv/UJxJWyHI=; b=O94MTOeDLLJySYmQ+zNEPQ7WhKAyVMQVGcNFIgF5uPZm8e94hCD+AQ24PprkSpkepD eHIohM6EXyZdqfRCGxuPddVK/OsubVgt144PpDhXQ0hsGJwk/MYoKmY4VSoLA2Xcue6V NeT5fGWnW/rGmha9n5AuL47JQqVRuLp7svA/2WZZ2kz4FIKuhfUIZ3yGVielaJTIMCxo yrpNRrcDNh6RCyjketNmcduijoOPNI9uPwEgP42XUKw+E1B30jtpbnoNdGg+fZBVp6uC 34yMgPiOZPp+LCpXRYOh+3RIPYeWGy2bTi+vhAURc2fLFZ9f/+RjwKJuKjVAKZ4x36Wn /IVg== X-Received: by 10.180.76.201 with SMTP id m9mr15486319wiw.52.1420374852165; Sun, 04 Jan 2015 04:34:12 -0800 (PST) MIME-Version: 1.0 Sender: reeze.xia@gmail.com Received: by 10.194.79.104 with HTTP; Sun, 4 Jan 2015 04:33:52 -0800 (PST) In-Reply-To: References: Date: Sun, 4 Jan 2015 20:33:52 +0800 X-Google-Sender-Auth: k-HZaZJI4LLPqLrCoTXS8dlSCPw Message-ID: To: Benjamin Eberlei Cc: PHP Internals Content-Type: multipart/alternative; boundary=f46d043c08b682e631050bd2cace Subject: Re: [PHP-DEV] [RFC] Extension Prepend Files From: reeze@php.net (reeze) --f46d043c08b682e631050bd2cace Content-Type: text/plain; charset=ISO-8859-1 I like the idea, I have implemented a util [1] to help writing extensions with PHP, I try the approach HHVM adopted by embedding PHP scripts to the binary file of extension, maybe it is what you want. I do like it been supported in core. I would like to implement the RFC if others like it. --- [1] https://github.com/reeze/php-ext-embed On 4 January 2015 at 19:52, Benjamin Eberlei wrote: > Hey everyone, > > I want to open discussion on my RFC to strengthen the ability of extensions > to provide functionality to developers in both C **and** PHP code. > > For this extensions can add PHP files to a list of "prepend files" that are > part of every request execution exactly the same way the INI > auto_prepend_file functionality works: > > https://wiki.php.net/rfc/extension_prepend_files > > I propose implementation details in the RFC, but they are completely up to > discussion. I am even sure there is probably a better way than what I > proposed, because I am not familiar with the code. > > greetings > Benjamin > --f46d043c08b682e631050bd2cace--