PHP serialize() ― 规范 [英] PHP serialize() ― specification

查看:71
本文介绍了PHP serialize() ― 规范的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找有关 PHP serialize() 函数如何工作的规范或确切描述.我能找到的关于该主题的所有内容是手册中的评论.

I am searching for the specification or an exact description about how the PHP serialize() function exactly works. All I could find for that topic is that comment in the manual.

有没有关于 php 如何实现这一点的更详细的描述?

Is there anywhere out there a more detailed description about how php implements this?

推荐答案

要真正了解 PHP 如何处理序列化字符串,需要按照 Pekka 웃 在评论中的建议深入挖掘源代码.

To truly know how PHP handles serialized strings, one would need to dig in the sourcecode as suggested by Pekka 웃 in the comments.

尝试从以下位置开始:http://lxr.php.net/search?q=PHP_FUNCTION+serialize&project=PHP_5_4 这提供了一种搜索源的便捷方式.

Try starting at: http://lxr.php.net/search?q=PHP_FUNCTION+serialize&project=PHP_5_4 which gives a convenient way to search the sources.

此链接来自http://nikic.github.io/2012/03/16/Understanding-PHPs-internal-function-definitions.html 解释了如何在 php 源代码中找到特定的函数定义.

This link comes from http://nikic.github.io/2012/03/16/Understanding-PHPs-internal-function-definitions.html which explains how to find specific function definitions in the php source.

祝你好运!

这篇关于PHP serialize() ― 规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆