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

【优化】PHP 5.3 适配,并整理相关代码的过长代码行 #24

Merged
merged 1 commit into from Jul 19, 2016

Conversation

Projects
None yet
2 participants
@TechQuery
Copy link
Contributor

TechQuery commented Jul 1, 2016

4个月前,我在开发 EasyWiki 时需要在 PHP 5.3(官方仍支持的最旧版本)运行,就自行修改了源代码。

而且,我觉得大多数 中小网站的服务端环境 都升级很慢,兼容老语法还是很有价值的,就把这个修改版分享出来~

希望 SegmentFault 的大牛们能采纳!

@joyqi

This comment has been minimized.

Copy link
Member

joyqi commented Jul 19, 2016

有些private方法为啥要改成public的

@TechQuery

This comment has been minimized.

Copy link
Contributor Author

TechQuery commented Jul 19, 2016

@joyqi
PHP 5.3 虽然支持 匿名函数/闭包,但传入的 $this 只能引用它的 public 成员……

@joyqi joyqi merged commit bfdf081 into SegmentFault:master Jul 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment