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(2194) "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 = '' ] 54 Property [ protected $code = 0 ] 55 Property [ protected $file = NULL ] 56 Property [ protected $line = NULL ] 57 Property [ private array $trace = Array ] 58 Property [ private ?Throwable $previous = NULL ] 59 } 60 61 - Methods [11] { 62 Method [ <internal:Core> final 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 } 83 84 Method [ <internal:Core, prototype Throwable> final public method getMessage ] { 85 86 - Parameters [0] { 87 } 88 - Return [ string ] 89 } 90 91 Method [ <internal:Core, prototype Throwable> final public method getCode ] { 92 93 - Parameters [0] { 94 } 95 } 96 97 Method [ <internal:Core, prototype Throwable> final public method getFile ] { 98 99 - Parameters [0] { 100 } 101 - Return [ string ] 102 } 103 104 Method [ <internal:Core, prototype Throwable> final public method getLine ] { 105 106 - Parameters [0] { 107 } 108 - Return [ int ] 109 } 110 111 Method [ <internal:Core, prototype Throwable> final public method getTrace ] { 112 113 - Parameters [0] { 114 } 115 - Return [ array ] 116 } 117 118 Method [ <internal:Core, prototype Throwable> final public method getPrevious ] { 119 120 - Parameters [0] { 121 } 122 - Return [ ?Throwable ] 123 } 124 125 Method [ <internal:Core, prototype Throwable> final public method getTraceAsString ] { 126 127 - Parameters [0] { 128 } 129 - Return [ string ] 130 } 131 132 Method [ <internal:Core, prototype Stringable> public method __toString ] { 133 134 - Parameters [0] { 135 } 136 - Return [ string ] 137 } 138 } 139} 140 141" 142Done 143