Skip to content

tree: use zend_string API when possible - #24330

Merged
Girgias merged 1 commit into
php:masterfrom
Girgias:2026-10-tree-zstr_api
Oct 14, 2026
Merged

Girgias merged 1 commit into
php:masterfrom
Girgias:2026-10-tree-zstr_api

Conversation

@Girgias

@Girgias Girgias commented Oct 14, 2026

Copy link
Copy Markdown
Member

No description provided.

@Girgias
Girgias force-pushed the 2026-10-tree-zstr_api branch from 059d0df to 7bc2a0b Compare October 14, 2026 15:25
@Girgias
Girgias marked this pull request as ready for review October 14, 2026 19:11
*(FB_BOOLEAN*)var->sqldata = (dval != 0) ? FB_TRUE : FB_FALSE;
break;
default:
if (!zend_binary_strncasecmp(Z_STRVAL_P(parameter), Z_STRLEN_P(parameter), "true", 4, 4)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually a behaviour change: TRUEEEE was previously accepted (unlikely to occur in code), and TRUE too (more likely). Now none of them are accepted anymore. Probably fine.
(Same below)

Though I will note that 1 is accepted as numeric, and TRUE isn't accepted as a boolean; which is weird.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I mean that's PHP numeric string semantics effectively. 1 is accepted, but TRUE was never accepted. So weird.

@Girgias
Girgias merged commit 1439349 into php:master Oct 14, 2026
18 checks passed
@Girgias
Girgias deleted the 2026-10-tree-zstr_api branch October 14, 2026 21:40
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.

2 participants