Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35312 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43301 invoked by uid 1010); 7 Feb 2008 23:48:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43286 invoked from network); 7 Feb 2008 23:48:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2008 23:48:41 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:35355] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/33-24723-8D89BA74 for ; Thu, 07 Feb 2008 18:48:40 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 7FFF0C0EC7F for ; Thu, 7 Feb 2008 16:48:37 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-4-101.neb.res.rr.com [76.84.4.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 45DDFC0EC79 for ; Thu, 7 Feb 2008 16:48:37 -0700 (MST) Message-ID: <47AB98DF.5050308@chiaraquartet.net> Date: Thu, 07 Feb 2008 17:48:47 -0600 User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: internals Mailing List X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: update on phar extension work From: greg@chiaraquartet.net (Gregory Beaver) Hi, A short update on improvements to phar * Phar::webPhar() now works with CGI sapi (endless redirect happened before) * Phar::webPhar() now recognizes urls exactly the same way as apache, so http://localhost/myphar.phar/file.php/extra/stuff will find "file.php" hidden in the url and retrieve it. * Phar::mungServer() was incorrectly making SCRIPT_NAME the same as SCRIPT_FILENAME, now it is the value expected. * Phar::webPhar()'s $rewrite parameter is documented as an array of path names to actual location. This is too inflexible, and has instead been replaced with a simple callback. A php function that takes a string as an argument and returns the actual path expected is used. In addition, if the function returns false, webPhar() will throw an HTTP 403 Denied code, so sections of a phar archive can be marked as off limits. This solves a problem of not having a protected out of document root webspace inside a phar archive. There are some memory leaks to clean up, and a few other problems, but we're making progress. I have a backlog of a few apps sent offline that don't quite work that I need to debug to determine what is causing the breakage, more on that later. Greg