Deleted Added
full compact
zend_objects.c (7e8bd05c) zend_objects.c (345e0255)
1/*
2 +----------------------------------------------------------------------+
3 | Zend Engine |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 1998-2004 Zend Technologies Ltd. (http://www.zend.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 2.00 of the Zend license, |
8 | that is bundled with this package in the file LICENSE, and is |

--- 89 unchanged lines hidden (view full) ---

98 zend_object_value retval;
99
100 *object = emalloc(sizeof(zend_object));
101 (*object)->ce = class_type;
102 retval.handle = zend_objects_store_put(*object, (zend_objects_store_dtor_t) zend_objects_destroy_object, (zend_objects_free_object_storage_t) zend_objects_free_object_storage, NULL TSRMLS_CC);
103 retval.handlers = &std_object_handlers;
104 (*object)->in_get = 0;
105 (*object)->in_set = 0;
1/*
2 +----------------------------------------------------------------------+
3 | Zend Engine |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 1998-2004 Zend Technologies Ltd. (http://www.zend.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 2.00 of the Zend license, |
8 | that is bundled with this package in the file LICENSE, and is |

--- 89 unchanged lines hidden (view full) ---

98 zend_object_value retval;
99
100 *object = emalloc(sizeof(zend_object));
101 (*object)->ce = class_type;
102 retval.handle = zend_objects_store_put(*object, (zend_objects_store_dtor_t) zend_objects_destroy_object, (zend_objects_free_object_storage_t) zend_objects_free_object_storage, NULL TSRMLS_CC);
103 retval.handlers = &std_object_handlers;
104 (*object)->in_get = 0;
105 (*object)->in_set = 0;
106 (*object)->in_unset = 0;
107 (*object)->in_isset = 0;
106 return retval;
107}
108
109ZEND_API zend_object *zend_objects_get_address(zval *zobject TSRMLS_DC)
110{
111 return (zend_object *)zend_object_store_get_object(zobject TSRMLS_CC);
112}
113

--- 68 unchanged lines hidden ---
108 return retval;
109}
110
111ZEND_API zend_object *zend_objects_get_address(zval *zobject TSRMLS_DC)
112{
113 return (zend_object *)zend_object_store_get_object(zobject TSRMLS_CC);
114}
115

--- 68 unchanged lines hidden ---