Skip to content

Commit

Permalink
move error_reporting functions
Browse files Browse the repository at this point in the history
  • Loading branch information
astrophysik committed Feb 28, 2025
1 parent 07ee2df commit 725f3e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
10 changes: 10 additions & 0 deletions runtime-light/stdlib/system/system-functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ inline array<array<string>> f$debug_backtrace() noexcept {
return {};
}

inline int64_t f$error_reporting([[maybe_unused]] int64_t level) noexcept {
php_warning("called stub error_reporting");
return 0;
}

inline int64_t f$error_reporting() noexcept {
php_warning("called stub error_reporting");
return 0;
}

inline Optional<string> f$exec([[maybe_unused]] const string &command) noexcept {
php_critical_error("call to unsupported function");
}
Expand Down
19 changes: 0 additions & 19 deletions runtime-light/utils/php-warning.h

This file was deleted.

0 comments on commit 725f3e3

Please sign in to comment.