mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +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.
11 lines
190 B
PHP
11 lines
190 B
PHP
--TEST--
|
|
Test back-references in regular expressions
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php
|
|
echo ereg_replace("([a-z]*)([-=+|]*)([0-9]+)","\\3 \\1 \\2\n","abc+-|=123");
|
|
?>
|
|
--EXPECT--
|
|
123 abc +-|=
|