Mercurial > hg > cmmr2012-drupal-site
comparison vendor/zendframework/zend-diactoros/src/Stream.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | 5311817fb629 |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
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) { |