Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57168 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3621 invoked from network); 2 Jan 2012 21:33:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jan 2012 21:33:15 -0000 Authentication-Results: pb1.pair.com header.from=mtdowling@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mtdowling@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.200 as permitted sender) X-PHP-List-Original-Sender: mtdowling@gmail.com X-Host-Fingerprint: 209.85.216.200 mail-qy0-f200.google.com Received: from [209.85.216.200] ([209.85.216.200:49949] helo=mail-qy0-f200.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/E0-25187-A92220F4 for ; Mon, 02 Jan 2012 16:33:15 -0500 Received: by qcso15 with SMTP id o15so24212491qcs.11 for ; Mon, 02 Jan 2012 13:33:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.101.128.32 with SMTP id f32mr6668506ann.6.1325539992530; Mon, 02 Jan 2012 13:33:12 -0800 (PST) Message-ID: <001636c5c05f63f29104b59254b5@google.com> Date: Mon, 02 Jan 2012 21:33:12 +0000 To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001636c5c05f63f26c04b59254b2 Subject: stream_get_meta_data is missing filters From: mtdowling@gmail.com --001636c5c05f63f26c04b59254b2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes The docs state that the return value of the stream_get_meta_data function will contain a 'filters' key which contains an array of filters registered on a stream. I noticed that the 'filters' array wasn't being returned, so I took a look at the source. It looks like this is a known issue because the 'filters' code is commented out (in 5.3 trunk and 5.4): #if 0 /* TODO: needs updating for new filter API */ if (stream->filterhead) { php_stream_filter *filter; MAKE_STD_ZVAL(newval); array_init(newval); for (filter = stream->filterhead; filter != NULL; filter = filter->next) { add_next_index_string(newval, (char *)filter->fops->label, 1); } add_assoc_zval(return_value, "filters", newval); } #endif Does anyone know the status on updating this method for the new filter API? I don't see an open bug report, so I'd be happy to open one if needed. Thanks, Michael --001636c5c05f63f26c04b59254b2--