Mercurial > hg > isophonics-drupal-site
comparison vendor/zendframework/zend-diactoros/src/Stream.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
328 $error = null; | 328 $error = null; |
329 $resource = $stream; | 329 $resource = $stream; |
330 | 330 |
331 if (is_string($stream)) { | 331 if (is_string($stream)) { |
332 set_error_handler(function ($e) use (&$error) { | 332 set_error_handler(function ($e) use (&$error) { |
333 if ($e !== E_WARNING) { | |
334 return; | |
335 } | |
336 | |
333 $error = $e; | 337 $error = $e; |
334 }, E_WARNING); | 338 }); |
335 $resource = fopen($stream, $mode); | 339 $resource = fopen($stream, $mode); |
336 restore_error_handler(); | 340 restore_error_handler(); |
337 } | 341 } |
338 | 342 |
339 if ($error) { | 343 if ($error) { |