mirror of
https://github.com/php/php-src.git
synced 2024-10-13 12:32:38 +00:00
315f4f5658
Took the old PHP 3 regression testing framework and rewrote it in PHP. Should work on both Windows and UNIX, however I have not tested it on Windows. See tests/README for how to write tests. Added the PHP 3 tests and converted most of them.
21 lines
348 B
PHP
21 lines
348 B
PHP
--TEST--
|
|
Test Regular expression register support in ereg
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php $a="This is a nice and simple string";
|
|
echo ereg(".*(is).*(is).*",$a,$registers);
|
|
echo "\n";
|
|
echo $registers[0];
|
|
echo "\n";
|
|
echo $registers[1];
|
|
echo "\n";
|
|
echo $registers[2];
|
|
echo "\n";
|
|
?>
|
|
--EXPECT--
|
|
32
|
|
This is a nice and simple string
|
|
is
|
|
is
|