aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/error_handler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util/error_handler.rs')
-rw-r--r--crates/shirabe/src/util/error_handler.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/shirabe/src/util/error_handler.rs b/crates/shirabe/src/util/error_handler.rs
index b9210fc..263d80c 100644
--- a/crates/shirabe/src/util/error_handler.rs
+++ b/crates/shirabe/src/util/error_handler.rs
@@ -4,8 +4,8 @@ use crate::io::IOInterface;
use crate::io::IOInterfaceImmutable;
use shirabe_php_shim::{
E_ALL, E_DEPRECATED, E_USER_DEPRECATED, E_USER_WARNING, E_WARNING, ErrorException, PHP_EOL,
- PhpMixed, STDERR, debug_backtrace, error_reporting, filter_var_boolean, ini_get, is_resource,
- set_error_handler,
+ PhpMixed, STDERR, debug_backtrace, error_reporting, filter_var_boolean, ini_get,
+ is_resource_value, set_error_handler,
};
use std::cell::{Cell, RefCell};
use std::rc::Rc;
@@ -126,11 +126,11 @@ impl ErrorHandler {
}
if output_even_without_io {
- if is_resource(&PhpMixed::Int(STDERR)) {
+ if is_resource_value(&STDERR) {
shirabe_php_shim::fwrite(
- PhpMixed::Int(STDERR),
+ &STDERR,
&format!("Warning: {}{}", message, PHP_EOL),
- -1,
+ None,
);
} else {
print!("Warning: {}{}", message, PHP_EOL);