1--TEST-- 2show information about extension 3--SKIPIF-- 4<?php 5include "skipif.inc"; 6if (!extension_loaded("reflection") || !extension_loaded("session")) { 7 die("skip reflection and session extensions required"); 8} 9?> 10--INI-- 11date.timezone= 12--FILE-- 13<?php 14 15$php = getenv('TEST_PHP_EXECUTABLE'); 16 17var_dump(`$php -n --re unknown`); 18var_dump(`$php -n --re ""`); 19var_dump(`$php -n --re pcre`); 20 21echo "Done\n"; 22?> 23--EXPECTF-- 24string(44) "Exception: Extension unknown does not exist 25" 26string(37) "Exception: Extension does not exist 27" 28string(%d) "Extension [ <persistent> extension #%d pcre version <no_version> ] { 29 30 - INI { 31 Entry [ pcre.backtrack_limit <ALL> ] 32 Current = '%d' 33 } 34 Entry [ pcre.recursion_limit <ALL> ] 35 Current = '%d' 36 } 37 } 38 39 - Constants [14] { 40 Constant [ integer PREG_PATTERN_ORDER ] { 1 } 41 Constant [ integer PREG_SET_ORDER ] { 2 } 42 Constant [ integer PREG_OFFSET_CAPTURE ] { 256 } 43 Constant [ integer PREG_SPLIT_NO_EMPTY ] { 1 } 44 Constant [ integer PREG_SPLIT_DELIM_CAPTURE ] { 2 } 45 Constant [ integer PREG_SPLIT_OFFSET_CAPTURE ] { 4 } 46 Constant [ integer PREG_GREP_INVERT ] { 1 } 47 Constant [ integer PREG_NO_ERROR ] { 0 } 48 Constant [ integer PREG_INTERNAL_ERROR ] { 1 } 49 Constant [ integer PREG_BACKTRACK_LIMIT_ERROR ] { 2 } 50 Constant [ integer PREG_RECURSION_LIMIT_ERROR ] { 3 } 51 Constant [ integer PREG_BAD_UTF8_ERROR ] { 4 } 52 Constant [ integer PREG_BAD_UTF8_OFFSET_ERROR ] { 5 } 53 Constant [ string PCRE_VERSION ] { %s } 54 } 55 56 - Functions { 57 Function [ <internal:pcre> function preg_match ] { 58 59 - Parameters [5] { 60 Parameter #0 [ <required> $pattern ] 61 Parameter #1 [ <required> $subject ] 62 Parameter #2 [ <optional> &$subpatterns ] 63 Parameter #3 [ <optional> $flags ] 64 Parameter #4 [ <optional> $offset ] 65 } 66 } 67 Function [ <internal:pcre> function preg_match_all ] { 68 69 - Parameters [5] { 70 Parameter #0 [ <required> $pattern ] 71 Parameter #1 [ <required> $subject ] 72 Parameter #2 [ <required> &$subpatterns ] 73 Parameter #3 [ <optional> $flags ] 74 Parameter #4 [ <optional> $offset ] 75 } 76 } 77 Function [ <internal:pcre> function preg_replace ] { 78 79 - Parameters [5] { 80 Parameter #0 [ <required> $regex ] 81 Parameter #1 [ <required> $replace ] 82 Parameter #2 [ <required> $subject ] 83 Parameter #3 [ <optional> $limit ] 84 Parameter #4 [ <optional> &$count ] 85 } 86 } 87 Function [ <internal:pcre> function preg_replace_callback ] { 88 89 - Parameters [5] { 90 Parameter #0 [ <required> $regex ] 91 Parameter #1 [ <required> $callback ] 92 Parameter #2 [ <required> $subject ] 93 Parameter #3 [ <optional> $limit ] 94 Parameter #4 [ <optional> &$count ] 95 } 96 } 97 Function [ <internal:pcre> function preg_filter ] { 98 99 - Parameters [5] { 100 Parameter #0 [ <required> $regex ] 101 Parameter #1 [ <required> $replace ] 102 Parameter #2 [ <required> $subject ] 103 Parameter #3 [ <optional> $limit ] 104 Parameter #4 [ <optional> &$count ] 105 } 106 } 107 Function [ <internal:pcre> function preg_split ] { 108 109 - Parameters [4] { 110 Parameter #0 [ <required> $pattern ] 111 Parameter #1 [ <required> $subject ] 112 Parameter #2 [ <optional> $limit ] 113 Parameter #3 [ <optional> $flags ] 114 } 115 } 116 Function [ <internal:pcre> function preg_quote ] { 117 118 - Parameters [2] { 119 Parameter #0 [ <required> $str ] 120 Parameter #1 [ <optional> $delim_char ] 121 } 122 } 123 Function [ <internal:pcre> function preg_grep ] { 124 125 - Parameters [3] { 126 Parameter #0 [ <required> $regex ] 127 Parameter #1 [ <required> $input ] 128 Parameter #2 [ <optional> $flags ] 129 } 130 } 131 Function [ <internal:pcre> function preg_last_error ] { 132 133 - Parameters [0] { 134 } 135 } 136 } 137} 138 139" 140Done 141