File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
ereg /
tests /
eregi_basic_003.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:54 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
Test eregi() function : basic functionality - long RE
--FILE--
<?php
/* Prototype : proto int eregi(string pattern, string string [, array registers])
* Description: Regular expression match
* Source code: ext/standard/reg.c
* Alias to functions:
*/
/*
* Test a long RE with lots of matches
*/
var_dump(eregi(str_repeat('(.)', 2048), str_repeat('x', 2048)));
var_dump(eregi(str_repeat('(.)', 2048), str_repeat('x', 2048), $regs));
var_dump(count($regs));
echo "Done";
?>
--EXPECTF--
Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
Deprecated: Function eregi() is deprecated in %s on line %d
int(2048)
int(2049)
Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>