Skip to content

Php stdlib specs implementation - #2

Merged
PurHur merged 2 commits into
masterfrom
cursor/php-stdlib-specs-implementation-cca6
May 17, 2026
Merged

Php stdlib specs implementation#2
PurHur merged 2 commits into
masterfrom
cursor/php-stdlib-specs-implementation-cca6

Conversation

@PurHur

@PurHur PurHur commented May 17, 2026

Copy link
Copy Markdown
Owner

This pull request contains changes generated by a Cursor Cloud Agent

Open in Web Open in Cursor 

cursoragent and others added 2 commits May 17, 2026 06:05
Implement chr() for VM and JIT using __string__alloc and modular
byte reduction matching PHP 7 semantics. Register the builtin in the
standard extension module.

Add compliance specs for chr, is_string, and is_float (wrapping
existing type helpers). Extend stdlib_digest with an ord/chr
round-trip line.

Co-authored-by: PurHur <PurHur@users.noreply.github.com>
Composer 2 blocks plugins unless explicitly allowed; enable pre/plugin
so locked dev dependencies can install on current Composer versions.

Co-authored-by: PurHur <PurHur@users.noreply.github.com>
@PurHur
PurHur merged commit e5c4a29 into master May 17, 2026
This was referenced May 26, 2026
PurHur added a commit that referenced this pull request Aug 16, 2026
…31613)

Z_PARAM_STR soft-null DEP+coerce for class/procedural string params, and
match php-src empty-name ValueError ordinals (Argument #2 quirks).

Co-authored-by: PHP Compiler Ext — DOM & XML <agent@purhur.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur added a commit that referenced this pull request Aug 17, 2026
… (#31812)

Match php-src Z_PARAM_STR for \$value: null deprecates parameter #2 and stores "".

Co-authored-by: PurHur <PurHur@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur added a commit that referenced this pull request Aug 26, 2026
Peer of mb_substr_count/mb_strwidth: assertEncodingArgv for Argument #2 so non-literal encodings compile and match Zend under thin AOT.

Co-authored-by: PurHur <PurHur@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants