Skip to content

Commit 5ee907d

Browse files
committed
Merge remote-tracking branch 'origin/master' into sapi
2 parents 411ee6c + 5de7c7f commit 5ee907d

29 files changed

+2019
-284
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest, macos-latest, windows-latest]
18-
php: ["8.0", "8.1", "8.2"]
18+
php: ["8.0", "8.1", "8.2", "8.3"]
1919
rust: [stable, nightly]
20-
clang: ["14"]
20+
clang: ["15", "17"]
2121
phpts: [ts, nts]
2222
exclude:
2323
# ext-php-rs requires nightly Rust when on Windows.
@@ -28,6 +28,12 @@ jobs:
2828
phpts: ts
2929
- os: ubuntu-latest
3030
phpts: ts
31+
- os: macos-latest
32+
clang: "17"
33+
- os: ubuntu-latest
34+
clang: "15"
35+
- os: windows-latest
36+
clang: "15"
3137
env:
3238
CARGO_TERM_COLOR: always
3339
steps:

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix:
1717
os: ["ubuntu-latest"]
1818
php: ["8.2"]
19-
clang: ["14"]
19+
clang: ["17"]
2020
mdbook: ["latest"]
2121
steps:
2222
- name: Checkout code

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repository = "https://github.com/davidcole1340/ext-php-rs"
55
homepage = "https://github.com/davidcole1340/ext-php-rs"
66
license = "MIT OR Apache-2.0"
77
keywords = ["php", "ffi", "zend"]
8-
version = "0.10.3"
8+
version = "0.10.5"
99
authors = ["David Cole <[email protected]>"]
1010
edition = "2018"
1111
categories = ["api-bindings"]

allowed_bindings.rs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ bind! {
2626
_efree,
2727
_emalloc,
2828
_zend_executor_globals,
29+
_sapi_globals_struct,
30+
_sapi_module_struct,
2931
_zend_expected_type,
3032
_zend_expected_type_Z_EXPECTED_ARRAY,
3133
_zend_expected_type_Z_EXPECTED_BOOL,
@@ -110,6 +112,7 @@ bind! {
110112
zend_string,
111113
zend_string_init_interned,
112114
zend_throw_exception_ex,
115+
zend_throw_exception_object,
113116
zend_type,
114117
zend_value,
115118
zend_wrong_parameters_count_error,
@@ -141,6 +144,7 @@ bind! {
141144
IS_CONSTANT_AST_EX,
142145
IS_DOUBLE,
143146
IS_FALSE,
147+
IS_INDIRECT,
144148
IS_INTERNED_STRING_EX,
145149
IS_LONG,
146150
IS_MIXED,
@@ -241,6 +245,7 @@ bind! {
241245
zend_class_serialize_deny,
242246
zend_class_unserialize_deny,
243247
zend_executor_globals,
248+
sapi_module_struct,
244249
zend_objects_store_del,
245250
zend_hash_move_forward_ex,
246251
zend_hash_get_current_key_type_ex,
@@ -251,10 +256,39 @@ bind! {
251256
gc_possible_root,
252257
ZEND_ACC_NOT_SERIALIZABLE,
253258
executor_globals,
259+
php_core_globals,
260+
core_globals,
261+
sapi_globals_struct,
262+
sapi_globals,
263+
sapi_module,
254264
php_printf,
255265
__zend_malloc,
256266
tsrm_get_ls_cache,
257267
executor_globals_offset,
268+
core_globals_offset,
269+
sapi_globals_offset,
270+
php_file_globals,
271+
file_globals,
272+
file_globals_id,
273+
TRACK_VARS_POST,
274+
TRACK_VARS_GET,
275+
TRACK_VARS_COOKIE,
276+
TRACK_VARS_SERVER,
277+
TRACK_VARS_ENV,
278+
TRACK_VARS_FILES,
279+
TRACK_VARS_REQUEST,
280+
sapi_request_info,
281+
sapi_header_struct,
282+
zend_is_auto_global,
283+
zend_llist_get_next_ex,
284+
zend_llist_get_prev_ex,
285+
php_register_url_stream_wrapper,
286+
php_stream_locate_url_wrapper,
287+
php_unregister_url_stream_wrapper,
288+
php_unregister_url_stream_wrapper_volatile,
289+
php_register_url_stream_wrapper_volatile,
290+
php_stream_wrapper,
291+
php_stream_stdio_ops,
258292
zend_atomic_bool_store,
259293
zend_interrupt_function,
260294
zend_eval_string,

build.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use bindgen::RustTarget;
1616
use impl_::Provider;
1717

1818
const MIN_PHP_API_VER: u32 = 20200930;
19-
const MAX_PHP_API_VER: u32 = 20220829;
19+
const MAX_PHP_API_VER: u32 = 20230831;
2020

2121
pub trait PHPProvider<'a>: Sized {
2222
/// Create a new PHP provider.
@@ -228,6 +228,8 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {
228228

229229
const PHP_82_API_VER: u32 = 20220829;
230230

231+
const PHP_83_API_VER: u32 = 20230831;
232+
231233
println!("cargo:rustc-cfg=php80");
232234

233235
if (PHP_81_API_VER..PHP_82_API_VER).contains(&version) {
@@ -238,6 +240,10 @@ fn check_php_version(info: &PHPInfo) -> Result<()> {
238240
println!("cargo:rustc-cfg=php82");
239241
}
240242

243+
if version >= PHP_83_API_VER {
244+
println!("cargo:rustc-cfg=php83");
245+
}
246+
241247
Ok(())
242248
}
243249

0 commit comments

Comments
 (0)