-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit 53cb896
authored
Generated arginfo header files: remove empty zend_function_entry arrays (#15705)
When a class (or enum) has no methods, rather than using an array that only
contains `ZEND_FE_END`, use `NULL` for the functions. The implementation of
class registration for internal classes, `do_register_internal_class()` in
zend_API.c, already skips classes where the functions are `NULL`. By removing
these unneeded arrays, we can reduce the size of the header files, while also
removing an unneeded call to zend_register_functions() for each internal class
with no extra methods.1 parent 7dfbf4d commit 53cb896
File tree
48 files changed
+127
-591
lines changed- Zend
- build
- ext
- com_dotnet
- curl
- date
- dba
- dom
- enchant
- ffi
- ftp
- gd
- intl
- json
- ldap
- libxml
- mysqli
- odbc
- openssl
- pcntl
- pdo_dblib
- pdo_odbc
- pdo
- pgsql
- phar
- random
- reflection
- shmop
- simplexml
- snmp
- soap
- sockets
- sodium
- spl
- sqlite3
- standard
- sysvmsg
- sysvsem
- sysvshm
- xml
- zend_test
- zlib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
48 files changed
+127
-591
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3285 | 3285 |
| |
3286 | 3286 |
| |
3287 | 3287 |
| |
3288 | + | ||
3288 | 3289 |
| |
3289 | 3290 |
| |
3290 | 3291 |
| |
3291 | 3292 |
| |
3292 | - | ||
3293 | + | ||
3293 | 3294 |
| |
3294 | 3295 |
| |
3295 | 3296 |
| |
| |||
3299 | 3300 |
| |
3300 | 3301 |
| |
3301 | 3302 |
| |
3302 | - | ||
3303 | + | ||
3303 | 3304 |
| |
3304 | - | ||
3305 | + | ||
3305 | 3306 |
| |
3306 | 3307 |
| |
3307 | 3308 |
| |
| |||
5103 | 5104 |
| |
5104 | 5105 |
| |
5105 | 5106 |
| |
5106 | - | ||
5107 | - | ||
5108 | - | ||
5107 | + | ||
5109 | 5108 |
| |
5110 | 5109 |
| |
5111 | 5110 |
| |
| |||
5156 | 5155 |
| |
5157 | 5156 |
| |
5158 | 5157 |
| |
5158 | + | ||
5159 | + | ||
5160 | + | ||
5161 | + | ||
5162 | + | ||
5159 | 5163 |
| |
5160 | 5164 |
| |
5161 | 5165 |
| |
|
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments