Annotation of embedaddon/php/ext/ereg/tests/ereg_variation_004.phpt, revision 1.1.1.1

1.1       misho       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:  */
                     10: 
                     11: var_dump(ereg('l{2}', 'hello', str_repeat('x',1)));
                     12: echo "Done";
                     13: ?>
                     14: --EXPECTF--
                     15: Strict Standards: Only variables should be passed by reference in %s on line %d
                     16: 
                     17: Deprecated: Function ereg() is deprecated in %s on line %d
                     18: int(2)
                     19: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>