Home
last modified time | relevance | path

Searched refs:obj (Results 26 – 50 of 613) sorted by relevance

12345678910>>...25

/php-src/Zend/
H A Dzend_objects_API.h45 #define OBJ_RELEASE(obj) zend_object_release(obj) argument
69 GC_ADD_FLAGS(obj, IS_OBJ_DESTRUCTOR_CALLED); in zend_object_store_ctor_failed()
76 if (GC_DELREF(obj) == 0) { in END_EXTERN_C()
77 zend_objects_store_del(obj); in END_EXTERN_C()
78 } else if (UNEXPECTED(GC_MAY_LEAK((zend_refcounted*)obj))) { in END_EXTERN_C()
79 gc_possible_root((zend_refcounted*)obj); in END_EXTERN_C()
94 void *obj = emalloc(obj_size + zend_object_properties_size(ce)); in zend_object_alloc() local
95 memset(obj, 0, obj_size - sizeof(zend_object)); in zend_object_alloc()
96 return obj; in zend_object_alloc()
101 zend_property_info **table = obj->ce->properties_info_table; in zend_get_property_info_for_slot()
[all …]
/php-src/Zend/tests/weakrefs/
H A Dweakmap_weakness.phpt12 $obj = new stdClass;
13 $map[$obj] = 2;
16 unset($obj);
28 unset($obj);
34 $map[$obj] = 3;
36 var_dump($obj);
41 $obj->obj = $obj;
42 $map[$obj] = 4;
43 unset($obj);
51 $map[$obj] = $obj;
[all …]
H A Dweakmap_basic_map_behavior.phpt9 $obj = new stdClass;
10 $obj->value = 1;
14 $map[$obj] = $obj2;
19 var_dump($map[$obj]);
21 $map[$obj] = 42;
25 var_dump($map[$obj]);
27 $map[$obj] = false;
33 $map[$obj] = null;
39 unset($map[$obj]);
53 $map[$obj] = [];
[all …]
H A Dweakmap_multiple_weakrefs.phpt6 $obj = new stdClass;
8 $ref = WeakReference::create($obj);
10 $map[$obj] = 1;
12 $map2[$obj] = 1;
17 unset($obj);
21 $obj = new stdClass;
22 $ref = WeakReference::create($obj);
24 $map[$obj] = 1;
26 $map2[$obj] = 1;
30 var_dump($obj);
[all …]
/php-src/ext/pdo_sqlite/tests/subclasses/
H A Dgc.phpt14 $obj = new Obj;
15 $obj->a = Pdo::connect('sqlite::memory:');
17 if (!$obj->a instanceof PdoSqlite) {
18 echo "Wrong class type. Should be PdoSqlite but is " . get_class($obj->a) . "]\n";
21 $obj->a->createFunction('func1', function() use ($obj) {}, 1);
22 $obj->a->createAggregate('func2', function() use ($obj) {}, function() use($obj) {});
23 $obj->a->createCollation('col', function() use ($obj) {});
/php-src/ext/spl/tests/
H A Dbug81992.phpt7 global $obj;
8 var_dump($obj[0]);
10 var_dump($obj[2]);
15 var_dump($obj[4]);
22 $obj = new SplFixedArray(5);
23 $obj[0] = str_repeat("A", 10);
24 $obj[2] = str_repeat('B', 10);
25 $obj[3] = new InvalidDestructor();
26 $obj[4] = str_repeat('C', 10);
27 $obj->setSize(2);
H A Ddllist_008.phpt5 $obj = new SplDoublyLinkedList();
6 $obj[] = 1;
7 $obj[] = 2;
8 var_dump(count($obj));
14 $obj = new SplDoublyLinkedList2();
15 $obj[] = 1;
16 $obj[] = 2;
17 var_dump(count($obj));
H A Dheap_010.phpt5 $obj = new SplMaxHeap();
6 $obj->insert(1);
7 $obj->insert(2);
8 var_dump(count($obj));
14 $obj = new SplMaxHeap2();
15 $obj->insert(1);
16 $obj->insert(2);
17 var_dump(count($obj));
H A Dbug53362.phpt6 class obj extends SplFixedArray{
12 $obj = new obj;
14 $obj[]=2;
15 $obj[]=2;
16 $obj[]=2;
/php-src/ext/mysqli/tests/
H A Dmysqli_fetch_object.phpt16 $obj = mysqli_fetch_object($res);
17 if (($obj->ID !== "1") || ($obj->label !== "a") || (get_class($obj) != 'stdClass')) {
19 var_dump($obj);
34 …if (($obj->ID !== "2") || ($obj->label !== "b") || ($obj->a !== NULL) || ($obj->b !== NULL) || (ge…
36 var_dump($obj);
52 …if (($obj->ID !== "3") || ($obj->label !== "c") || ($obj->a !== NULL) || ($obj->b !== NULL) || (ge…
54 var_dump($obj);
62 …if (($obj->ID !== "4") || ($obj->label !== "d") || ($obj->a !== 'a') || ($obj->b !== NULL) || (get…
64 var_dump($obj);
71 …if (($obj->ID !== "5") || ($obj->label !== "e") || ($obj->a !== 'a') || ($obj->b !== 'b') || (get_…
[all …]
H A Dmysqli_fetch_object_oo.phpt33 $obj = mysqli_fetch_object($res);
34 if (($obj->ID !== "1") || ($obj->label !== "a") || (get_class($obj) != 'stdClass')) {
36 var_dump($obj);
50 $obj = $res->fetch_object('mysqli_fetch_object_test');
51 …if (($obj->ID !== "2") || ($obj->label !== "b") || ($obj->a !== NULL) || ($obj->b !== NULL) || (ge…
53 var_dump($obj);
73 $obj = $res->fetch_object('mysqli_fetch_object_construct', array('a'));
74 …if (($obj->ID !== "4") || ($obj->label !== "d") || ($obj->a !== 'a') || ($obj->b !== NULL) || (get…
76 var_dump($obj);
83 …if (($obj->ID !== "5") || ($obj->label !== "e") || ($obj->a !== 'a') || ($obj->b !== 'b') || (get_…
[all …]
/php-src/ext/pdo_sqlite/tests/
H A Dgc.phpt13 $obj = new Obj;
14 $obj->a = new PDO('sqlite::memory:');
15 $obj->a->sqliteCreateFunction('func1', function() use ($obj) {}, 1);
16 $obj->a->sqliteCreateAggregate('func2', function() use ($obj) {}, function() use($obj) {});
17 $obj->a->sqliteCreateCollation('col', function() use ($obj) {});
/php-src/Zend/tests/type_declarations/
H A Dtyped_properties_067.phpt6 $obj = new class {
14 arr($obj->it);
15 var_dump($obj->it);
16 array_shift($obj->it);
17 var_dump($obj->it);
18 parse_str("foo=bar", $obj->it);
19 var_dump($obj->it);
20 $obj->it = [];
21 var_dump($obj->it);
H A Dtyped_properties_095.phpt11 $obj = new _ZendTestClass;
12 var_dump($obj->intProp);
14 $obj->intProp = "foobar";
18 $obj->intProp = 456;
21 $obj->classProp = $obj;
26 var_dump($obj);
33 $obj = new Test;
34 var_dump($obj->intProp);
40 $obj->intProp = 456;
43 $obj->classProp = $obj;
[all …]
/php-src/ext/dom/
H A Ddocumenttype.c32 zend_result dom_documenttype_name_read(dom_object *obj, zval *retval) in dom_documenttype_name_read() argument
34 DOM_PROP_NODE(xmlDtdPtr, dtdptr, obj); in dom_documenttype_name_read()
46 zend_result dom_documenttype_entities_read(dom_object *obj, zval *retval) in dom_documenttype_entities_read() argument
48 DOM_PROP_NODE(xmlDtdPtr, dtdptr, obj); in dom_documenttype_entities_read()
67 zend_result dom_documenttype_notations_read(dom_object *obj, zval *retval) in dom_documenttype_notations_read() argument
69 DOM_PROP_NODE(xmlDtdPtr, dtdptr, obj); in dom_documenttype_notations_read()
88 zend_result dom_documenttype_public_id_read(dom_object *obj, zval *retval) in dom_documenttype_public_id_read() argument
90 DOM_PROP_NODE(xmlDtdPtr, dtdptr, obj); in dom_documenttype_public_id_read()
108 zend_result dom_documenttype_system_id_read(dom_object *obj, zval *retval) in dom_documenttype_system_id_read() argument
110 DOM_PROP_NODE(xmlDtdPtr, dtdptr, obj); in dom_documenttype_system_id_read()
[all …]
H A Dentity.c40 zend_result dom_entity_public_id_read(dom_object *obj, zval *retval) in dom_entity_public_id_read() argument
42 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_entity_public_id_read()
60 zend_result dom_entity_system_id_read(dom_object *obj, zval *retval) in dom_entity_system_id_read() argument
62 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_entity_system_id_read()
80 zend_result dom_entity_notation_name_read(dom_object *obj, zval *retval) in dom_entity_notation_name_read() argument
82 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_entity_notation_name_read()
105 zend_result dom_entity_actual_encoding_read(dom_object *obj, zval *retval) in dom_entity_actual_encoding_read() argument
118 zend_result dom_entity_encoding_read(dom_object *obj, zval *retval) in dom_entity_encoding_read() argument
131 zend_result dom_entity_version_read(dom_object *obj, zval *retval) in dom_entity_version_read() argument
/php-src/Zend/tests/
H A Dobject_property_ref_incdec.phpt6 $obj = new stdClass;
7 $obj->cursor = 0;
8 $ref =& $obj->cursor;
10 $obj->cursor++;
11 var_dump($obj->cursor);
13 $obj->cursor--;
14 var_dump($obj->cursor);
/php-src/ext/tidy/
H A Dtidy.c521 tidyNodeGetText(obj->ptdoc->doc, obj->node, &buf); in tidy_node_cast_handler()
578 tidyNodeGetText(obj->ptdoc->doc, obj->node, &buf); in tidy_add_node_default_properties()
582 &obj->std, in tidy_add_node_default_properties()
595 &obj->std, in tidy_add_node_default_properties()
603 &obj->std, in tidy_add_node_default_properties()
611 &obj->std, in tidy_add_node_default_properties()
619 &obj->std, in tidy_add_node_default_properties()
627 &obj->std, in tidy_add_node_default_properties()
630 tidyNodeIsProp(obj->ptdoc->doc, obj->node) in tidy_add_node_default_properties()
1036 if (obj->ptdoc->errbuf && obj->ptdoc->errbuf->bp) { in PHP_FUNCTION()
[all …]
/php-src/ext/json/tests/
H A Djson_encode_pretty_print2.phpt22 $obj = new MyClass();
23 $obj->dynamic = new MyClass(null, []);
24 echo json_encode($obj), "\n";
25 echo json_encode($obj, JSON_PRETTY_PRINT), "\n";
26 $obj = new MyClass();
27 unset($obj->y);
28 echo json_encode($obj), "\n";
29 echo json_encode($obj, JSON_PRETTY_PRINT), "\n";
30 unset($obj->x);
31 echo json_encode($obj), "\n";
[all …]
/php-src/ext/com_dotnet/
H A Dcom_com.c34 php_com_dotnet_object *obj; in PHP_METHOD() local
62 obj = CDNO_FETCH(object); in PHP_METHOD()
69 obj->code_page = (int)cp; in PHP_METHOD()
283 IDispatch *obj = NULL; in PHP_FUNCTION() local
313 } else if (obj) { in PHP_FUNCTION()
320 if (obj) { in PHP_FUNCTION()
321 IDispatch_Release(obj); in PHP_FUNCTION()
324 IUnknown_Release(obj); in PHP_FUNCTION()
424 if (obj->typeinfo) { in php_com_get_id_of_name()
432 obj->typeinfo = NULL; in php_com_get_id_of_name()
[all …]
H A Dcom_variant.c461 php_com_variant_from_zval_ex(&obj->v, zvalue, obj->code_page, vt); in PHP_METHOD()
482 res = VariantChangeType(&obj->v, &obj->v, 0, (VARTYPE)vt); in PHP_METHOD()
497 if (V_VT(&obj->v) != VT_DISPATCH && obj->typeinfo) { in PHP_METHOD()
530 php_com_variant_from_zval(&obj->v, zvalue, obj->code_page); in PHP_FUNCTION()
564 vleft = &obj->v; in variant_binary_operation()
571 vleft = &obj->v; in variant_binary_operation()
757 vleft = &obj->v; in variant_unary_operation()
849 vleft = &obj->v; in PHP_FUNCTION()
887 vleft = &obj->v; in PHP_FUNCTION()
894 vleft = &obj->v; in PHP_FUNCTION()
[all …]
/php-src/ext/mysqli/
H A Dmysqli_warning.c130 mysqli_object *obj = Z_MYSQLI_P(ZEND_THIS); in PHP_METHOD() local
136 if (obj->ptr) { in PHP_METHOD()
141 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w; in PHP_METHOD()
150 static int mysqli_warning_message(mysqli_object *obj, zval *retval, bool quiet) in mysqli_warning_message() argument
154 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_message()
162 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_message()
174 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_sqlstate()
182 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_sqlstate()
190 static int mysqli_warning_errno(mysqli_object *obj, zval *retval, bool quiet) in mysqli_warning_errno() argument
194 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_errno()
[all …]
/php-src/Zend/tests/type_declarations/union_types/
H A Dinheritance_internal.phpt10 $obj = new _ZendTestChildClass;
11 $obj->classUnionProp = new stdClass;
12 $obj->classUnionProp = new ArrayIterator;
14 $obj->classUnionProp = new DateTime;
19 $obj = new C;
20 $obj->classUnionProp = new stdClass;
21 $obj->classUnionProp = new ArrayIterator;
23 $obj->classUnionProp = new DateTime;
/php-src/ext/opcache/tests/opt/
H A Dnullsafe_001.phpt20 function test2(object $obj) {
22 var_dump($obj?->foo);
23 var_dump(isset($obj?->foo));
24 var_dump(empty($obj?->foo));
54 0000 CV0($obj) = RECV 1
56 0002 T1 = JMP_NULL CV0($obj) 0004
57 0003 T1 = FETCH_OBJ_R CV0($obj) string("foo")
61 0007 T1 = JMP_NULL CV0($obj) 0009
62 0008 T1 = ISSET_ISEMPTY_PROP_OBJ (isset) CV0($obj) string("foo")
66 0012 T1 = JMP_NULL CV0($obj) 0014
[all …]
/php-src/ext/zend_test/
H A Dobject_handlers.c27 object_properties_init(obj, ce); in donc_object_create_ex()
28 obj->handlers = &donc_object_handlers; in donc_object_create_ex()
29 ZVAL_LONG(OBJ_PROP_NUM(obj, 0), l); in donc_object_create_ex()
30 return obj; in donc_object_create_ex()
130 object_properties_init(obj, ce); in long_castable_no_operation_object_create_ex()
132 ZVAL_LONG(OBJ_PROP_NUM(obj, 0), l); in long_castable_no_operation_object_create_ex()
133 return obj; in long_castable_no_operation_object_create_ex()
166 object_properties_init(obj, ce); in float_castable_no_operation_object_create_ex()
169 return obj; in float_castable_no_operation_object_create_ex()
202 object_properties_init(obj, ce); in numeric_castable_no_operation_object_create_ex()
[all …]

Completed in 67 milliseconds

12345678910>>...25