### 运行环境 1. `PHP >= 5.4` 然而如果你的 `PHP` 版本小于 `7.1`,这段代码还是跑不了,会报`PHP Fatal error: Cannot access empty property`,要将以下语句移除才能运行起来 ```text null => '我是null', $prop = null; var_dump($dynamicVar->$prop); ``` 我猜测应该是 `PHP 7.1` 加强了对 `nullable` `void` 的支持,所以导致了属性可以为 `null` 的诡异写法。 ```php $value) { $this->$var = $value; } } } $dynamicVar = new DynamicObj([ null => '我是null', 0 => '我是数字', '1' => '我也是数字', '0我是_- 非法属性名☺' => '。。。', 0x123456 => 'hex test', ]); var_dump($dynamicVar); $prop = null; var_dump($dynamicVar->$prop); var_dump($dynamicVar->{'0我是_- 非法属性名☺'}); var_dump($dynamicVar->{0x123456}); $json = json_encode($dynamicVar); var_dump($json); var_dump(json_decode($json)); var_dump(json_decode($json, true)); ``` - 阅读剩余部分 -
- 阅读剩余部分 -
### 起因 在将服务器PHP版本升级至5.6之后,发现微信公众号不回复信息了,也没发现有报错信息。搞了好久,终于在 `register_shutdown_function` 中的 handler 里捕获到了如下错误信息: ```text 8192Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead.Unknown0 ``` 大致是说 `$HTTP_RAW_POST_DATA` 这个变量已经在PHP 5.6 中弃用且会在未来的版本中移除。 - 阅读剩余部分 -
### FBI WARNING 本文不对具体细节做介绍,如果这篇文章对你有用,请做好相应的功课。 ### 关键词 `CloudFlare` `5秒盾` `浏览器安全检查中` `Checking your browser before accessing xxx.com` `jschl_answer` - 阅读剩余部分 -
[Command-line interface description language](http://docopt.org/ "Command-line interface description language") [Command-Line Syntax Key](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc771080%28v%3Dws.11%29 "Command-Line Syntax Key") [Utility Argument Syntax](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_01 "Utility Argument Syntax") [GNU Coding Standards](http://www.gnu.org/prep/standards/standards.html "GNU Coding Standards") [Command Line Standard](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-powershell-1.0/ee156811%28v%3Dtechnet.10%29 "Command Line Standard")
[Quick reStructuredText](http://docutils.sourceforge.net/docs/user/rst/quickref.html "Quick reStructuredText") [A ReStructuredText Primer](http://docutils.sourceforge.net/docs/user/rst/quickstart.html "A ReStructuredText Primer") [reStructuredText Markup Specification](http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html "reStructuredText Markup Specification") [Index of /docs/ref/rst](http://docutils.sourceforge.net/docs/ref/rst/ "Index of /docs/ref/rst") [reStructuredText Standard Definition Files](http://docutils.sourceforge.net/docs/ref/rst/definitions.html "reStructuredText Standard Definition Files") [reStructuredText Directives](http://docutils.sourceforge.net/docs/ref/rst/directives.html "reStructuredText Directives") [An Introduction to reStructuredText](http://docutils.sourceforge.net/docs/ref/rst/introduction.html "An Introduction to reStructuredText") [reStructuredText Interpreted Text Roles](http://docutils.sourceforge.net/docs/ref/rst/roles.html "reStructuredText Interpreted Text Roles")
收一个 Reqable 永久版订阅