When calling Ramsey\Uuid\Converter\Time\DegradedTimeConverter::calculateTime on a 32-bit system, Moontoast\Math\BigNumber must be present.

安装报错 · cyx_20180320 · 于 1年前 发布 · 2205 次阅读

共收到 8 条回复
Terry#11年前 1 个赞

这个问题是,Ramsey\Uuid库包在32位操作系统造成的问题。

google找了下,找到了资料:https://github.com/ramsey/uuid/issues/153

This is correct. Some of the math involved when dealing with UUIDs is impossible on 32-bit systems. This is because a UUID is an unsigned 128-bit integer, and the time portion of a version 1 UUID is an unsigned 64-bit number. PHP on a 32-bit system only supports signed integers up to 2147483647.

Installing the moontoast/math library should fix your issue:

composer require moontoast/math

Thanks!

您试试可以解决不?composer安装下库包

电脑是64位的哦

@Terry #1楼 电脑是64位的哦

Terry#41年前 0 个赞

@cyx_20180320 [[[[[#3楼](#comment3)](#comment3)](#comment3)](#comment3)](#comment3) 出了这个问题,google一搜索就出来答案,要点也和你说了,是因为一个库包报错

如何解决也给你链接了,你自己不去详细看完

然后就闭着眼,问问问问问!!!!

把这个资料看完:https://github.com/ramsey/uuid/issues/153 ,自己解决

英文说的很详细,自己不去看:

I must have misunderstood. I thought you were running PHP on a 32-but system. You’re on a 64-bit system?

The exception message is badly worded, then, but it’s still correct (sort of). PHP only supports signed integers, but the time field of a UUID is an unsigned 64-bit integer, so it’s double the max number allowed by a signed 64-bit integer and overflows on PHP. That’s why moontoast/math is still needed.

I’ll update the exception message so that it’s less confusing.

厌烦这类发帖者,发帖提问,先带着脑子,先自己尝试解决。

Terry#51年前 0 个赞

这个报错,百度搜索都一堆资料:

https://segmentfault.com/q/1010000013847105

zhaojf#629天前 0 个赞

我在查看演示:69780892-daa4-11e9-8af4-1d2c5b8714fb --> 1d2 c5b 871 4fb 我在看演示时候 ,我箭头的这十二个字符是变得,为什么偏偏在我点击【立即下载】后 ,这十二个字符就不随机改变了呢 ??????

zhaojf#729天前 0 个赞

使用PHP生成通用唯一识别码就是后十二位字符不变

Fecmall#829天前 0 个赞

看不懂

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics