summaryrefslogtreecommitdiff
path: root/ext/ereg/tests/spliti_error_002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ereg/tests/spliti_error_002.phpt')
-rw-r--r--ext/ereg/tests/spliti_error_002.phpt118
1 files changed, 0 insertions, 118 deletions
diff --git a/ext/ereg/tests/spliti_error_002.phpt b/ext/ereg/tests/spliti_error_002.phpt
deleted file mode 100644
index 19dd171655..0000000000
--- a/ext/ereg/tests/spliti_error_002.phpt
+++ /dev/null
@@ -1,118 +0,0 @@
---TEST--
-Test spliti() function : error conditions - test bad regular expressions
---FILE--
-<?php
-/* Prototype : proto array spliti(string pattern, string string [, int limit])
- * Description: spliti string into array by regular expression
- * Source code: ext/standard/reg.c
- * Alias to functions:
- */
-
-/*
- * Test bad regular expressions
- */
-
-echo "*** Testing spliti() : error conditions ***\n";
-
-$regs = 'original';
-
-var_dump(spliti("", "hello"));
-var_dump(spliti("c(d", "hello"));
-var_dump(spliti("a[b", "hello"));
-var_dump(spliti("c(d", "hello"));
-var_dump(spliti("*", "hello"));
-var_dump(spliti("+", "hello"));
-var_dump(spliti("?", "hello"));
-var_dump(spliti("(+?*)", "hello", $regs));
-var_dump(spliti("h{256}", "hello"));
-var_dump(spliti("h|", "hello"));
-var_dump(spliti("h{0}", "hello"));
-var_dump(spliti("h{2,1}", "hello"));
-var_dump(spliti('[a-c-e]', 'd'));
-var_dump(spliti('\\', 'x'));
-var_dump(spliti('([9-0])', '1', $regs));
-
-//ensure $regs unchanged
-var_dump($regs);
-
-echo "Done";
-?>
---EXPECTF--
-*** Testing spliti() : error conditions ***
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_EMPTY in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_EPAREN in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_EBRACK in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_EPAREN in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_BADRPT in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_BADRPT in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_BADRPT in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti() expects parameter 3 to be long, string given in %s on line %d
-NULL
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_BADBR in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_EMPTY in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_EMPTY in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_BADBR in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_ERANGE in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti(): REG_EESCAPE in %s on line %d
-bool(false)
-
-Deprecated: Function spliti() is deprecated in %s on line %d
-
-Warning: spliti() expects parameter 3 to be long, string given in %s on line %d
-NULL
-string(8) "original"
-Done