Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions builtin-functions/kphp-light/stdlib/system-functions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ function escapeshellcmd($cmd ::: string): string;

function exec($command ::: string, &$output ::: mixed = [], int &$result_code = TODO): string|false;

function extension_loaded(string $extension): bool;

// === UNSUPPORTED ===

/** @kphp-extern-func-info stub generation-required */
Expand Down
4 changes: 4 additions & 0 deletions runtime-common/stdlib/system/system-functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
string f$escapeshellarg(const string& arg) noexcept;

string f$escapeshellcmd(const string& cmd) noexcept;

inline bool f$extension_loaded(const string& /*extension*/) noexcept {
return true;
}
4 changes: 0 additions & 4 deletions runtime/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2512,7 +2512,3 @@ int64_t f$numa_get_bound_node() {
}
return numa.get_worker_numa_node(logname_id);
}

bool f$extension_loaded(const string& /*extension*/) {
return true;
}
2 changes: 0 additions & 2 deletions runtime/interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,3 @@ inline void f$kphp_extended_instance_cache_metrics_init(F&& callback) {
}

int64_t f$numa_get_bound_node();

bool f$extension_loaded(const string& extension);
Loading