/PHP-8.0/Zend/ |
H A D | zend_attributes.c | 33 if (attr->argc > 0) { in validate_attribute() 73 zend_attribute *attr; in get_attribute() local 76 if (attr->offset == offset && zend_string_equals(attr->lcname, lcname)) { in get_attribute() 77 return attr; in get_attribute() 91 if (attr->offset == offset && ZSTR_LEN(attr->lcname) == len) { in get_attribute_str() 93 return attr; in get_attribute_str() 171 if (other != attr && other->offset == attr->offset) { in zend_is_attribute_repeated() 219 attr->lcname = zend_string_tolower_ex(attr->name, persistent); in zend_add_attribute() 220 attr->flags = flags; in zend_add_attribute() 223 attr->argc = argc; in zend_add_attribute() [all …]
|
H A D | zend_ast.h | 176 zend_ast_attr attr; /* Additional attribute, use depending on node type */ member 184 zend_ast_attr attr; member 193 zend_ast_attr attr; member 200 zend_ast_attr attr; /* Unused - for structure compatibility */ member 241 ast->attr = attr; in zend_ast_create_ex_0() 246 ast->attr = attr; in zend_ast_create_ex_1() 251 ast->attr = attr; in zend_ast_create_ex_2() 256 ast->attr = attr; in zend_ast_create_ex_3() 261 ast->attr = attr; in zend_ast_create_ex_4() 266 ast->attr = attr; in zend_ast_create_ex_5() [all …]
|
/PHP-8.0/Zend/tests/attributes/ |
H A D | 020_userland_attribute_validation.phpt | 10 $attr = $ref->getAttributes()[0]; 11 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_FUNCTION, $attr->isRepeated()); 12 var_dump(get_class($attr->newInstance())); 17 $attr = $ref->getAttributes()[0]; 18 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_CLASS, $attr->isRepeated()); 21 $attr->newInstance(); 29 $attr = $ref->getAttributes()[0]; 30 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_FUNCTION, $attr->isRepeated()); 33 $attr->newInstance(); 44 $attr = $ref->getAttributes()[0]; [all …]
|
H A D | 006_filter.phpt | 7 $attr = $ref->getAttributes(A3::class); 9 var_dump(count($attr)); 12 $attr = $ref->getAttributes(A2::class); 14 var_dump(count($attr), $attr[0]->getName()); 17 $attr = $ref->getAttributes(A2::class); 19 var_dump(count($attr), $attr[0]->getName(), $attr[1]->getName()); 30 var_dump(count($attr)); 35 var_dump(count($attr)); 40 var_dump(count($attr)); 45 var_dump(count($attr)); [all …]
|
H A D | 003_ast_nodes.phpt | 15 $attr = $ref->getAttributes(); 16 var_dump(count($attr)); 18 $args = $attr[0]->getArguments(); 27 $attr = $ref->getAttributes(); 28 var_dump(count($attr)); 45 $attr = $ref->getAttributes(); 46 var_dump(count($attr)); 69 $attr = $ref->getAttributes(); 70 var_dump(count($attr)); 73 $attr[0]->getArguments(); [all …]
|
H A D | 027_trailing_comma_args.phpt | 15 $attr = $ref->getAttributes()[0]; 16 var_dump($attr->getName(), $attr->getArguments());
|
/PHP-8.0/ext/xmlreader/tests/ |
H A D | 003-mb.phpt | 22 $attr = $reader->moveToFirstAttribute(); 27 echo "1st attr (num) failed\n"; 31 $attr = $reader->moveToNextAttribute(); 36 echo "2nd attr (idx) failed\n"; 40 $attr = $reader->moveToAttribute('num'); 45 echo "attr num failed\n"; 48 $attr = $reader->moveToAttribute('idx'); 53 echo "attr idx failed\n"; 57 $attr = $reader->moveToAttributeNo(0); 62 echo "attr 0 failed\n"; [all …]
|
H A D | 003.phpt | 22 $attr = $reader->moveToFirstAttribute(); 27 echo "1st attr (num) failed\n"; 31 $attr = $reader->moveToNextAttribute(); 36 echo "2nd attr (idx) failed\n"; 40 $attr = $reader->moveToAttribute('num'); 45 echo "attr num failed\n"; 48 $attr = $reader->moveToAttribute('idx'); 53 echo "attr idx failed\n"; 57 $attr = $reader->moveToAttributeNo(0); 62 echo "attr 0 failed\n"; [all …]
|
/PHP-8.0/ext/pdo_mysql/tests/ |
H A D | bug_74376.phpt | 14 $attr = getenv('PDOTEST_ATTR'); 15 $attr = $attr ? unserialize($attr) : []; 16 $attr[PDO::ATTR_PERSISTENT] = true; 17 $attr[PDO::ATTR_EMULATE_PREPARES] = false; 19 putenv('PDOTEST_ATTR=' . serialize($attr));
|
H A D | bug_61411.phpt | 25 $attr = getenv('PDOTEST_ATTR'); 26 if (!$attr) { 27 $attr = array(); 29 $attr = unserialize($attr); 31 $attr[PDO::ATTR_PERSISTENT] = true; 32 $attr[PDO::ATTR_EMULATE_PREPARES] = false; 33 putenv('PDOTEST_ATTR='.serialize($attr));
|
/PHP-8.0/ext/dom/tests/ |
H A D | regsiter_node_class.phpt | 23 $attr = $root->getAttributeNode('a'); 24 echo get_class($attr), "\n"; 25 print $attr->testit()."\n"; 26 unset($attr); 28 $attr = $root->getAttributeNode('a'); 29 echo get_class($attr), "\n"; 31 print $attr->testit()."\n";
|
H A D | bug47848.phpt | 12 $fromdom->loadXML('<data xmlns:ai="http://altruists.org" ai:attr="namespaced" />'); 14 $attr= $fromdom->firstChild->attributes->item(0); 16 $att = $aDOM->importNode($attr); 18 $aDOM->documentElement->appendChild($aDOM->importNode($attr, true)); 25 <f2f:a xmlns:f2f="http://friend2friend.net/" xmlns:ai="http://altruists.org" ai:attr="namespaced"/>
|
H A D | DOM4_ParentNode_append_with_attributes.phpt | 10 $dom->loadXML('<test attr-one="21"/>'); 12 $replacement = $dom->createAttribute('attr-one'); 14 $addition = $dom->createAttribute('attr-two'); 30 <test attr-one="21"/>
|
H A D | DOMAttr_value_basic_002.phpt | 10 $attr = new DOMAttr('category'); 11 $attr->value = 1; 12 print $attr->value;
|
H A D | bug61858.phpt | 13 $attr = $example->getAttributeNode('a'); 15 var_dump($attr); 16 print_r($attr);
|
/PHP-8.0/Zend/tests/named_params/ |
H A D | attributes.phpt | 21 $attr = (new ReflectionClass(Test1::class))->getAttributes()[0]; 22 var_dump($attr->getName()); 23 var_dump($attr->getArguments()); 24 var_dump($attr->newInstance()); 26 $attr = (new ReflectionClass(Test2::class))->getAttributes()[0]; 28 var_dump($attr->newInstance());
|
/PHP-8.0/ext/soap/ |
H A D | php_packet_soap.c | 27 xmlAttrPtr attr; in parse_packet_soap() local 79 attr = env->properties; in parse_packet_soap() 80 while (attr != NULL) { in parse_packet_soap() 81 if (attr->ns == NULL) { in parse_packet_soap() 96 attr = attr->next; in parse_packet_soap() 127 attr = body->properties; in parse_packet_soap() 128 while (attr != NULL) { in parse_packet_soap() 129 if (attr->ns == NULL) { in parse_packet_soap() 146 attr = attr->next; in parse_packet_soap() 156 while (attr != NULL) { in parse_packet_soap() [all …]
|
H A D | php_schema.c | 985 if (attr) { in schema_min_max() 992 if (attr) { in schema_min_max() 1590 if (attr) { in schema_element() 1605 if (attr) { in schema_element() 1613 if (attr) { in schema_element() 1622 if (attr) { in schema_element() 1886 attr = attr->next; in schema_attribute() 2116 if (attr->name == NULL && attr->ref != NULL) { in schema_attribute_fixup() 2121 attr->name = estrdup(attr->ref); in schema_attribute_fixup() 2486 free(attr); in delete_extra_attribute_persistent() [all …]
|
/PHP-8.0/ext/tokenizer/tests/ |
H A D | attributes.phpt | 8 $attr = $tokens[1]; 10 var_dump($attr[0] === T_ATTRIBUTE); 11 var_dump($attr[1]);
|
/PHP-8.0/ext/oci8/tests/ |
H A D | conn_attr_1.phpt | 29 foreach($attr_array as $attr) { 30 get_attr($c,$attr); 38 foreach($attr_array as $attr) { 39 set_attr($conn1,$attr,1); 40 get_attr($conn1,$attr); 44 foreach($attr_array as $attr) { 45 set_attr($conn2,$attr,2); 46 get_attr($conn2,$attr); 50 foreach($attr_array as $attr) { 51 set_attr($conn3,$attr,3); [all …]
|
H A D | conn_attr.inc | 51 function get_attr($conn,$attr) 53 $sel_stmt="select " .$attr. " from v\$session where sid = 59 echo "The value of ".$attr ." is ".oci_result($s2,1)."\n"; 88 function set_attr($conn,$attr,$sufix) 90 if (!strcmp($attr,'MODULE')) 92 else if (!strcmp($attr,'ACTION')) 94 else if (!strcmp($attr,'CLIENT_INFO')) 96 else if (!strcmp($attr,'CLIENT_IDENTIFIER')) 101 echo "Value of $attr has been set successfully\n"; 127 function get_sys_attr($conn,$attr) [all …]
|
/PHP-8.0/ext/simplexml/tests/ |
H A D | 020.phpt | 8 $doc = simplexml_load_string('<root><name attr="foo">bar</name></root>'); 9 print $doc->name["attr"]; 11 if ($doc->name["attr"] == "foo") {
|
H A D | 012.phpt | 23 $sxe["attr"] = "value"; 27 $sxe["attr"] = "new value"; 43 <foo attr="value"/> 45 <foo attr="new value"/>
|
/PHP-8.0/ext/pdo/tests/ |
H A D | pdo_test.inc | 25 $attr = getenv('PDOTEST_ATTR'); 26 if (is_string($attr) && strlen($attr)) { 27 $attr = unserialize($attr); 29 $attr = null; 35 $db = new $classname($dsn, $user, $pass, $attr);
|
/PHP-8.0/ext/mysqli/tests/ |
H A D | mysqli_stmt_attr_get.phpt | 29 foreach ($valid_attr as $k => $attr) { 31 if (false === ($tmp = mysqli_stmt_attr_get($stmt, $attr))) { 33 gettype($tmp), $tmp, $k, $attr); 39 foreach ($valid_attr as $k => $attr) { 41 mysqli_stmt_attr_get($stmt, $attr);
|