User tests: Successful: Unsuccessful:
Give this exection: RuntimeException: Sodium_compat produces incorrect results on systems that do not support 64-bit integers. Please upgrade to PHP 7 or newer for Windows x64 support.
https://ci.appveyor.com/project/joomla/joomla-cms/build/1.0.8484/job/vlv1htg6ro5b6aue
I have marked the test as skipped.
Lets see that appveyor runs
tests passes
tests fail with the RuntimeException above.
Maybe some note that Sodium_compat does not work on that systems? cc: @mbabker
Category | ⇒ | Unit Tests |
Status | New | ⇒ | Pending |
Labels |
Added:
?
?
|
OK, one more thing now. As is, the check will run regardless of the environment. Do the C extensions (either the PECL version or what's merged to PHP core) have this same limitation? If not, we'll need to expand our checks.
// If neither the `libsodium` (PECL 1.x) or `sodium` (PHP 7.2+ or PECL 2.x) extensions are available and this PHP build does not support 64-bit integers, we cannot run these tests
if (!extension_loaded('libsodium') && !extension_loaded('sodium') && PHP_INT_SIZE === 4) {
$this->markTestSkipped('Cannot run tests on this environment due to not having the sodium PHP extension and not running a x64 PHP build');
}
hmm i can't test this myself but given that:
This test works fine while using the libsodium extension, but fails with your awesome compat library.
I guess it is working using the libsodium extension?
I guess it is working using the libsodium extension?
That's what it sounded like to me too.
Title |
|
Looks like appveyor is happy now with me
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-08-17 20:36:04 |
Closed_By | ⇒ | mbabker |
Thanks.
Just so everyone is aware, sodium_compat 1.2 will not have this limitation. 32-bit support is actively being worked on: paragonie/sodium_compat#47
Thanks for the update. I think we can revert that PR when 1.2 is merge into the core.
sodium_compat 1.2 is now available
It's not even PHP 5.x that's the issue in general, it's the lack of 64 bit support. See paragonie/sodium_compat#38 for context. Also, it seems non-Windows builds can be affected.
So the best check is going to be for
PHP_INT_SIZE === 4
it seems.