-
Notifications
You must be signed in to change notification settings - Fork 783
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
PHP 7.3 v2 Specialization #1110
PHP 7.3 v2 Specialization #1110
Conversation
Hi @AlbertoLopezBenito Thanks for this PR! I've finished the review and think it's almost in good shaper, however, after some tests I have couple questions want to confirm:
I tried with the following error source code (no
If there is any syntax errors in source code, for example missing
It would be great if there is a simple example in Thanks again for your work. |
Hi @life1347 Related to
PHP renders the code and will execute the parts with Thanks for your review! |
Looks like there is error in php server. Use example to test, and function works for the first time. Then, it crashed for the second time. Following is test logs.
|
environments/php7/server.php
Outdated
return new Response(500, [], $codePath . ' - ' . $throwable->getMessage()); | ||
} | ||
|
||
require $codePath; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's the root cause because server requires user function twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add a flag to not require again if we already did that before. Or, any better suggestion?
How about do "require" when when specialize? So that we don't need extra flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After moving require
to specialize stage it works perfectly. Once this problem is addressed then we can merge it! 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@life1347 Fixed! I changed require
to require_once
. This prevents that behavior :)
Thanks for all your works @AlbertoLopezBenito , merged! 🎉 💯 🥇 |
Great job and thanks a lot @AlbertoLopezBenito 🎉 |
* Added support for PHP 7.3 v2 Specialization * Add builder dockerfile for PHP7 * Support mcrypt in PHP 7.3 use zap for logging Signed-off-by: Jon Carl <grounded042@icloud.com> update glide deps Signed-off-by: Jon Carl <grounded042@icloud.com> add missing logger Signed-off-by: Jon Carl <grounded042@icloud.com> fixes based on PR feedback Signed-off-by: Jon Carl <grounded042@icloud.com> fix all imports to be three paragraph Signed-off-by: Jon Carl <grounded042@icloud.com> fix log from pr merged into master Signed-off-by: Jon Carl <grounded042@icloud.com>
Noticed in #807
This PR providers support for the v2 specialization for PHP. I based it off the python package to do it.
Features added:
ZendServer
usage (deprecated)NOTE: Fission v1 is still working, all changes are backward compatible
This change is