Skip to content

Commit a6833e6

Browse files
committed
feat(types): union types, intersection, DNF #199
1 parent 40c425a commit a6833e6

File tree

37 files changed

+3258
-84
lines changed

37 files changed

+3258
-84
lines changed

allowed_bindings.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ bind! {
251251
_ZEND_IS_VARIADIC_BIT,
252252
_ZEND_SEND_MODE_SHIFT,
253253
_ZEND_TYPE_NULLABLE_BIT,
254+
_ZEND_TYPE_LIST_BIT,
255+
_ZEND_TYPE_UNION_BIT,
256+
_ZEND_TYPE_INTERSECTION_BIT,
257+
zend_type_list,
254258
ts_rsrc_id,
255259
_ZEND_TYPE_NAME_BIT,
256260
_ZEND_TYPE_LITERAL_NAME_BIT,

crates/cli/src/lib.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ impl Install {
225225
}
226226

227227
// Use atomic copy: copy to temp file in same directory, then rename.
228-
// This prevents race conditions where a partially-written extension could be loaded.
228+
// This prevents race conditions where a partially-written extension could be
229+
// loaded.
229230
let temp_ext_path = ext_dir.with_extension(format!(
230231
"{}.tmp.{}",
231232
ext_dir
@@ -239,15 +240,17 @@ impl Install {
239240
|| "Failed to copy extension from target directory to extension directory",
240241
)?;
241242

242-
// Rename is atomic on POSIX when source and destination are on the same filesystem
243+
// Rename is atomic on POSIX when source and destination are on the same
244+
// filesystem
243245
if let Err(e) = std::fs::rename(&temp_ext_path, &ext_dir) {
244246
// Clean up temp file on failure
245247
let _ = std::fs::remove_file(&temp_ext_path);
246248
return Err(e).with_context(|| "Failed to rename extension to final destination");
247249
}
248250

249-
// Smoke test: verify the extension loads correctly before enabling it in php.ini.
250-
// This prevents broken extensions from crashing PHP on startup.
251+
// Smoke test: verify the extension loads correctly before enabling it in
252+
// php.ini. This prevents broken extensions from crashing PHP on
253+
// startup.
251254
if !self.no_smoke_test {
252255
let smoke_test = Command::new("php")
253256
.arg("-d")

0 commit comments

Comments
 (0)