Commit f2e8474
committed
bug symfony#58195 [Process] Fix the removal of host-specific configuration when managing the ini settings in
This PR was submitted for the 7.1 branch but it was merged into the 6.4 branch instead.
Discussion
----------
[Process] Fix the removal of host-specific configuration when managing the ini settings in `PhpSubprocess`
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
`preg_match` can return the offset needed for `substr` in the next line, but without the flag it doesn't put the offset of the capturing group into `$matches[0][1]`
With the example php.ini the code breaks on execution
```ini
opcache.validate_timestamps = 0
[HOST=my.test.host]
opcache.validate_timestamps = 1
```
Commits
-------
1ef6bf7 PhpSubprocess: Add flag PREG_OFFSET_CAPTURE to preg_match to identify the offsetPhpSubprocess (M-arcus)1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
0 commit comments