Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

经测试V1.1.2, V1.1.1结果有误, demo结果也不同 #10

Closed
mCloud opened this issue Aug 15, 2020 · 3 comments
Closed

经测试V1.1.2, V1.1.1结果有误, demo结果也不同 #10

mCloud opened this issue Aug 15, 2020 · 3 comments
Assignees
Labels
bug 和想象中样子有出入

Comments

@mCloud
Copy link

mCloud commented Aug 15, 2020

环境:
debian 7.8
PHP 5.4.45-0+deb7u11 (cli) (built: Aug 30 2017 01:07:33)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

下载release V1.1.2, V1.1.1 访问demo.php
计算结果均为: 183920f00e15a0433ee3a8fc90dd9ac164c4142ccf63ca189a8f645ec96ff8de
正确结果为: 66c7f0f462eeedd9d1f2d46bdc10e4e24167c4875cf2f7a2297da02b8f4ba8e0

下载部署V1.1 , 复制V1.1.2的demo.php 访问可以得到预期结果. 是否高版本引入了问题?

@mCloud mCloud added the bug 和想象中样子有出入 label Aug 15, 2020
@DongyunLee
Copy link
Owner

DongyunLee commented Aug 15, 2020

感谢测试!

经过本地测试,应该是5.5版本之前,unpack()函数只有两个参数,而在之后加了一个必填参数导致的。
应该已经在 #11 中修复。

可以试试最新的master分支中是否解决了这个问题:

composer require ch4o5/sm3-php dev-master

欢迎随时反馈~

@DongyunLee
Copy link
Owner

长时间没有回复,先关了

@DongyunLee
Copy link
Owner

v1.1.3 版本已发布,本问题已在新版本中解决,现在可直接通过 composer 进行更新。

短期内暂时不会有其他版本的更新和维护

感谢关注!

@DongyunLee DongyunLee reopened this Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 和想象中样子有出入
Projects
None yet
Development

No branches or pull requests

2 participants