2008-04-11 08:57:17 +00:00
|
|
|
--TEST--
|
|
|
|
Test ereg() function : usage variations - pass non-variable as arg 3, which is pass-by-ref.
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
/* Prototype : proto int ereg(string pattern, string string [, array registers])
|
|
|
|
* Description: Regular expression match
|
|
|
|
* Source code: ext/standard/reg.c
|
|
|
|
* Alias to functions:
|
|
|
|
*/
|
|
|
|
|
|
|
|
var_dump(ereg('l{2}', 'hello', str_repeat('x',1)));
|
|
|
|
echo "Done";
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
2008-11-18 17:55:07 +00:00
|
|
|
Strict Standards: Only variables should be passed by reference in %s on line %d
|
2008-04-11 08:57:17 +00:00
|
|
|
|
2008-11-18 17:55:07 +00:00
|
|
|
Deprecated: Function ereg() is deprecated in %s on line %d
|
2008-04-11 08:57:17 +00:00
|
|
|
int(2)
|
2008-11-18 17:55:07 +00:00
|
|
|
Done
|