Skip to content

Zend: applied fixers to improve test robustness (8/8) - #23316

Open
NickSdot wants to merge 1 commit into
php:masterfrom
NickSdot:test/hardening/zend-8
Open

Zend: applied fixers to improve test robustness (8/8)#23316
NickSdot wants to merge 1 commit into
php:masterfrom
NickSdot:test/hardening/zend-8

Conversation

@NickSdot

Copy link
Copy Markdown
Contributor

Asserts error class; extracted from: #22799.

Files with style-only changed were manually reverted.
Split in eight PRs to make reviews easier to digest.

@NickSdot NickSdot changed the title Zend: applied fixers to improve test robustness (part 8/8) Zend: applied fixers to improve test robustness (8/8) Aug 16, 2026
timsurrealedu added a commit to timsurrealedu/php-src that referenced this pull request Aug 18, 2026
Address PR php#23343 review feedback (NickSdot) and CI failures:

- Replace hardcoded anonymous-class name expectation leaking the local
  build path (`string(106) "class@anonymous%0/home/timsurreal/...types.inc:9$1"`)
  with the canonical EXPECTF pattern `string(%d) "class@anonymous%s"`,
  matching the convention used by neighboring ZPP tests. The previous
  form baked in the author's local path and byte length, failing on all
  CI platforms. Affects: array_ht_or_str, str_or_long, str, zval,
  string_param (strict + weak).
- Replace `PHP_EOL` with `"\n"` in assertion echo lines across all added
  test files. PHP_EOL is "\r\n" on Windows, a portability hazard per
  phpGH-23316 and phpGH-22799.

All 59 Zend/tests/zpp tests pass locally with zend_test enabled.

Co-Authored-By: Claude <noreply@anthropic.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.

1 participant