|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-03-09 06:45 UTC] stas@php.net
[2015-03-09 06:45 UTC] stas@php.net
-Status: Open
+Status: Closed
[2015-03-09 06:45 UTC] stas@php.net
[2015-03-09 06:45 UTC] stas@php.net
[2015-03-09 09:25 UTC] laruence@php.net
[2015-03-09 09:25 UTC] laruence@php.net
[2016-07-20 11:39 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 23:00:02 2025 UTC |
Description: ------------ Throwing an exception in userland functions of stream wrappers is not correctly taken care of by the engine. Test script: --------------- class MyStream { public function stream_open() { return true; } public function stream_read() { throw new Exception('boo!'); return 42; } public function stream_eof() { return true; } } stream_wrapper_register("my", "MyStream"); $fp = fopen('my://foobar', 'r+'); fread($fp, 512); Expected result: ---------------- Fatal error: Uncaught exception 'Exception' ... Actual result: -------------- Warning: fread(): MyStream::stream_eof is not implemented! Assuming EOF in /tmp/streams.php on line 35 Fatal error: Uncaught exception 'Exception'...