PHP中对象的本质
PHP中的面向对象
#zend/zend.h
typedef union_zvalue_value
{
long lval;/* long value */
double dval;/* double value */
struct
{
char *val;
int len;
}
HashTalbe *ht /* hash table value */
zend_object_value obj;
} zvalue_value;
zvalue_value, 就是PHP底层的变量类型,zend_object_value obj就是变量的一个结构,接着看对象的底层实现,在PHP5中,对象在底层的实现是采取"属性数组+方法数组"来实现的,简单的理解为PHP对象在底层的存储如下图
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAAFzCAIAAAAyuq3vAAAgAElEQVR4nO2dfVBbZ37vM+10pnPvdjJ7+8/d7Z2d7rTJtJOmA6S7mzS7K3exdipymzV0A2wVcrsFw+4qJTUOpFFigxdhhcUoCAxGtgFjGxPjgA1ryxDAWIj3FynCNpIQmPBmjC1hIYMAEQ/3jyd55qwkBIgjnyP0/cx3PEdHz3l0OBr/PjzPcySeWQcAAAA25hmuTwAAAACvgScAAAD4Ap4AAADgC3gCAACAL+AJAAAAvoAnAAAA+AKeAAAA4At4AgAAgC/gCQAAAL6AJwAAAPgCngAAAOALeAIAAIAv4AkAAAC+gCcAAAD4Ap4AAADgC3gCAACAL+AJAAAAvoAnAAAA+AKeAAAA4At4AgAAgC/gCQAAAL6AJwAAAPgCngAAAOALeAIAAIAv4AkAAAC+gCcAAAD4Ap4AAADgC3gCAACAL+AJAAAAvoAnAAAA+AKeAAAA4At4AgAAgC/gCQAAAL6AJwAAAPgCngAAAOALeAIAAIAv4AkAAAC+gCdAcNBveVh63fib0q6kIi2y87xX2V/eYjZN27l+Y0EQAE8AvmN1LP+mtCuxqP341eG2W7OdxgfIzvP7vsmPG27H/u7GoapBh9PF9ZsMeA08AXhNh/H+vqMtbbdmna4nSCByqWs89netM7Ylrt9qwF/gCcBfrI7lfUdbHtiXnatfIoGLcfpR7O9urK59yfUbDngKPAH4S1KRtsP4wLn6BAl0VE0m5dU7XL/hgKfAE4CndBrv/+pE59LqE+TpJPLwdatjmeu3HfAReALwlBPXjcevDnNePU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iOplNGzPXnKess7SdcJGDORDHHHGR0IhRHx0kS6VK2j8UPeAIAAL5iJ56gq8FucVsSoNumSYuyUuUmCVr94ySJbusNzAPT5ZnkWbcpI+IJsp7hNsIgIxLqDHJuzAZxksSdDCngCQBASOC3JxB4AgAQEiysLn6gKeK85gZj4AkAQKiQ0VYw8/gB52U3uDLz+EFGW8HTf7PgCQAAB1QM1WsmBjivvMEVzcRAxVD903+z4AkAAAcsrC7KOk+ZreOcF99gidk6Lus8tfM/Tu4H8AQAgBumHXMfdZeX6mtqza2I75Tqaz7qLvfjT32wAjwBAOAM15M1w9yIeqwD8R3D3Ih/fzqQFeAJAAAAvoAnAAAA+AKeAAAA4At4AgAAgC/gCQAAAL6AJwAAAPgCngAAAOALeAIAAIAv4AkAAAC+gCcAAAD4Ap4AAADgC3gCAACAL+AJAAAAvoAnAAAA+AKeAAAA4At4AgAAgC/gCQAAAL6AJwAAAPgCngAAAOALeAIAAIAv4AkAAAC+gCcAAAD4Ap4AAADgC3gCAACAL+AJAAAAvoAnAAAA+AKeAAAA4At4AgAAgC/gCQAAAL6AJwAAAPgCngAAAOALeAIAAIAv4AkAAAC+gCcAAAD4Ap4AAADgC3gCAACAL+AJAAAAvvj/h1Eg22n424kAAAAASUVORK5CYII=" alt="" />
对象在PHP中是使用一种zend_object_value结构体来存储的.对象在ZEND(PHP底层引擎,类似Java的JVM)中的定义如下:
typedef struct_zend_object
{
zend_class_entry *ce; //这里就是类的入口
HashTable *properties; //属性组成的HashTable
HashTable *guards; /*protect from __get/__set...recursion */
} zend_object;
PHP中对象的本质的更多相关文章
- Java中对象池的本质是什么?(实战分析版)
简介 对象池顾名思义就是存放对象的池,与我们常听到的线程池.数据库连接池.http连接池等一样,都是典型的池化设计思想. 对象池的优点就是可以集中管理池中对象,减少频繁创建和销毁长期使用的对象,从而提 ...
- 关于JavaScript中对象的继承实现的学习总结
一.原型链 JavaScript 中原型链是实现继承的主要方法.其主要的思想是利用原型让一个引用类型继承另一个引用类型的属性和方法.实现原型链有一种基本模式,其代码如下. function Super ...
- [BS-21] 关于OC中对象与指针的思考
关于OC中对象与指针的思考 1. 创建对象: OC中可通过代码Person *p = [[Person alloc] init];创建了一个对象p.该过程中内存情况为: 在当前线程的栈(默认1M)中, ...
- 关于hibernate中对象的三种状态分析
一,首先hibernate中对象的状态有三种:瞬态.游离态和持久态,三种状态转化的方法都是通过session来调用,瞬态到持久态的方法有save().saveOrUpdate().get().load ...
- python中对象、类型和元类之间的关系
在python中对象.类型和元类构成了一个微妙的世界. 他们有在这个世界里和平共处,相辅相成.它们遵循着几条亘古不变的定律: 1.python中无处不对象 2.所有对象都有三种特性:id.类型.值 3 ...
- flask中路由的本质源码分析
flask中url的本质: 吧url和视图函数封装到一个Rule对象里面去了,并且吧这个对象添加到url_map中 Rule={"url":'/index','method':'i ...
- 沉淀再出发:java中注解的本质和使用
沉淀再出发:java中注解的本质和使用 一.前言 以前XML是各大框架的青睐者,它以松耦合的方式完成了框架中几乎所有的配置,但是随着项目越来越庞大,XML的内容也越来越复杂,维护成本变高.于是就有人提 ...
- java中对象和对象的引用
1.何谓对象? 在Java中有一句比较流行的话,叫做“万物皆对象”,这是Java语言设计之初的理念之一.要理解什么是对象,需要跟类一起结合起来理解.下面这段话引自<Java编程思想>中的一 ...
- Python中变量的本质探索
Python中变量的本质探索 参考:Vamei博客Python进阶09 动态类型 ''' a = [1,2,3] ''' (1)这条"赋值语句"实际上是将a指向对象"[1 ...
随机推荐
- 第二次OO总结
作业5——多线程电梯 好像失忆了,竟然对这三部电梯很陌生,我尽量回忆一下当时挣扎的场景orz 整体思路和第二次电梯差不多,但是将调度器类套在了电梯类里 优点可能是没有无效,足矣!!!缺点emmmm要是 ...
- vim快捷键速查
一.移动 h/j/k/l 左/下/上/右 W w 移动到下一个单词开头 E e 移动到下一个单词结尾 B b ...
- 个人对于angularjs依赖注入的理解
依赖注入(Dependency Injection,DI),作者认为本文中所有名词性的"依赖" 都可以理解为 "需要使用的资源". 对象或者函数只有以下3种获取 ...
- xmlhttprequest readyState 属性的五种状态
关于readystate五个状态总结如下: readyState 状态 状态说明(0)未初始化此阶段确认XMLHttpRequest对象是否创建,并为调用open()方法进行未初始化作好准备.值 ...
- 人工智能之一般合一算法Java实现之
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner ...
- 剑指offer面试题15:链表中倒数第K个节点
题目:输入一个链表,输出该链表的倒数第K个节点.为了符合大多数人的习惯,本题从1开始计数,即链表尾节点是倒数第一个节点. 解题思路: 解法一:一般情况下,单向链表无法从后一个节点获取到它前面的节点,可 ...
- jquery mobile Touch事件
Touch事件在用户触摸屏幕(页面)时触发 1.jquery mobile tap tap事件在用户敲击某个元素时触发 $("p").on("tap",fucn ...
- Android 监听屏幕锁屏&用户解锁
在做视频播放器的时候,遇到一个问题,在用户播放视频然后锁屏之后,视频播放器仍然在继续播放,遇到类似手机系统状态改变的问题的时候,首先想到了广播,下面做个总结: public class ScreenL ...
- Javascript高级编程学习笔记(31)—— BOM(5)screen、history对象
screen对象 screen对象应该是BOM对象中最不常用的对象了 其主要用于提供客户端的显示能力信息 包括浏览器外部显示的信息,和像素的宽高等 这个对象的主要用于检测客户端能力,一般不会影响功能 ...
- ScrollView嵌套子View的getDrawingCache为空的解决方法
ScrollView嵌套子View的getDrawingCache为空的解决方法 问题 将组件的显示布局改为可以滚动的,然后用ScrollView作为了View的父类,发现View的getDrawin ...