diff options
Diffstat (limited to 'ext/ereg/tests/004.phpt')
-rw-r--r-- | ext/ereg/tests/004.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/ereg/tests/004.phpt b/ext/ereg/tests/004.phpt new file mode 100644 index 0000000..db16fe1 --- /dev/null +++ b/ext/ereg/tests/004.phpt @@ -0,0 +1,17 @@ +--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 |