repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git]
/
release
/
src
/
router
/
php
/
ext
/
ereg
/
tests
/
004.phpt
blob
db16fe14713b5d002e487b6125a72e5b87efe131
1
--TEST--
2
simple ereg test
3
--FILE--
4
<?php $a="This is a nice and simple string";
5
if (ereg(".*nice and simple.*",$a)) {
6
echo "ok\n";
7
}
8
if (!ereg(".*doesn't exist.*",$a)) {
9
echo "ok\n";
10
}
11
?>
12
--EXPECTF--
13
Deprecated: Function ereg() is deprecated in %s on line %d
14
ok
15
16
Deprecated: Function ereg() is deprecated in %s on line %d
17
ok