Skip to content

main: change some PHP globals to zend_string* and uint32_t#22814

Open
Girgias wants to merge 6 commits into
php:masterfrom
Girgias:2026-07-php_globals_zstr_conversion
Open

main: change some PHP globals to zend_string* and uint32_t#22814
Girgias wants to merge 6 commits into
php:masterfrom
Girgias:2026-07-php_globals_zstr_conversion

Conversation

@Girgias

@Girgias Girgias commented Jul 19, 2026

Copy link
Copy Markdown
Member

No description provided.

Girgias added 6 commits July 20, 2026 10:14
As this is the expected type for lineno everywhere else in the engine
This remove a strlen() computation.

While at it clarify path concatenation code by using the zend_string_concat{2|3} APIs rather than a memcpy and strncpy calls
Allows us to convert a strcmp() call to zend_string_equals_literal() which is less confusing
@Girgias
Girgias force-pushed the 2026-07-php_globals_zstr_conversion branch from 9cc5fe0 to 41e2f2a Compare July 20, 2026 09:14
@Girgias
Girgias requested a review from TimWolla July 20, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant