mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
18 lines
475 B
PHP
18 lines
475 B
PHP
--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--
|
|
|
|
Strict Standards: Only variables should be passed by reference in %s on line 8
|
|
int(2)
|
|
Done
|