pickleweb icon indicating copy to clipboard operation
pickleweb copied to clipboard

Tag version needs to be validated with composer.json

Open weltling opened this issue 10 years ago • 4 comments

Currently there's no validation of the tag with the version in the composer.json. This difference, besides confusing, would cause the versions compiled/packaged be different from what is shown on the pickleweb site or in phpinfo().

This interfere with the pickle issue https://github.com/FriendsOfPHP/pickle/issues/111 , so pickleweb could be using the pickle itself for the triple validation - tag, composer.json and the version in the header file (or any other way for different engines).

weltling avatar May 08 '15 17:05 weltling

We should remove the version from composer json and only use the tag.

Rmtools can add it so the binaries archive has this info.

pierrejoye avatar May 09 '15 11:05 pierrejoye

Yeah, but we could still use pickle to check the PHP_EXT_VERSION in the source and compare with the tag, no?

weltling avatar May 09 '15 12:05 weltling

Exactly, or better said we need both. Server and client side. Bad version matching must be rejected On May 9, 2015 7:29 PM, "Anatol Belski" [email protected] wrote:

Yeah, but we could still use pickle to check the PHP_EXT_VERSION in the source and compare with the tag, no?

— Reply to this email directly or view it on GitHub https://github.com/FriendsOfPHP/pickleweb/issues/40#issuecomment-100473781 .

pierrejoye avatar May 09 '15 16:05 pierrejoye

Check should still be added. Just in case someone puts it in composer.json. I will do it.

pierrejoye avatar May 15 '15 17:05 pierrejoye