Commit 9108a32
authored
Minor cleanups in Zend execution APIs (#10699)
* Remove always-false check in zend_lookup_class_ex()
This check is always false because of the undefined behaviour rule that
says a NULL pointer must never be dereferenced: we already dereference name
when checking the cache slot, before the NULL check. So the NULL may be
optimised away by the compiler. It looks like the code isn't even
supposed to work with name being NULL, so just remove the check.
* Remove always-true check in zend_fetch_static_property_address_ex()
* Simplify always-true conditions1 parent 9004725 commit 9108a32
3 files changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2749 | 2749 | | |
2750 | 2750 | | |
2751 | 2751 | | |
2752 | | - | |
| 2752 | + | |
2753 | 2753 | | |
2754 | 2754 | | |
2755 | 2755 | | |
| |||
3797 | 3797 | | |
3798 | 3798 | | |
3799 | 3799 | | |
3800 | | - | |
| 3800 | + | |
3801 | 3801 | | |
3802 | | - | |
| 3802 | + | |
3803 | 3803 | | |
3804 | 3804 | | |
3805 | 3805 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3365 | 3365 | | |
3366 | 3366 | | |
3367 | 3367 | | |
3368 | | - | |
3369 | | - | |
| 3368 | + | |
3370 | 3369 | | |
3371 | | - | |
3372 | | - | |
| 3370 | + | |
3373 | 3371 | | |
3374 | 3372 | | |
3375 | 3373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | | - | |
| 1118 | + | |
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
| |||
0 commit comments