Doc #71638 [Opn->Csd]: [minor clarification] return value on fail of stream_filter_append()
| From: | tpunt@php.net | Date: | Sun, 21 Feb 2016 12:49:40 +0000 |
| Subject: | Doc #71638 [Opn->Csd]: [minor clarification] return value on fail of stream_filter_append() | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13202@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71638&edit=1
ID: 71638
Updated by: tpunt@php.net
Reported by: vike2000 at gmail dot com
Summary: [minor clarification] return value on fail of
stream_filter_append()
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: MacOS 10.6.8
PHP Version: Irrelevant
-Assigned To:
+Assigned To: tpunt
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2016-02-21 12:48:33] tpunt@php.net
Automatic comment from SVN on behalf of tpunt
Revision: http://svn.php.net/viewvc/?view=revision&revision=338619
Log: Resolve doc bug #71638
------------------------------------------------------------------------
[2016-02-20 17:43:18] vike2000 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.stream-filter-append
---
Page should include that the function only returns a resource on success and returns false on error
(still - regarding v5.2 change).
Regarding section "Return Values
Returns a resource which can be used to refer to this filter instance during a call to
stream_filter_remove()."
(I'm trying to follow instructions around documentation user notes.)
Test script:
---------------
var_dump(stream_filter_append(fopen('/dev/null','rb'),'null'));
/*
Same for all my versions:
PHP 5.3.29 with Suhosin-Patch (cli) (built: Oct 3 2015 20:34:12) (DEBUG)
PHP 5.4.32 (cli) (built: Oct 3 2015 20:40:05)
PHP 5.5.16 (cli) (built: Oct 3 2015 20:49:43)
PHP 5.6.0 (cli) (built: Jan 10 2016 22:08:51)
*/
// My real example was via mod_php v5.6 @ Apache v2.2 appending zlib.deflate to an https stream,
giving E_WARNING: stream_filter_append(): Filter failed to process pre-buffered data
Expected result:
----------------
false or resource
Actual result:
--------------
false
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71638&edit=1