summaryrefslogtreecommitdiff
path: root/ext/ereg/tests/016.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ereg/tests/016.phpt')
-rw-r--r--ext/ereg/tests/016.phpt7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/ereg/tests/016.phpt b/ext/ereg/tests/016.phpt
new file mode 100644
index 0000000000..93dbda7ee5
--- /dev/null
+++ b/ext/ereg/tests/016.phpt
@@ -0,0 +1,7 @@
+--TEST--
+test backslash handling in regular expressions
+--FILE--
+<?php echo ereg_replace('\?',"abc","?123?")?>
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+abc123abc