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 .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[env]
EXT_PHP_RS_ALLOWED_BINDINGS = "php_execute_script,sapi_send_headers,sapi_get_default_content_type,php_register_variable,SAPI_OPTION_NO_CHDIR"
3 changes: 1 addition & 2 deletions crates/php/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ path = "src/main.rs"
[dependencies]
bytes = "1.10.1"
hostname = "0.4.1"
ext-php-rs = { git = "https://github.com/platformatic/ext-php-rs.git" }
# ext-php-rs = { path = "../../../ext-php-rs" }
ext-php-rs = { version = "0.14.0", features = ["embed"] }
lang_handler = { path = "../lang_handler", features = ["napi"] }
libc = "0.2.171"
once_cell = "1.21.0"
Expand Down
5 changes: 3 additions & 2 deletions crates/php/src/sapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ use bytes::Buf;
use ext_php_rs::{
alloc::{efree, estrdup},
builders::SapiBuilder,
embed::SapiModule,
embed::{
ext_php_rs_sapi_per_thread_init, ext_php_rs_sapi_shutdown, ext_php_rs_sapi_startup, SapiModule,
},
// exception::register_error_observer,
ffi::{
ext_php_rs_sapi_per_thread_init, ext_php_rs_sapi_shutdown, ext_php_rs_sapi_startup,
php_module_shutdown, php_module_startup, php_register_variable, sapi_send_headers,
sapi_shutdown, sapi_startup, ZEND_RESULT_CODE_SUCCESS,
},
Expand Down
Loading