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