|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-04-03 08:50 UTC] mike@php.net
-Status: Open
+Status: Not a bug
[2014-04-03 08:50 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
Description: ------------ The constant PSFS_ERR_FATAL used to indicate an error condition in a user stream filter has no effect on the return value of relevant stream functions, and there is no alternative way to detect these errors. Test script: --------------- <?php class FatalFilter extends php_user_filter { function filter($in, $out, &$consumed, $closing) { $bucket = stream_bucket_make_writeable($in); return PSFS_ERR_FATAL; } } stream_filter_register('fatal', 'FatalFilter'); $stream = fopen('php://memory', 'wb'); stream_filter_append($stream, 'fatal'); var_dump(fwrite($stream, 'foobar')); fclose($stream); Expected result: ---------------- bool(false) Actual result: -------------- int(0)