Home
last modified time | relevance | path

Searched refs:attribute (Results 1 – 25 of 208) sorted by relevance

123456789

/PHP-8.1/ext/dom/tests/
H A Dgh10234.phpt9 $attribute = $document->documentElement->getAttributeNode('attribute');
14 var_dump($attribute->textContent);
16 $attribute->textContent = 'new value';
17 var_dump($attribute->textContent);
20 $attribute->textContent = 'hello & world';
21 var_dump($attribute->textContent);
24 $attribute->textContent = '<b>hi</b>';
25 var_dump($attribute->textContent);
29 var_dump($attribute->textContent);
33 var_dump($attribute->textContent);
[all …]
H A Dbug80332_2.phpt20 …echo "list[$key_formatted] id attribute: ", $list[$key] ? $list[$key]->getAttribute('id') : '/', "…
38 list[0] id attribute: 1
39 list[false] id attribute: 1
40 list[true] id attribute: 2
41 list[null] id attribute: 1
42 list['0'] id attribute: 1
43 list['0.5'] id attribute: 1
44 list['1'] id attribute: 2
45 list['attr2'] id attribute: /
46 list['hi'] id attribute: /
[all …]
H A DsetAttributeNodeNS_same_uri_different_prefix.phpt8 // This means that when appending a new attribute the old namespace declaration is reused, hence th…
14 $attribute = $doc->createAttributeNS('http://php.net/ns1', 'foo:hello');
15 $attribute->nodeValue = '1';
16 var_dump($doc->documentElement->setAttributeNodeNS($attribute)?->nodeValue);
18 $attribute = $doc->createAttributeNS('http://php.net/ns1', 'bar:hello');
19 $attribute->nodeValue = '2';
20 var_dump($doc->documentElement->setAttributeNodeNS($attribute)?->nodeValue);
22 $attribute = $doc->createAttributeNS('http://php.net/ns1', 'hello');
23 $attribute->nodeValue = '3';
24 var_dump($doc->documentElement->setAttributeNodeNS($attribute)?->nodeValue);
H A Dxpath_domnamespacenode_advanced.phpt20 foreach ($xpath->query($query) as $attribute) {
21 echo $attribute->nodeName . ' = ' . $attribute->nodeValue . PHP_EOL;
22 var_dump($attribute->parentNode->tagName);
27 foreach ($xpath->query($query) as $attribute) {
28 echo "Before: ", $attribute->parentNode->tagName, "\n";
31 $attribute->parentNode->remove();
36 echo "After: ", $attribute->parentNode->tagName, "\n";
/PHP-8.1/ext/zend_test/tests/
H A Dattribute_arguments.phpt10 var_dump($attribute->getArguments());
11 var_dump($attribute->newInstance());
15 var_dump($attribute->getArguments());
16 var_dump($attribute->newInstance());
20 var_dump($attribute->getArguments());
21 var_dump($attribute->newInstance());
25 var_dump($attribute->getArguments());
26 var_dump($attribute->newInstance());
30 var_dump($attribute->getArguments());
31 var_dump($attribute->newInstance());
[all …]
/PHP-8.1/ext/intl/collator/
H A Dcollator_attr.c29 zend_long attribute, value; in PHP_FUNCTION() local
35 &object, Collator_ce_ptr, &attribute ) == FAILURE ) in PHP_FUNCTION()
43 value = ucol_getAttribute( co->ucoll, attribute, COLLATOR_ERROR_CODE_P( co ) ); in PHP_FUNCTION()
53 zend_long attribute, value; in PHP_FUNCTION() local
59 &object, Collator_ce_ptr, &attribute, &value ) == FAILURE) in PHP_FUNCTION()
68 ucol_setAttribute( co->ucoll, attribute, value, COLLATOR_ERROR_CODE_P( co ) ); in PHP_FUNCTION()
/PHP-8.1/ext/tidy/tests/
H A D012.phpt53 ["attribute"]=>
74 ["attribute"]=>
98 ["attribute"]=>
121 ["attribute"]=>
146 ["attribute"]=>
271 ["attribute"]=>
310 ["attribute"]=>
330 ["attribute"]=>
410 ["attribute"]=>
430 ["attribute"]=>
[all …]
H A D010.phpt34 ["attribute"]=>
60 ["attribute"]=>
83 ["attribute"]=>
129 ["attribute"]=>
160 ["attribute"]=>
191 ["attribute"]=>
214 ["attribute"]=>
235 ["attribute"]=>
260 ["attribute"]=>
290 ["attribute"]=>
[all …]
H A D011.phpt9 var_dump($body->attribute);
10 foreach($body->attribute as $key=>$val) {
/PHP-8.1/ext/intl/formatter/
H A Dformatter_attr.c28 zend_long attribute, value; in PHP_FUNCTION() local
33 &object, NumberFormatter_ce_ptr, &attribute ) == FAILURE ) in PHP_FUNCTION()
41 switch(attribute) { in PHP_FUNCTION()
61 value = unum_getAttribute(FORMATTER_OBJECT(nfo), attribute); in PHP_FUNCTION()
90 zend_long attribute; in PHP_FUNCTION() local
99 &object, NumberFormatter_ce_ptr, &attribute ) == FAILURE ) in PHP_FUNCTION()
127 zend_long attribute; in PHP_FUNCTION() local
133 &object, NumberFormatter_ce_ptr, &attribute, &value ) == FAILURE) in PHP_FUNCTION()
141 switch(attribute) { in PHP_FUNCTION()
182 zend_long attribute; in PHP_FUNCTION() local
[all …]
H A Dformatter.stub.php47 public function setAttribute(int $attribute, int|float $value): bool {} argument
53 public function getAttribute(int $attribute): int|float|false {} argument
59 public function setTextAttribute(int $attribute, string $value): bool {} argument
65 public function getTextAttribute(int $attribute): string|false {} argument
/PHP-8.1/Zend/tests/attributes/
H A D007_self_reflect_attribute.phpt9 foreach ($attributes as $attribute) {
10 var_dump($attribute->getName());
11 var_dump($attribute->getArguments());
13 $a = $attribute->newInstance();
H A D004_name_resolution.phpt2 Resolve attribute names
9 foreach ($attributes as $attribute) {
10 $arr[] = ['name' => $attribute->getName(), 'args' => $attribute->getArguments()];
H A D026_unpack_in_args.phpt2 Cannot use unpacking in attribute argument list
11 Fatal error: Cannot use unpacking in attribute argument list in %s on line %d
/PHP-8.1/ext/simplexml/tests/
H A Dprofile07.phpt2 SimpleXML [profile]: Accessing an aliased namespaced attribute
10 <child reserved:attribute="Sample" />
17 echo $rsattr['attribute'];
18 echo $myattr['attribute'];
H A Dprofile10.phpt10 <child reserved:attribute="Sample" special:attribute="Test" />
17 echo $rsattr['attribute'];
19 echo $spattr['attribute'];
H A Dprofile03.phpt2 SimpleXML [profile]: Accessing an attribute
9 <child attribute="Sample" />
13 echo $root->child['attribute'];
H A Dprofile08.phpt2 SimpleXML [profile]: Accessing a namespaced attribute without a namespace
10 <child reserved:attribute="Sample" />
14 echo $root->child['attribute'];
H A Dprofile06.phpt2 SimpleXML [profile]: Accessing a namespaced attribute
10 <child reserved:attribute="Sample" />
15 echo $attr['attribute'];
H A Dbug38406.phpt9 $item->attribute = 'something';
10 var_dump($item->attribute);
12 $item->otherAttribute = $item->attribute;
/PHP-8.1/ext/intl/tests/
H A Dcollator_get_error_message.phpt18 // Try specifying a correct attribute.
23 // Try specifying an incorrect attribute.
36 Error getting attribute value: U_ILLEGAL_ARGUMENT_ERROR
/PHP-8.1/ext/reflection/tests/
H A Dbug81208.phpt2 Bug #81208: Segmentation fault while create newInstance from attribute
18 foreach ($z->getProperty("property")->getAttributes() as $attribute) {
20 $attribute->newInstance();
/PHP-8.1/ext/pdo_mysql/tests/
H A Dpdo_mysql_get_attribute.phpt19 function set_and_get($offset, $db, $attribute, $value) {
24 if (!$db->setAttribute($attribute, $value)) {
25 printf("[%03d] Cannot set attribute '%s' to value '%s'\n",
26 $offset, $attribute, var_export($tmp, true));
31 …printf("[%03d] Call to PDO::setAttribute(int attribute, mixed value) has changed the type of value…
36 $tmp = $db->getAttribute($attribute);
39 …$offset, $attribute, var_export($value, true), gettype($value), var_export($tmp, true), gettype($t…
/PHP-8.1/ext/dom/tests/manually_call_constructor/
H A Dattribute.phpt2 Manually call __construct() - attribute variation
8 $attr = new DOMAttr("attribute", "my value");
27 string(9) "attribute"
/PHP-8.1/Zend/tests/
H A Dfirst_class_callable_assert2.phpt2 Foo(...) in attribute in assert
11 Fatal error: Cannot create Closure as attribute argument in %s on line %d

Completed in 34 milliseconds

123456789