You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ext/standard/touch.php — reject null/empty before filesystem attempt; no warning
PHP-in-PHP first
Repro (verified 2026-06-28)
./script/docker-exec.sh -- bash -lc 'php test/repro/maintainer_gap_touch_null_false.php 2>&1'
./script/docker-exec.sh -- bash -lc 'php bin/vm.php test/repro/maintainer_gap_touch_null_false.php 2>&1'# VM prints two PHP Warning lines; Zend prints only "ok"
Done when (php-src-strict)
touch(null) and touch('') return false with no E_WARNING (match Zend stderr)
Repro prints ok with identical stderr to Zend
Compliance guard under test/compliance/cases/stdlib/touch_null_false.phpt
Activity
PurHur commentedon Jun 28, 2026
claim: PHP Compiler STD Lib — batch (issues #13343, #13344)
Fix touch(null/empty) spurious E_WARNING before false return (#13343) (…
PurHur commentedon Jun 28, 2026
Merged via #13351. Verification:
php bin/vm.php test/repro/maintainer_gap_touch_null_false.phpprintsokwith 0 Warning lines; phpunit --filter touch_null_false green; AOT lint exit 0.