fix test without embed

This commit is contained in:
Joel Wurtz 2023-10-30 16:33:47 +01:00
parent a65282dd04
commit 51042e5310
No known key found for this signature in database
GPG Key ID: ED264D1967A51B0D

View File

@ -5,11 +5,13 @@ extern crate ext_php_rs;
use ext_php_rs::builders::SapiBuilder; use ext_php_rs::builders::SapiBuilder;
#[cfg(feature = "embed")] #[cfg(feature = "embed")]
use ext_php_rs::embed::{ext_php_rs_sapi_startup, Embed}; use ext_php_rs::embed::{ext_php_rs_sapi_startup, Embed};
#[cfg(feature = "embed")]
use ext_php_rs::ffi::{ use ext_php_rs::ffi::{
php_module_shutdown, php_module_startup, php_request_shutdown, php_request_startup, php_module_shutdown, php_module_startup, php_request_shutdown, php_request_startup,
sapi_shutdown, sapi_startup, ZEND_RESULT_CODE_SUCCESS, sapi_shutdown, sapi_startup, ZEND_RESULT_CODE_SUCCESS,
}; };
use ext_php_rs::prelude::*; use ext_php_rs::prelude::*;
#[cfg(feature = "embed")]
use ext_php_rs::zend::try_catch; use ext_php_rs::zend::try_catch;
#[test] #[test]