Commit c3a1214
authored
ext/standard: Use posix_spawn_file_actions_addchdir when available (php#21553)
posix_spawn_file_actions_addchdir is part of POSIX now, so some OSes
(macOS at least) have started to deprecated the _np variant. Some
support both names (Solaris, NetBSD), others don't yet (FreeBSD).
Use the non-np variant when possible to avoid the deprecation warning on
macOS and other platforms in the future.
Fixes phpGH-215521 parent 358d9c5 commit c3a1214
2 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
| |||
1394 | 1401 | | |
1395 | 1402 | | |
1396 | 1403 | | |
1397 | | - | |
| 1404 | + | |
1398 | 1405 | | |
1399 | | - | |
| 1406 | + | |
1400 | 1407 | | |
1401 | 1408 | | |
1402 | 1409 | | |
| |||
0 commit comments