话题编程语言 › PHP

编程语言:PHP

最简单的php trim函数并不简单

php 的trim函数就是用来去除字符串的字符串。trim不是按顺序的,只要在列表内,统统去掉,直到第一个不在列表中的字符

nginx+php-fpm故障排查

导读作者:陈天庆(邮箱:freeskycd@qq.com,欢迎交流)知数堂MySQL DBA班、大数据实战班优秀学员,现任职知数堂助教小明初到一家公司做运维的工作,刚来的第一天就开始部署LNMP(Linux+Nginx+MySQL+PHP)环境,结果出现了问题。 他来向我请教&#

4年前PHP Curl毫秒超时问题现在怎么样了?

江湖惯例,先上结论: PHP 7和libcurl 7.60.0对curl毫秒超时理论都是支持的,但如果DNS使用同步解析模式(部分Linux发行版缺省为依赖alram信号的同...

Tumblr:我们是如何从 PHP 5 升级到 PHP 7 的

Tumblr 团队经常在寻找新的方式来提升网站的性能。这意味着要给访问量大的代码增加缓存,找到更快的 CDN 配置,或者升级基础软件。 最近,通过一次跨团队的努

PHP 的垃圾回收机制-理解PHP如何解决循环引用导致的内存泄漏问题

先来看一下什么是循环引用问题?在 PHP 5.2 中使用的垃圾回收算法是 Reference Counting(引用计数)。非常简单,为每个 zval 分配一个计数器,当一个 zval 建立时计数器初始化为1,以后每有一个新变量引用此 zval,则计数器加1,而每当减少一个引用的变量则计数器减 1,当垃圾回收机制运作的时候,将所有计数器为0的zval销毁并回收其占用的内存。但是对于以下代码,把数组

PHP的分布式跟踪的一些心得

自从实现微服务化后,我们碰到了很多问题。其中最大的问题就是如何排查故障,服务化后的接口通常会依赖多个服务,依赖接口的缓慢会直接影响接口的服务质量。

PHP 7 magic function call trampoline

Introduction This article will detail an optimization that's been added to PHP 7 virtual machine executor (Zend VM). We'll get back a minute into theorical concepts about function call trampolines,…

Top 10 - Treating PHP Delusions

Initially, this site was launched as a place where I can treat PHP delusions: disprove numerous fallacies and superstitions circulating in the PHP community. Eventually I learned that it's not…

遭遇php的in_array低性能问题

PHP的性能一直在提高。然而,若是用的不恰当,或是一个不留神,还是可能会踩到PHP内部实现方面的坑的。我在前

PHP 源码探秘 - 为什么 trim 会导致乱码

嗨,我是周梦康,互联网小小泥瓦匠。 2009 年,从 Discuz 开始与 PHP 结下不解之缘,在大学时开始写博客。 2014 年,开始参与 PHP 官方文档 的翻译(如果你也想加入翻译群,可以联系我)。 2015 年,为了更加深入的学习Ո

Is it all PHP OPCache's fault?

Abstract Upon migrating to a new infrastructure we started experiencing cache issues after each deploy: as we refreshed pages that were updated by the new release, we didn’t see the right content for…

Performance Impact of the PHP Garbage Collector

Composer got a huge performance boost last week thanks to the disabling of the garbage collector. Blackfire now displays a bunch of information about the PHP garbage collector calls to help you…

[微信] PHP 官方支付 sdk 在 PHP7 下回调异常及解决方法

《L01 基础入门》 我们将带你从零开发一个项

自上而下,逐步揭开PHP解析大整数的面纱

File not found The site configured at this address does not contain the requested file. If this is your site, make sure that the filename case matches the URL as well as any file permissions. For root…

PHP的master与worker进程关系的一点纠结

PHP反序列化漏洞

ホーム - Wiki
Copyright © 2011-2024 iteam. Current version is 2.132.0. UTC+08:00, 2024-09-21 14:36
浙ICP备14020137号-1 $お客様$