1--TEST-- 2show information about class 3--SKIPIF-- 4<?php 5include "skipif.inc"; 6?> 7--FILE-- 8<?php 9 10$php = getenv('TEST_PHP_EXECUTABLE'); 11 12var_dump(`"$php" -n --rc unknown`); 13var_dump(`"$php" -n --rc stdclass`); 14var_dump(`"$php" -n --rc exception`); 15 16echo "Done\n"; 17?> 18--EXPECT-- 19string(42) "Exception: Class "unknown" does not exist 20" 21string(183) "Class [ <internal:Core> class stdClass ] { 22 23 - Constants [0] { 24 } 25 26 - Static properties [0] { 27 } 28 29 - Static methods [0] { 30 } 31 32 - Properties [0] { 33 } 34 35 - Methods [0] { 36 } 37} 38 39" 40string(2232) "Class [ <internal:Core> class Exception implements Stringable, Throwable ] { 41 42 - Constants [0] { 43 } 44 45 - Static properties [0] { 46 } 47 48 - Static methods [0] { 49 } 50 51 - Properties [7] { 52 Property [ protected $message = '' ] 53 Property [ private string $string = '' ] 54 Property [ protected $code = 0 ] 55 Property [ protected string $file = '' ] 56 Property [ protected int $line = 0 ] 57 Property [ private array $trace = [] ] 58 Property [ private ?Throwable $previous = NULL ] 59 } 60 61 - Methods [11] { 62 Method [ <internal:Core> private method __clone ] { 63 64 - Parameters [0] { 65 } 66 - Return [ void ] 67 } 68 69 Method [ <internal:Core, ctor> public method __construct ] { 70 71 - Parameters [3] { 72 Parameter #0 [ <optional> string $message = "" ] 73 Parameter #1 [ <optional> int $code = 0 ] 74 Parameter #2 [ <optional> ?Throwable $previous = null ] 75 } 76 } 77 78 Method [ <internal:Core> public method __wakeup ] { 79 80 - Parameters [0] { 81 } 82 - Tentative return [ void ] 83 } 84 85 Method [ <internal:Core, prototype Throwable> final public method getMessage ] { 86 87 - Parameters [0] { 88 } 89 - Return [ string ] 90 } 91 92 Method [ <internal:Core, prototype Throwable> final public method getCode ] { 93 94 - Parameters [0] { 95 } 96 } 97 98 Method [ <internal:Core, prototype Throwable> final public method getFile ] { 99 100 - Parameters [0] { 101 } 102 - Return [ string ] 103 } 104 105 Method [ <internal:Core, prototype Throwable> final public method getLine ] { 106 107 - Parameters [0] { 108 } 109 - Return [ int ] 110 } 111 112 Method [ <internal:Core, prototype Throwable> final public method getTrace ] { 113 114 - Parameters [0] { 115 } 116 - Return [ array ] 117 } 118 119 Method [ <internal:Core, prototype Throwable> final public method getPrevious ] { 120 121 - Parameters [0] { 122 } 123 - Return [ ?Throwable ] 124 } 125 126 Method [ <internal:Core, prototype Throwable> final public method getTraceAsString ] { 127 128 - Parameters [0] { 129 } 130 - Return [ string ] 131 } 132 133 Method [ <internal:Core, prototype Stringable> public method __toString ] { 134 135 - Parameters [0] { 136 } 137 - Return [ string ] 138 } 139 } 140} 141 142" 143Done 144