Annotation of embedaddon/php/ext/ereg/tests/sql_regcase_basic_001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test sql_regcase() function : basic functionality
3: --FILE--
4: <?php
5: /* Prototype : proto string sql_regcase(string string)
6: * Description: Make regular expression for case insensitive match
7: * Source code: ext/standard/reg.c
8: * Alias to functions: msql_regcase
9: */
10:
11: echo "*** Testing sql_regcase() : basic functionality ***\n";
12:
13:
14: // Initialise all required variables
15: $string = 'string_Val-0';
16:
17: // Calling sql_regcase() with all possible arguments
18: var_dump( sql_regcase($string) );
19:
20: echo "Done";
21: ?>
22: --EXPECTF--
23: *** Testing sql_regcase() : basic functionality ***
24:
25: Deprecated: Function sql_regcase() is deprecated in %s on line %d
26: string(39) "[Ss][Tt][Rr][Ii][Nn][Gg]_[Vv][Aa][Ll]-0"
27: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>