laruence / yac

A fast, lock-free, shared memory user data cache for PHP
Other
824 stars 198 forks source link

#include "ext/standard/php_smart_str.h" #63

Closed ice6 closed 4 years ago

ice6 commented 8 years ago

php7下尝试ENABLE_MSGPACK,然后报ext/standard/php_smart_str.h file not found错误。请问是不是php7默认的序列化/反序列化效率大增,已经没有enable msgpack的必要了?

laruence commented 8 years ago

如果是PHP7, 就用yar php7分支的代码, 不要用master分支的代码

ice6 commented 8 years ago

@laruence 我的环境是php7.0.5,使用phpbrew安装yac 2.0.0这个版本。我看了https://github.com/laruence/yac/blob/php7/serializer/msgpack.c 这个文件 和 https://github.com/laruence/yac/blob/master/serializer/msgpack.c 这个文件,里面都有这行代码: #include "ext/standard/php_smart_str.h",这行代码报错,所以是不是我少安装什么包了?

laruence commented 8 years ago

hmm, 那有可能是bug, 稍微晚点我看下...

ice6 commented 8 years ago

@laruence 多谢,辛苦了。