Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / php / ext / ereg / tests / ereg_variation_004.phpt
blob86f616f86fd963ea0b79762633ef868aa703e9ec
1 --TEST--
2 Test ereg() function : usage variations - pass non-variable as arg 3, which is pass-by-ref.
3 --FILE--
4 <?php
5 /* Prototype  : proto int ereg(string pattern, string string [, array registers])
6  * Description: Regular expression match 
7  * Source code: ext/standard/reg.c
8  * Alias to functions: 
9  */
11 var_dump(ereg('l{2}', 'hello', str_repeat('x',1)));
12 echo "Done";
14 --EXPECTF--
15 Strict Standards: Only variables should be passed by reference in %s on line %d
17 Deprecated: Function ereg() is deprecated in %s on line %d
18 int(2)
19 Done