Closed cwhite92 closed 10 months ago
We don't want to make the adjustment in the property here. We always define the version in source code for our packages without it: https://github.com/laravel/cashier-paddle/blob/c3b70784918ebecb12b28cda1b04aabe39e0ca8b/src/Cashier.php#L16
The correct fix is to adjust this in the place where it's used.
Currently re-working on this. Thank you for this report.
I was experimenting with creating a Docker image to run a FrankenPHP web server with Octane. I made the following
Dockerfile
:When I started the container it immediately exited, and when inspecting the logs I found that Octane was attempting to download the FrankenPHP binary despite it already existing in the Docker image at
/usr/local/bin/frankenphp
:After some debugging I found that the version_compare() on this line might not be working the way we think. The frankenphp binary returns
v1.0.1
as its version and it's being compared to1.0.0
without thev
. As you can see herev1.0.1 >= 1.0.0
returns false, and causes Octane to re-download the binary: https://3v4l.org/uWjgXAfter changing
$requiredFrankenPhpVersion
tov1.0.1
in my local files and starting the container again, Octane doesn't try to re-download the frankenphp binary and the container runs successfully.