You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP 8.0 and above versions have builds with AddressSanitizer (ASAN) and UndefinedBehaviorSanitizer (UBSan) enabled. These builds are useful for detecting memory issues.
148
+
149
+
To install an ASAN build:
150
+
151
+
```bash
152
+
./install.sh 8.4 asan
153
+
```
154
+
155
+
You can combine ASAN with other options:
156
+
157
+
```bash
158
+
# ASAN + Thread Safe
159
+
./install.sh 8.4 zts asan
160
+
161
+
# ASAN + Debug symbols
162
+
./install.sh 8.4 debug asan
163
+
```
164
+
165
+
**Notes:**
166
+
167
+
- ASAN builds are only available for PHP 8.0 and above.
168
+
- Running PHP with ASAN will be slower than regular builds due to the instrumentation overhead.
169
+
- You can configure ASAN behavior using the `ASAN_OPTIONS` environment variable:
The following releases have `nts` and `zts` builds for the following PHP versions along with builds with and without debugging symbols.
200
+
The following releases have `nts` and `zts` builds for the following PHP versions along with builds with and without debugging symbols. PHP 8.0+ versions also include AddressSanitizer (ASAN) builds for memory error detection.
0 commit comments