php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/img_galeri/2r1asasas/root/opt/php-7.0.1/ext/standard/tests/streams/ |
| files >> //var/www/html/img_galeri/2r1asasas/root/opt/php-7.0.1/ext/standard/tests/streams/bug67626.phpt |
--TEST--
Bug #67626: Exceptions not properly handled in user stream handlers
--FILE--
<?php
class MyStream
{
public function stream_open() { return true; }
public function stream_read()
{
throw new Exception('stream_read_exception');
return 'read';
}
public function stream_eof()
{
return true;
}
public function stream_write()
{
throw new Exception('stream_write_exception');
return 42;
}
}
stream_wrapper_register("my", "MyStream");
$fp = fopen('my://foobar', 'r+');
try {
fread($fp, 42);
} catch (Exception $e) {
echo $e->getMessage();
}
echo "\n";
try {
fwrite($fp, 'foobar');
} catch (Exception $e) {
echo $e->getMessage();
}
?>
--EXPECTF--
stream_read_exception
stream_write_exception
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`