PHP手册

函数参考

函数参考Tip 参见 扩展库列表/归类. ◾影响 PHP 行为的扩展◾APC — Alternative PHP Cache(可选PHP缓存)◾APD — Advanced PHP debugger◾bcompiler — PHP 字节码编译器◾BLENC — Blenc - BLowfish ENCoder for PHP source scripts◾错误处理 — 错误处理

引用计数基本知识

引用计数基本知识每个php变量存在一个叫"zval"的变量容器中。一个zval变量容器,除了包含变量的类型和值,还包括两个字节的额外信息。第一个是"is_ref",是个bool值,用来标识这个变量是否是属于引用集合(reference set)。通过这个字节,php引擎才能把普通变量和引用变量区分开来,由于php允许用户通过使用&来使用自定义引用,z

影响 PHP 行为的扩展

影响 PHP 行为的扩展◾APC — Alternative PHP Cache(可选PHP缓存)◾简介◾安装/配置◾预定义常量◾APC 函数◾APCIterator — The APCIterator class◾APD — Advanced PHP debugger◾简介◾安装/配置◾预定义常量◾范例◾APD 函数◾bcompiler — PHP 字节码编译器◾简介◾安装/配置◾预定义常量◾b

回收周期(Collecting Cycles)

回收周期(Collecting Cycles)传统上,像以前的 php 用到的引用计数内存机制,无法处理循环的引用内存泄漏。然而 5.3.0 PHP 使用文章» 引用计数系统中的同步周期回收(Concurrent Cycle Collection in Reference Counted Systems)中的同步算法,来处理这个内存泄漏问题。 对算法的完全说明有点超出这部分内容的范围,将

Alternative PHP Cache(可选PHP缓存)

Alternative PHP Cache(可选PHP缓存)◾简介◾安装/配置◾需求◾安装◾运行时配置◾资源类型◾预定义常量◾APC 函数◾apc_add — 缓存一个变量到数据存储◾apc_bin_dump — Get a binary dump of the given files and user variables◾apc_bin_dumpfile — Output a binary du

性能方面考虑的因素

性能方面考虑的因素在上一节我们已经简单的提到:回收可能根有细微的性能上影响,但这是把PHP 5.2与PHP 5.3比较时才有的。尽管在PHP 5.2中,记录可能根相对于完全不记录可能根要慢些,而PHP 5.3中对 PHP run-time 的其他修改减少了这个性能损失。 这里主要有两个领域对性能有影响。第一个是内存占用空间的节省,另一个是垃圾回收机制执行内存清理时的执行时间增加(run-

Alternative PHP Cache (APC)简介

Alternative PHP Cache (APC)简介Alternative PHP Cache (APC) 是一个开放自由的PHP opcode 缓存。它的目标是提供一个自由、 开放,和健全的框架用于缓存和优化PHP的中间代码。 

Alternative PHP Cache (APC)

Alternative PHP Cache (APC)PHP Manual安装/配置Table of Contents◾需求◾安装◾运行时配置◾资源类型

DTrace Dynamic Tracing

DTrace Dynamic TracingTable of Contents◾Introduction to PHP and DTrace◾Using PHP and DTrace◾Using SystemTap with PHP DTrace Static Probes

Introduction to PHP and DTrace

Introduction to PHP and DTraceDTrace is an always-available, low overhead, tracing frameworkavailable on a number of platforms including Solaris, Mac OS X,Oracle Linux and BSD. DTrace can trace operat