Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: strict_types declaration must be the very first statement in the script in php-wasm run script on line 2 #52

Open
SjonHortensius opened this issue Aug 19, 2024 · 0 comments

Comments

@SjonHortensius
Copy link

SjonHortensius commented Aug 19, 2024

It seems the php.run() call passes through a slightly different argument than given - which I suspect is caused by this line:

https://github.com/seanmorris/php-wasm/blame/d3f8d93e8a1691dbf96d9e5825cee959a68fb136/source/PhpBase.js#L69

this can be reproduced by calling php.run('<?php declare(strict_types=1);')

This was originally reported as SjonHortensius/3v4l_org#21

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

No branches or pull requests

1 participant