Skip to content

Make basic example safe for non-interactive runs - #51

Merged
prateekbhujel merged 3 commits into
mainfrom
agent/basic-example-changelog
Aug 1, 2026
Merged

Make basic example safe for non-interactive runs#51
prateekbhujel merged 3 commits into
mainfrom
agent/basic-example-changelog

Conversation

@prateekbhujel

Copy link
Copy Markdown
Owner

Summary

  • make examples/basic.php skip raw-mode and secret-input demos when stdin is not a terminal
  • add PHPT coverage for the non-interactive basic example path
  • record the recent post-release maintenance in CHANGELOG.md

Validation

  • php -l examples/basic.php examples/streams.php examples/doctor.php examples/prompt.php
  • Composer 2.9.8 validate --strict --no-check-lock
  • git diff --check
  • XAMPP PHP 8.2 x86_64 build from /private/tmp with -Wall -Wextra
  • make test REPORT_EXIT_STATUS=1 NO_INTERACTION=1 TEST_PHP_EXECUTABLE=/Applications/XAMPP/xamppfiles/bin/php -> 34 total, 31 passed, 3 skipped, 0 failed
  • examples/basic.php run against the built extension in non-interactive mode

Closes #49
Closes #50

@prateekbhujel
prateekbhujel merged commit f6fcddb into main Aug 1, 2026
15 checks passed
@prateekbhujel
prateekbhujel deleted the agent/basic-example-changelog branch August 1, 2026 07:59
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.

Record post-release maintenance in the changelog Make the basic example safe in non-interactive runs

1 participant