/PHP-8.4/Zend/tests/ |
H A D | bug47596.phpt | 6 // 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 D | gh14961.phpt | 11 $c->/* comment */class = 42; 12 var_dump($c->/** doc comment */class); 14 // line comment 17 # hash comment 19 var_dump($c?->/* comment */class);
|
/PHP-8.4/ext/reflection/tests/ |
H A D | ReflectionProperty_getDocComment_basic.phpt | 18 /**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 D | ReflectionClass_getDocComment_001.phpt | 27 * 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-8.4/ext/dom/tests/ |
H A D | domchardata.phpt | 23 $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 D | DOMComment_replaceData_basic.phpt | 12 $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 D | DOMComment_construct_basic_001.phpt | 12 $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 D | bug66502.phpt | 9 $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 D | DOMComment_appendData_basic.phpt | 12 $comment = $dom->createComment('test-comment'); 13 $comment->appendData('-more-data'); 14 $dom->appendChild($comment); 21 <!--test-comment-more-data-->
|
H A D | DOMComment_insertData_basic.phpt | 13 $comment = $dom->createComment('test-comment'); 14 $comment->insertData(4,'-inserted'); 15 $dom->appendChild($comment); 21 <!--test-inserted-comment-->
|
/PHP-8.4/ext/dom/tests/manually_call_constructor/ |
H A D | comment.phpt | 2 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-8.4/ext/dom/tests/modern/spec/ |
H A D | CharacterData_substringData_negative_arguments_mod32.phpt | 15 $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 D | CharacterData_replaceData_negative_count_mod32.phpt | 15 $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 D | CharacterData_insertData_negative_offset_mod32.phpt | 15 $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 D | CharacterData_substringData_negative_arguments.phpt | 9 $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 D | CharacterData_replaceData_negative_count.phpt | 9 $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 D | CharacterData_deleteData_negative_in_bounds_length.phpt | 11 $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 D | CharacterData_insertData_negative_offset.phpt | 9 $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-8.4/ext/dom/tests/delayed_freeing/ |
H A D | comment_node.phpt | 2 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-8.4/tests/classes/ |
H A D | constants_comments_001.phpt | 8 /** 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-8.4/ext/simplexml/tests/ |
H A D | bug12170.phpt | 23 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 D | gh12169.phpt | 2 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-8.4/Zend/tests/grammar/ |
H A D | semi_reserved_008.phpt | 9 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-8.4/ext/phar/tests/zip/files/ |
H A D | corrupt_zipmaker.php.inc | 47 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-8.4/ext/dom/tests/modern/xml/ |
H A D | Node_removeChild_from_comment.phpt | 2 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);
|