Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64205 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66245 invoked from network); 9 Dec 2012 01:31:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2012 01:31:42 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:58856] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/97-13109-CF9E3C05 for ; Sat, 08 Dec 2012 20:31:41 -0500 Received: by mail-la0-f42.google.com with SMTP id s15so1263346lag.29 for ; Sat, 08 Dec 2012 17:31:38 -0800 (PST) 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=cFYcXWZcxqKL2UnRu9Xz6nd5SLoh31MoeNs2pK5FW9g=; b=PKRrqffPCk1iWAVQ3Kih8Z+74PpzTSXgaugeQCRiqEUB9HnE2s/WnihYBkXCnvtgEQ e5C1YqLR9cnHHAhC52Ze59YUaSWI3WTZmWFVFvSyP+SGy4VZwGLTbyKXF/uV+mcLgPpq s5sEw8bfATWNRnnxMMD3L66XNRkBH7zs/efF5m2j22O5z+XRfs5dFoJu1wAV63t6p3aO 7Mu6Y7PkPG+Cx+Cayu6LoNAn6OOihuc71lM1P6OCt85cEUKCJ+WpKC3uppLBxmWChOMP osETg98qqGW4QpUI+bhF+D9tYo9AI2m4u+SqAqDc6Zpr47KZNCQ3l8LNGgzD65y/2+tI OP+w== MIME-Version: 1.0 Received: by 10.152.106.212 with SMTP id gw20mr9669493lab.8.1355016697973; Sat, 08 Dec 2012 17:31:37 -0800 (PST) Received: by 10.112.23.4 with HTTP; Sat, 8 Dec 2012 17:31:37 -0800 (PST) Date: Sat, 8 Dec 2012 18:31:37 -0700 Message-ID: To: internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Request #44392: getFilePointer() for Childs of SplFileObject From: morrison.levi@gmail.com (Levi Morrison) A copy of the feature request description (https://bugs.php.net/bug.php?id=44392): It would be nice if it would be possible to get the underlying resource handle of an SplFileObject to be able to add stream filters on the file. Sadly the URI parser in PHP seems to be broken and URIs with filters like php://filter/read=convert.iconv.ISO-8859-15/UTF-8/resource=... cannot be used (encoding the slash doesn't work either (%2F)) therefore it would be nice if one could access the underlying resource handle f.e. by providing a protected $fp in SplFileObject one could use in a child class then and do the stream_filter_append() there. --- I think this feature would prove to be useful. I also see no reason why the SplFileObject can't have this as a public method. Any objections to this?