/PHP-8.1/Zend/ |
H A D | zend_objects.c | 34 object->properties = NULL; in _zend_object_std_init() 50 if (object->properties) { in zend_object_std_dtor() 52 if (EXPECTED(GC_DELREF(object->properties) == 0) in zend_object_std_dtor() 54 zend_array_destroy(object->properties); in zend_object_std_dtor() 218 GC_ADDREF(old_object->properties); in zend_objects_clone_members() 220 new_object->properties = old_object->properties; in zend_objects_clone_members() 225 if (old_object->properties && in zend_objects_clone_members() 231 if (!new_object->properties) { in zend_objects_clone_members() 232 new_object->properties = zend_new_array(zend_hash_num_elements(old_object->properties)); in zend_objects_clone_members() 235 …zend_hash_extend(new_object->properties, new_object->properties->nNumUsed + zend_hash_num_elements… in zend_objects_clone_members() [all …]
|
H A D | zend_object_handlers.c | 63 if (!zobj->properties) { in rebuild_object_properties() 128 if (!zobj->properties) { in zend_std_get_properties() 131 return zobj->properties; in zend_std_get_properties() 142 if (zobj->properties) { in zend_std_get_gc() 145 return zobj->properties; in zend_std_get_gc() 827 zobj->properties = zend_array_dup(zobj->properties); in zend_std_write_property() 1057 zobj->properties = zend_array_dup(zobj->properties); in zend_std_get_property_ptr_ptr() 1112 if (zobj->properties) { in zend_std_unset_property() 1133 zobj->properties = zend_array_dup(zobj->properties); in zend_std_unset_property() 1664 if (!zobj1->properties && !zobj2->properties) { in zend_std_compare_objects() [all …]
|
/PHP-8.1/ext/reflection/tests/ |
H A D | bug38132.phpt | 11 $properties = $class->getStaticProperties(); 12 var_dump($properties, array_keys($properties)); 13 var_dump(isset($properties['*bar'])); 14 var_dump(isset($properties["\0*\0bar"])); 15 var_dump(isset($properties["bar"]));
|
H A D | ReflectionClass_getProperties_003.phpt | 24 echo "No properties:"; 27 echo "Public properties:"; 30 echo "Private properties:"; 33 echo "Public or static properties:"; 36 echo "Private or static properties:"; 40 No properties:array(0) { 42 Public properties:array(4) { 72 Private properties:array(4) { 102 Public or static properties:array(6) { 146 Private or static properties:array(6) {
|
H A D | ReflectionProperty_isInitialized.phpt | 19 echo "Static properties:\n"; 24 echo "Declared properties:\n"; 30 echo "Declared properties after unset:\n"; 38 echo "Dynamic properties:\n"; 91 Static properties: 95 Declared properties: 99 Declared properties after unset: 103 Dynamic properties: 112 ReflectionProperty::isInitialized(): Argument #1 ($object) must be provided for instance properties
|
H A D | ReflectionObject___toString_basic1.phpt | 2 ReflectionObject::__toString() : very basic test with no dynamic properties 21 - Static properties [0] { 31 - Dynamic properties [0] {
|
H A D | ReflectionObject___toString_basic2.phpt | 2 ReflectionObject::__toString() : very basic test with dynamic properties 22 - Static properties [0] { 32 - Dynamic properties [2] {
|
H A D | 024.phpt | 2 ReflectionObject::__toString (filtering privates/protected dynamic properties) 25 - Static properties [0] { 37 - Dynamic properties [1] {
|
H A D | ReflectionClass_toString_003.phpt | 35 - Static properties [0] { 59 - Static properties [0] { 83 - Static properties [0] { 104 - Static properties [0] {
|
H A D | ReflectionClass_toString_002.phpt | 35 - Static properties [0] { 59 - Static properties [0] { 83 - Static properties [0] { 107 - Static properties [0] {
|
H A D | static_properties_002.phpt | 2 Reflection and inheriting static properties 46 echo 'Number of properties: '. count($r->getStaticProperties()) . "\n"; 59 Number of properties: 1
|
H A D | ReflectionClass_getDefaultProperties_001.phpt | 69 echo "\n\n---- Static properties in $class ----\n"; 71 echo "\n\n---- Default properties in $class ----\n"; 77 ---- Static properties in A ---- 89 ---- Default properties in A ---- 107 ---- Static properties in B ---- 121 ---- Default properties in B ---- 143 ---- Static properties in C ---- 156 ---- Default properties in C ---- 176 ---- Static properties in X ---- 185 ---- Default properties in X ----
|
/PHP-8.1/tests/classes/ |
H A D | static_properties_004.phpt | 2 Inherited static properties cannot be separated from their reference set. 9 echo "\nInherited static properties refer to the same value across classes:\n"; 16 echo "\nReferences cannot be used to split the properties:\n"; 22 Inherited static properties refer to the same value across classes: 32 References cannot be used to split the properties:
|
H A D | constants_basic_004.phpt | 2 Test properties with array default values using class constants as keys and values. 32 // Should also include inherited properties from B. 35 echo "\nStatic properties:\n"; 38 echo "\nInstance properties:\n"; 45 Static properties: 67 Instance properties:
|
H A D | interface_member.phpt | 2 ZE2 An interface cannot have properties 11 Fatal error: Interfaces may not include properties in %s on line %d
|
/PHP-8.1/Zend/tests/ |
H A D | bug73998.phpt | 11 $properties = get_object_vars($a); 12 var_dump(array_key_exists(1234, $properties)); 13 echo "Value: {$properties[1234]}\n";
|
H A D | foreach_018.phpt | 2 Foreach on stdClass with properties looking like mangled properties
|
H A D | magic_methods_020.phpt | 7 public static function __set_state(int $properties) {} 12 Fatal error: Foo::__set_state(): Parameter #1 ($properties) must be of type array when declared in …
|
/PHP-8.1/tests/lang/ |
H A D | foreachLoopObjects.005.phpt | 2 Foreach loop tests - removing properties before and after the current property during the loop. 14 echo "\nRemoving properties before the current element from an iterated object.\n"; 29 echo "\nRemoving properties before the current element from an iterated object.\n"; 46 Removing properties before the current element from an iterated object. 62 Removing properties before the current element from an iterated object.
|
/PHP-8.1/Zend/tests/enum/ |
H A D | no-properties.phpt | 2 Enum disallows properties 12 Fatal error: Enums may not include properties in %s on line %d
|
H A D | no-static-properties.phpt | 2 Enum disallows static properties 12 Fatal error: Enums may not include properties in %s on line %d
|
/PHP-8.1/ext/phar/tests/zip/ |
H A D | bug48791.phpt | 12 …properties style:font-name="Arial"/></style:style><text:list-style style:name="L1"><text:list-leve…
|
/PHP-8.1/ext/date/tests/ |
H A D | DateTimeZone_clone_basic3.phpt | 13 echo "\n-- Add some properties --\n"; 20 echo "\n-- Add some more properties --\n"; 39 -- Add some properties -- 63 -- Add some more properties --
|
/PHP-8.1/Zend/tests/type_declarations/ |
H A D | static_type_property.phpt | 2 Static type is not allowed in properties 6 // Testing ?static here, to avoid ambiguity with static properties.
|
/PHP-8.1/ext/opcache/tests/ |
H A D | ssa_bug_007.phpt | 7 function render($properties) { 8 foreach ($properties as $key => $value) {
|