mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
18 lines
341 B
PHP
18 lines
341 B
PHP
--TEST--
|
|
simple ereg test
|
|
--FILE--
|
|
<?php $a="This is a nice and simple string";
|
|
if (ereg(".*nice and simple.*",$a)) {
|
|
echo "ok\n";
|
|
}
|
|
if (!ereg(".*doesn't exist.*",$a)) {
|
|
echo "ok\n";
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Function ereg() is deprecated in %s on line %d
|
|
ok
|
|
|
|
Deprecated: Function ereg() is deprecated in %s on line %d
|
|
ok
|