Home
last modified time | relevance | path

Searched refs:comment (Results 1 – 25 of 253) sorted by relevance

1234567891011

/php-src/Zend/tests/
H A Dbug47596.phpt6 // comment comment comment comment comment comment comment comment comment
7 // comment comment comment comment comment comment comment comment comment
8 // comment comment comment comment comment comment comment comment comment
9 // comment comment comment comment comment comment comment comment comment
10 // comment comment comment comment comment comment comment comment comment
11 // comment comment comment comment comment comment comment comment comment
12 // comment comment comment comment comment comment comment comment comment
13 // comment comment comment comment comment comment comment comment comment
14 // comment comment comment comment comment comment comment comment comment
15 // comment comment comment comment comment comment comment comment comment
[all …]
H A Dgh14961.phpt11 $c->/* comment */class = 42;
12 var_dump($c->/** doc comment */class);
14 // line comment
17 # hash comment
19 var_dump($c?->/* comment */class);
/php-src/ext/reflection/tests/
H A DReflectionProperty_getDocComment_basic.phpt18 /**Not a doc comment */
21 * Doc comment for $f
45 ---> Doc comment for A::$a:
52 ---> Doc comment for A::$b:
56 ---> Doc comment for A::$c:
60 ---> Doc comment for A::$d:
66 ---> Doc comment for A::$e:
70 ---> Doc comment for A::$f:
72 * Doc comment for $f
76 ---> Doc comment for B::$a:
[all …]
H A DReflectionClass_getDocComment_001.phpt27 * Interface doc comment
36 * Not a doc comment
40 /**** Not a doc comment */
43 /**?** Not a doc comment */
46 /** ** Doc comment for G */
59 ---> Doc comment for class A:
71 ---> Doc comment for class B:
75 ---> Doc comment for class C:
79 ---> Doc comment for class D:
83 ---> Doc comment for class E:
[all …]
/php-src/ext/dom/tests/
H A Ddomchardata.phpt23 $charnode->appendChild($comment);
27 $comment->data = 'Updated comment';
40 $comment = new DOMComment('instructions');
42 $comment->data = 'some more instructions';
45 $comment->insertData(10, 'pi ');
46 $comment->replaceData(18, 5, 'i');
47 $comment->insertData(20, 'g');
48 $comment->deleteData(13, 2);
49 $comment->deleteData(10, 3);
50 $comment->insertData(10, 'comment ');
[all …]
H A DDOMComment_replaceData_basic.phpt12 $comment = $dom->createComment('test-comment');
13 $comment->replaceData(4,1,'replaced');
14 $dom->appendChild($comment);
19 $comment = $dom->createComment('test-comment');
20 $comment->replaceData(0,50,'replaced');
21 $dom->appendChild($comment);
H A DDOMComment_construct_basic_001.phpt12 $comment = new DOMComment("This is the first comment.");
13 $comment->__construct("This is the second comment.");
14 $comment = $element->appendChild($comment);
19 <root><!--This is the second comment.--></root>
H A Dbug66502.phpt9 $comment = new DOMComment("Comment 0");
10 $comment = $element->appendChild($comment);
12 $comment->__construct("Comment 1");
13 $comment->__construct("Comment 2");
14 $comment->__construct("Comment 3");
H A DDOMComment_appendData_basic.phpt12 $comment = $dom->createComment('test-comment');
13 $comment->appendData('-more-data');
14 $dom->appendChild($comment);
21 <!--test-comment-more-data-->
H A DDOMComment_insertData_basic.phpt13 $comment = $dom->createComment('test-comment');
14 $comment->insertData(4,'-inserted');
15 $dom->appendChild($comment);
21 <!--test-inserted-comment-->
/php-src/ext/dom/tests/manually_call_constructor/
H A Dcomment.phpt2 Manually call __construct() - comment variation
8 $comment = new DOMComment("my value");
9 var_dump($comment->nodeName, $comment->nodeValue);
10 $comment->__construct("my new value");
11 var_dump($comment->nodeName, $comment->nodeValue);
18 $doc->documentElement->appendChild($comment);
21 $comment->__construct("my even newer value");
22 $doc->documentElement->appendChild($comment);
27 string(8) "#comment"
29 string(8) "#comment"
/php-src/ext/dom/tests/modern/spec/
H A DCharacterData_substringData_negative_arguments_mod32.phpt15 $comment = $dom->createComment("foobarbaz");
16 var_dump($comment->substringData(0, -1));
17 echo $dom->saveHtml($comment), "\n";
18 var_dump($comment->substringData(2, -(2**32 - 2)));
19 echo $dom->saveHtml($comment), "\n";
21 echo $dom->saveHtml($comment), "\n";
26 $comment = $dom->createComment("foobarbaz");
28 var_dump($comment->substringData(0, -1));
32 echo $dom->saveHtml($comment), "\n";
38 echo $dom->saveHtml($comment), "\n";
[all …]
H A DCharacterData_replaceData_negative_count_mod32.phpt15 $comment = $dom->createComment("foobarbaz");
16 $comment->replaceData(0, -1, "A");
17 echo $dom->saveHtml($comment), "\n";
18 $comment = $dom->createComment("foobarbaz");
19 $comment->replaceData(2, -(2**32 - 2), "A");
20 echo $dom->saveHtml($comment), "\n";
25 $comment = $dom->createComment("foobarbaz");
27 $comment->replaceData(0, -1, "A");
31 echo $dom->saveHtml($comment), "\n";
33 $comment->replaceData(2, -(2**32 - 2), "A");
[all …]
H A DCharacterData_insertData_negative_offset_mod32.phpt15 $comment = $dom->createComment("foobarbaz");
17 $comment->insertData(-1, "A");
21 echo $dom->saveHtml($comment), "\n";
22 $comment->insertData(-(2**32 - 1), "A");
23 echo $dom->saveHtml($comment), "\n";
28 $comment = $dom->createComment("foobarbaz");
30 $comment->insertData(-1, "A");
34 echo $dom->saveHtml($comment), "\n";
36 $comment->insertData(-(2**32 - 1), "A");
40 echo $dom->saveHtml($comment), "\n";
H A DCharacterData_substringData_negative_arguments.phpt9 $comment = $dom->createComment("foobarbaz");
10 var_dump($comment->substringData(0, -1));
11 echo $dom->saveHtml($comment), "\n";
12 var_dump($comment->substringData(2, -2));
13 echo $dom->saveHtml($comment), "\n";
15 var_dump($comment->substringData(-2, 2));
19 echo $dom->saveHtml($comment), "\n";
H A DCharacterData_replaceData_negative_count.phpt9 $comment = $dom->createComment("foobarbaz");
10 $comment->replaceData(0, -1, "A");
11 echo $dom->saveHtml($comment), "\n";
12 $comment = $dom->createComment("foobarbaz");
13 $comment->replaceData(2, -2, "A");
14 echo $dom->saveHtml($comment), "\n";
H A DCharacterData_deleteData_negative_in_bounds_length.phpt11 $comment = $dom->createComment("foobarbaz");
12 $comment->deleteData(3, -1);
13 echo $dom->saveHtml($comment), "\n";
18 $comment = $dom->createComment("foobarbaz");
20 $comment->deleteData(3, -1);
24 echo $dom->saveHtml($comment), "\n";
H A DCharacterData_insertData_negative_offset.phpt9 $comment = $dom->createComment("foobarbaz");
11 $comment->insertData(-1, "A");
15 echo $dom->saveHtml($comment), "\n";
16 $comment->insertData(1, "A");
17 echo $dom->saveHtml($comment), "\n";
/php-src/ext/dom/tests/delayed_freeing/
H A Dcomment_node.phpt2 Delayed freeing comment node
8 $comment = $doc->appendChild($doc->createElement('container'))
9 ->appendChild($doc->createComment('my comment'));
11 $comment->parentNode->remove();
13 echo $doc->saveXML($comment), "\n";
14 var_dump($comment->parentNode);
18 <container><!--my comment--></container>
22 <!--my comment-->
/php-src/tests/classes/
H A Dconstants_comments_001.phpt8 /** comment X1 */
11 /** comment X3 */
15 /** comment Y1 */
18 /** comment Y3 */
29 Y1 : /** comment Y1 */
31 Y3 : /** comment Y3 */
32 X1 : /** comment X1 */
34 X3 : /** comment X3 */
/php-src/ext/simplexml/tests/
H A Dbug12170.phpt23 foreach ($sxe->xpath('//comment()') as $comment) {
24 var_dump($comment->getName());
25 var_dump($comment->asXML());
38 ["comment"]=>
44 ["comment"]=>
49 string(7) "comment"
51 string(7) "comment"
H A Dgh12169.phpt2 GH-12169 (Unable to get comment contents in SimpleXML)
11 <!-- comment contents -->
17 var_dump($sxe->xpath("//comment()")[0]->getName());
18 var_dump((string) $sxe->xpath("//comment()")[0]);
22 string(7) "comment"
23 string(18) " comment contents "
/php-src/Zend/tests/grammar/
H A Dsemi_reserved_008.phpt9 public static function /* comment */ catch(){ echo __METHOD__, PHP_EOL; }
10 private static function // comment
13 # comment
28 /** doc comment */
30 catch /* comment */
31 // comment
32 # comment
39 try /*comment*/ as public attempt;
40 exit // comment
41 as/*comment*/die; // non qualified
/php-src/ext/phar/tests/zip/files/
H A Dcorrupt_zipmaker.php.inc47 var $comment = "";
64 function setComment($comment) { $this->comment = $comment; }
231 case 'comment' :
288 strlen($this->comment)) . $this->comment;
294 strlen($this->comment)) . $this->comment;
300 strlen($this->comment)) . $this->comment;
306 strlen($this->comment)) . $this->comment;
312 strlen($this->comment)) . $this->comment;
318 strlen($this->comment)) . $this->comment;
320 case 'comment' :
[all …]
/php-src/ext/dom/tests/modern/xml/
H A DNode_removeChild_from_comment.phpt2 Removing a child from a comment should result in NOT_FOUND_ERR
8 $dom = Dom\XMLDocument::createFromString('<root><!-- comment --><child/></root>');
9 $comment = $dom->documentElement->firstChild;
10 $child = $comment->nextSibling;
13 $comment->removeChild($child);

Completed in 24 milliseconds

1234567891011