Category
bootstrap
Milestone
M5 (vendor prelink triage) — parent #1492. Child of #3037 (Runtime stderr); focused on vendor script UX.
Problem
php script/bootstrap-vendor-objects.php --compile prints opaque failures:
FAIL ircmaxell/php-types: compile exit 1 — helloworld_compile_smoke: native emit failed at phase=parseAndCompile
tail:
helloworld_compile_smoke: parseAndCompile returned null (parser/CFG spine)
Zend on the same bundle immediately shows the actionable line:
parseAndCompile failure: … Unknown type declaration found: PHPTypes\Type
RuntimeException in vendor/ircmaxell/php-types/lib/PHPTypes/Type.php:419
Implementers must run a second Zend -l per package (#3035–#3041) — slows M5 vendor wave.
php-src reference
N/A (bootstrap tooling). Parity target: Zend CLI surfaces file:line + exception message on compile failure.
Repro (failure today)
./script/docker-exec.sh --sync-back build/selfhost-native-compile-driver -- bash -lc '
make bootstrap-selfhost-driver-smoke
PHP_COMPILER_VENDOR_PRELINK=1 php script/bootstrap-vendor-objects.php --compile
' 2>&1 | head -25
Expected after fix: first FAIL line includes PHPTypes/Type.php:419 (or equivalent) without manual -l.
# Secondary check: log scrape
grep -E 'Type\.php:|parseAndCompile failure:' build/bootstrap-vendor/*.log | head -3
Scope
| Path |
Work |
script/bootstrap-vendor-objects.php |
On FAIL, grep build/bootstrap-vendor/*.log for parseAndCompile failure: / \.php:[0-9]+ and echo in FAIL line |
test/selfhost/compiler_helloworld_smoke/helloworld_compile_smoke.php |
Propagate last Runtime/PHPTypes message before null return (#3037) |
lib/Runtime.php |
Ensure peekLastParseFailure() text copied to stderr used by smoke script |
Done when
Links
Category
bootstrapMilestone
M5 (vendor prelink triage) — parent #1492. Child of #3037 (Runtime stderr); focused on vendor script UX.
Problem
php script/bootstrap-vendor-objects.php --compileprints opaque failures:Zend on the same bundle immediately shows the actionable line:
Implementers must run a second Zend
-lper package (#3035–#3041) — slows M5 vendor wave.php-src reference
N/A (bootstrap tooling). Parity target: Zend CLI surfaces file:line + exception message on compile failure.
Repro (failure today)
Expected after fix: first
FAILline includesPHPTypes/Type.php:419(or equivalent) without manual-l.Scope
script/bootstrap-vendor-objects.phpbuild/bootstrap-vendor/*.logforparseAndCompile failure:/\.php:[0-9]+and echo in FAIL linetest/selfhost/compiler_helloworld_smoke/helloworld_compile_smoke.phplib/Runtime.phppeekLastParseFailure()text copied to stderr used by smoke scriptDone when
FAILline includes the Zend-equivalentUnknown type declaration found: …andpath/to/File.php:linewithout manual-lbuild/bootstrap-vendor/remain for full stack tracesphp script/bootstrap-inventory.php --checkstill green (no regression)Links
MOST IMPORTANT