Commit 67135cb
authored
gen_stub: Conditionally include zend_attributes.h to arginfo based on usage (#21570)
Headers required by the generated code (zend_attributes.h, zend_constants.h, zend_enum.h) are collected during generation and emitted as includes at the top of the arginfo file, with the same preprocessor conditions and PHP version guards as the code that needs them.
Removes the manual zend_attributes.h and zend_enum.h includes from sources that only needed them for the arginfo file they include.1 parent 0a42300 commit 67135cb
105 files changed
Lines changed: 300 additions & 54 deletions
File tree
- Zend
- build
- ext
- calendar
- com_dotnet
- curl
- date
- dba
- dl_test
- dom
- enchant
- exif
- fileinfo
- filter
- ftp
- gd
- gmp
- hash
- iconv
- intl
- collator
- common
- formatter
- json
- ldap
- libxml
- mbstring
- mysqli
- odbc
- openssl
- pcntl
- pcre
- pdo_odbc
- pdo_pgsql
- pdo
- pgsql
- posix
- random
- readline
- reflection
- session
- shmop
- snmp
- soap
- sockets
- sodium
- spl
- sqlite3
- standard
- sysvmsg
- tidy
- tokenizer
- uri
- xml
- xsl
- zend_test
- zip
- zlib
- main
- streams
- sapi/phpdbg
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
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.
Large diffs are not rendered by default.
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 | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments