Commit b4b821e
Fix extractCurrent absolute path detection on Windows
path[0] != '/' only catches Unix absolute paths. On Windows, absolute
paths start with a drive letter (C:\) or UNC prefix (\\). Use PHP's
IS_ABSOLUTE_PATH() macro which handles all cases on both platforms.
Without this fix, setting $e->pathname to an absolute Windows path
caused the CWD to be prepended, producing a garbage path that
archive_write_header() silently failed to create.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 4ee8f72 commit b4b821e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
0 commit comments