hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

gmp_random is not implemented

Open afk11 opened this issue 11 years ago • 3 comments

I ran into this error on travis: Not sure what to make of it since it seems to be in the docs http://docs.hhvm.com/manual/en/function.gmp-random.php

Fatal error: gmp_random is not implemented yet. in /home/travis/build/afk11/bitcoin/src/Math/Gmp.php on line 84

$ php --version HipHop VM 3.4.0 (rel) Compiler: tags/HHVM-3.4.0-0-g817b3a07fc4e509ce15635dbc87778e5b3496663 Repo schema: 0e12aaa31fae66b5591f65603de50c9d62caafac Extension API: 20140829

afk11 avatar Dec 17 '14 14:12 afk11

For what it's worth: The docs can't detect that it wasn't implemented, because it is defined.

SiebelsTim avatar Dec 17 '14 16:12 SiebelsTim

This shouldn't be particularly difficult to add.

https://github.com/php/php-src/blob/665050787c18a5d09f1b6d1443efbad901b9ac0b/ext/gmp/gmp.c#L1775-L1792 https://github.com/php/php-src/blob/665050787c18a5d09f1b6d1443efbad901b9ac0b/ext/gmp/gmp.c#L1761-L1771

paulbiss avatar Sep 28 '16 23:09 paulbiss

Still true in 2025.

lexidor avatar Jul 03 '25 20:07 lexidor