summaryrefslogtreecommitdiff
path: root/ext/ereg
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-11-18 17:55:07 +0000
committerFelipe Pena <felipe@php.net>2008-11-18 17:55:07 +0000
commit1881091e0f3633d14683debb68684a77b8d4e319 (patch)
tree9b9e5400b1a7d99feec643e30a7b2d8c68fecb0f /ext/ereg
parent825034cea5546ba9c5542abbd863338c2ec0beaf (diff)
downloadphp-git-1881091e0f3633d14683debb68684a77b8d4e319.tar.gz
- Deprecate ereg
Diffstat (limited to 'ext/ereg')
-rw-r--r--ext/ereg/ereg.c32
-rw-r--r--ext/ereg/tests/001.phpt3
-rw-r--r--ext/ereg/tests/002.phpt3
-rw-r--r--ext/ereg/tests/003.phpt3
-rw-r--r--ext/ereg/tests/004.phpt5
-rw-r--r--ext/ereg/tests/005.phpt3
-rw-r--r--ext/ereg/tests/006.phpt3
-rw-r--r--ext/ereg/tests/007.phpt3
-rw-r--r--ext/ereg/tests/008.phpt3
-rw-r--r--ext/ereg/tests/009.phpt3
-rw-r--r--ext/ereg/tests/010.phpt3
-rw-r--r--ext/ereg/tests/011.phpt3
-rw-r--r--ext/ereg/tests/012.phpt3
-rw-r--r--ext/ereg/tests/013.phpt3
-rw-r--r--ext/ereg/tests/014.phpt3
-rw-r--r--ext/ereg/tests/015.phpt3
-rw-r--r--ext/ereg/tests/016.phpt3
-rw-r--r--ext/ereg/tests/ereg_basic_001.phpt28
-rw-r--r--ext/ereg/tests/ereg_basic_002.phpt28
-rw-r--r--ext/ereg/tests/ereg_basic_003.phpt5
-rw-r--r--ext/ereg/tests/ereg_basic_004.phpt13
-rw-r--r--ext/ereg/tests/ereg_error_001.phpt8
-rw-r--r--ext/ereg/tests/ereg_error_002.phpt62
-rw-r--r--ext/ereg/tests/ereg_replace_basic_001.phpt28
-rw-r--r--ext/ereg/tests/ereg_replace_basic_002.phpt13
-rw-r--r--ext/ereg/tests/ereg_replace_error_001.phpt8
-rw-r--r--ext/ereg/tests/ereg_replace_error_002.phpt62
-rw-r--r--ext/ereg/tests/ereg_replace_variation_001.phpt27
-rw-r--r--ext/ereg/tests/ereg_replace_variation_002.phpt29
-rw-r--r--ext/ereg/tests/ereg_replace_variation_003.phpt25
-rw-r--r--ext/ereg/tests/ereg_variation_001.phpt27
-rw-r--r--ext/ereg/tests/ereg_variation_002.phpt25
-rw-r--r--ext/ereg/tests/ereg_variation_003.phpt24
-rw-r--r--ext/ereg/tests/ereg_variation_004.phpt5
-rw-r--r--ext/ereg/tests/eregi_basic.phpt6
-rw-r--r--ext/ereg/tests/eregi_basic_001.phpt28
-rw-r--r--ext/ereg/tests/eregi_basic_002.phpt28
-rw-r--r--ext/ereg/tests/eregi_basic_003.phpt5
-rw-r--r--ext/ereg/tests/eregi_basic_004.phpt11
-rw-r--r--ext/ereg/tests/eregi_error_001.phpt8
-rw-r--r--ext/ereg/tests/eregi_error_002.phpt62
-rw-r--r--ext/ereg/tests/eregi_replace_basic.phpt4
-rw-r--r--ext/ereg/tests/eregi_replace_basic_001.phpt28
-rw-r--r--ext/ereg/tests/eregi_replace_basic_002.phpt11
-rw-r--r--ext/ereg/tests/eregi_replace_error_001.phpt8
-rw-r--r--ext/ereg/tests/eregi_replace_error_002.phpt62
-rw-r--r--ext/ereg/tests/eregi_replace_variation_001.phpt27
-rw-r--r--ext/ereg/tests/eregi_replace_variation_002.phpt29
-rw-r--r--ext/ereg/tests/eregi_replace_variation_003.phpt25
-rw-r--r--ext/ereg/tests/eregi_variation_001.phpt27
-rw-r--r--ext/ereg/tests/eregi_variation_002.phpt25
-rw-r--r--ext/ereg/tests/eregi_variation_003.phpt24
-rw-r--r--ext/ereg/tests/eregi_variation_004.phpt5
-rw-r--r--ext/ereg/tests/split_basic_001.phpt30
-rw-r--r--ext/ereg/tests/split_basic_002.phpt30
-rw-r--r--ext/ereg/tests/split_basic_003.phpt13
-rw-r--r--ext/ereg/tests/split_error_001.phpt8
-rw-r--r--ext/ereg/tests/split_error_002.phpt60
-rw-r--r--ext/ereg/tests/split_variation_001.phpt25
-rw-r--r--ext/ereg/tests/split_variation_002.phpt25
-rw-r--r--ext/ereg/tests/split_variation_003.phpt22
-rw-r--r--ext/ereg/tests/split_variation_004.phpt5
-rw-r--r--ext/ereg/tests/spliti_basic_001.phpt30
-rw-r--r--ext/ereg/tests/spliti_basic_002.phpt30
-rw-r--r--ext/ereg/tests/spliti_basic_003.phpt11
-rw-r--r--ext/ereg/tests/spliti_basic_004.phpt9
-rw-r--r--ext/ereg/tests/spliti_error_001.phpt4
-rw-r--r--ext/ereg/tests/spliti_error_002.phpt56
-rw-r--r--ext/ereg/tests/spliti_variation_001.phpt25
-rw-r--r--ext/ereg/tests/spliti_variation_002.phpt25
-rw-r--r--ext/ereg/tests/spliti_variation_003.phpt32
-rw-r--r--ext/ereg/tests/spliti_variation_004.phpt5
-rw-r--r--ext/ereg/tests/sql_regcase_basic_001.phpt4
-rw-r--r--ext/ereg/tests/sql_regcase_error_001.phpt8
-rw-r--r--ext/ereg/tests/sql_regcase_variation_001.phpt37
75 files changed, 1218 insertions, 198 deletions
diff --git a/ext/ereg/ereg.c b/ext/ereg/ereg.c
index 0e5ed1f767..42ca7c57ef 100644
--- a/ext/ereg/ereg.c
+++ b/ext/ereg/ereg.c
@@ -33,36 +33,18 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_ereg, 0, 0, 2)
ZEND_ARG_INFO(1, registers) /* ARRAY_INFO(1, registers, 1) */
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_eregi, 0, 0, 2)
- ZEND_ARG_INFO(0, pattern)
- ZEND_ARG_INFO(0, string)
- ZEND_ARG_INFO(1, registers) /* ARRAY_INFO(1, registers, 1) */
-ZEND_END_ARG_INFO()
-
ZEND_BEGIN_ARG_INFO(arginfo_ereg_replace, 0)
ZEND_ARG_INFO(0, pattern)
ZEND_ARG_INFO(0, replacement)
ZEND_ARG_INFO(0, string)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO(arginfo_eregi_replace, 0)
- ZEND_ARG_INFO(0, pattern)
- ZEND_ARG_INFO(0, replacement)
- ZEND_ARG_INFO(0, string)
-ZEND_END_ARG_INFO()
-
ZEND_BEGIN_ARG_INFO_EX(arginfo_split, 0, 0, 2)
ZEND_ARG_INFO(0, pattern)
ZEND_ARG_INFO(0, string)
ZEND_ARG_INFO(0, limit)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_spliti, 0, 0, 2)
- ZEND_ARG_INFO(0, pattern)
- ZEND_ARG_INFO(0, string)
- ZEND_ARG_INFO(0, limit)
-ZEND_END_ARG_INFO()
-
ZEND_BEGIN_ARG_INFO(arginfo_sql_regcase, 0)
ZEND_ARG_INFO(0, string)
ZEND_END_ARG_INFO()
@@ -70,13 +52,13 @@ ZEND_END_ARG_INFO()
/* {{{ Function table */
const zend_function_entry ereg_functions[] = {
- PHP_FE(ereg, arginfo_ereg)
- PHP_FE(ereg_replace, arginfo_ereg_replace)
- PHP_FE(eregi, arginfo_eregi)
- PHP_FE(eregi_replace, arginfo_eregi_replace)
- PHP_FE(split, arginfo_split)
- PHP_FE(spliti, arginfo_spliti)
- PHP_FE(sql_regcase, arginfo_sql_regcase)
+ PHP_DEP_FE(ereg, arginfo_ereg)
+ PHP_DEP_FE(ereg_replace, arginfo_ereg_replace)
+ PHP_DEP_FE(eregi, arginfo_ereg)
+ PHP_DEP_FE(eregi_replace, arginfo_ereg_replace)
+ PHP_DEP_FE(split, arginfo_split)
+ PHP_DEP_FE(spliti, arginfo_split)
+ PHP_DEP_FE(sql_regcase, arginfo_sql_regcase)
{NULL, NULL, NULL}
};
/* }}} */
diff --git a/ext/ereg/tests/001.phpt b/ext/ereg/tests/001.phpt
index 13c50d0d1e..0ba697978c 100644
--- a/ext/ereg/tests/001.phpt
+++ b/ext/ereg/tests/001.phpt
@@ -3,5 +3,6 @@ RegReplace test 1
--FILE--
<?php $a="abc123";
echo ereg_replace("123","def",$a)?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
abcdef
diff --git a/ext/ereg/tests/002.phpt b/ext/ereg/tests/002.phpt
index abe9e063d8..6ce12a936a 100644
--- a/ext/ereg/tests/002.phpt
+++ b/ext/ereg/tests/002.phpt
@@ -3,5 +3,6 @@ RegReplace test 2
--FILE--
<?php $a="abc123";
echo ereg_replace("123","",$a)?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
abc
diff --git a/ext/ereg/tests/003.phpt b/ext/ereg/tests/003.phpt
index 4257f0d27e..5431349fa9 100644
--- a/ext/ereg/tests/003.phpt
+++ b/ext/ereg/tests/003.phpt
@@ -4,5 +4,6 @@ ereg_replace single-quote test
<?php $a="\\'test";
echo ereg_replace("\\\\'","'",$a)
?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
'test
diff --git a/ext/ereg/tests/004.phpt b/ext/ereg/tests/004.phpt
index 3e535c6a9d..db16fe1471 100644
--- a/ext/ereg/tests/004.phpt
+++ b/ext/ereg/tests/004.phpt
@@ -9,6 +9,9 @@ simple ereg test
echo "ok\n";
}
?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg() is deprecated in %s on line %d
ok
+
+Deprecated: Function ereg() is deprecated in %s on line %d
ok
diff --git a/ext/ereg/tests/005.phpt b/ext/ereg/tests/005.phpt
index ee9ccc6da4..127ede0c49 100644
--- a/ext/ereg/tests/005.phpt
+++ b/ext/ereg/tests/005.phpt
@@ -11,7 +11,8 @@ Test Regular expression register support in ereg
echo $registers[2];
echo "\n";
?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg() is deprecated in %s on line %d
32
This is a nice and simple string
is
diff --git a/ext/ereg/tests/006.phpt b/ext/ereg/tests/006.phpt
index cae349672e..7df88dd321 100644
--- a/ext/ereg/tests/006.phpt
+++ b/ext/ereg/tests/006.phpt
@@ -4,5 +4,6 @@ Test ereg_replace of start-of-line
<?php $a="This is a nice and simple string";
echo ereg_replace("^This","That",$a);
?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
That is a nice and simple string
diff --git a/ext/ereg/tests/007.phpt b/ext/ereg/tests/007.phpt
index beb3cdc159..3bbd6551b6 100644
--- a/ext/ereg/tests/007.phpt
+++ b/ext/ereg/tests/007.phpt
@@ -6,5 +6,6 @@ Test empty result buffer in reg_replace
$b=ereg_replace("abcd","",$a);
echo "strlen(\$b)=".strlen($b);
?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
strlen($b)=0
diff --git a/ext/ereg/tests/008.phpt b/ext/ereg/tests/008.phpt
index 9a0cedabc5..ad34ba3978 100644
--- a/ext/ereg/tests/008.phpt
+++ b/ext/ereg/tests/008.phpt
@@ -4,5 +4,6 @@ Test back-references in regular expressions
<?php
echo ereg_replace("([a-z]*)([-=+|]*)([0-9]+)","\\3 \\1 \\2\n","abc+-|=123");
?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
123 abc +-|=
diff --git a/ext/ereg/tests/009.phpt b/ext/ereg/tests/009.phpt
index 528606f3c8..513f31a83e 100644
--- a/ext/ereg/tests/009.phpt
+++ b/ext/ereg/tests/009.phpt
@@ -9,7 +9,8 @@ test");
echo $a[$i] . "\n";
}
?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function split() is deprecated in %s on line %d
4
this
is
diff --git a/ext/ereg/tests/010.phpt b/ext/ereg/tests/010.phpt
index f6f8909f73..52a3e3bb1c 100644
--- a/ext/ereg/tests/010.phpt
+++ b/ext/ereg/tests/010.phpt
@@ -3,5 +3,6 @@ Long back references
--FILE--
<?php $a="abc122222222223";
echo ereg_replace("1(2*)3","\\1def\\1",$a)?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
abc2222222222def2222222222
diff --git a/ext/ereg/tests/011.phpt b/ext/ereg/tests/011.phpt
index 65554b302f..8bd51b467a 100644
--- a/ext/ereg/tests/011.phpt
+++ b/ext/ereg/tests/011.phpt
@@ -3,5 +3,6 @@
--FILE--
<?php $a="abc123";
echo ereg_replace("123","def\\0ghi",$a)?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
abcdef123ghi
diff --git a/ext/ereg/tests/012.phpt b/ext/ereg/tests/012.phpt
index 88ad5992ad..d54ae01f12 100644
--- a/ext/ereg/tests/012.phpt
+++ b/ext/ereg/tests/012.phpt
@@ -3,5 +3,6 @@ nonexisting back reference
--FILE--
<?php $a="abc123";
echo ereg_replace("123",'def\1ghi',$a)?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
abcdef\1ghi
diff --git a/ext/ereg/tests/013.phpt b/ext/ereg/tests/013.phpt
index a2d9ee0099..23f6944ff5 100644
--- a/ext/ereg/tests/013.phpt
+++ b/ext/ereg/tests/013.phpt
@@ -3,5 +3,6 @@ escapes in replace string
--FILE--
<?php $a="abc123";
echo ereg_replace("123","def\\g\\\\hi\\",$a)?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
abcdef\g\\hi\
diff --git a/ext/ereg/tests/014.phpt b/ext/ereg/tests/014.phpt
index d2a32451a9..ac68802061 100644
--- a/ext/ereg/tests/014.phpt
+++ b/ext/ereg/tests/014.phpt
@@ -3,5 +3,6 @@ backreferences not replaced recursively
--FILE--
<?php $a="a\\2bxc";
echo ereg_replace("a(.*)b(.*)c","\\1",$a)?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
\2
diff --git a/ext/ereg/tests/015.phpt b/ext/ereg/tests/015.phpt
index c255ddf05b..edb8e709c6 100644
--- a/ext/ereg/tests/015.phpt
+++ b/ext/ereg/tests/015.phpt
@@ -2,5 +2,6 @@
replace empty matches
--FILE--
<?php echo ereg_replace("^","z","abc123")?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
zabc123
diff --git a/ext/ereg/tests/016.phpt b/ext/ereg/tests/016.phpt
index c354ab26fc..93dbda7ee5 100644
--- a/ext/ereg/tests/016.phpt
+++ b/ext/ereg/tests/016.phpt
@@ -2,5 +2,6 @@
test backslash handling in regular expressions
--FILE--
<?php echo ereg_replace('\?',"abc","?123?")?>
---EXPECT--
+--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
abc123abc
diff --git a/ext/ereg/tests/ereg_basic_001.phpt b/ext/ereg/tests/ereg_basic_001.phpt
index 485b2d26e8..e9dad37636 100644
--- a/ext/ereg/tests/ereg_basic_001.phpt
+++ b/ext/ereg/tests/ereg_basic_001.phpt
@@ -28,6 +28,8 @@ echo "Done";
--EXPECTF--
*** Testing ereg() : basic functionality ***
--> Pattern: '..(a|b|c)(a|b|c)..'; string: '--- ab ---'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(6)
array(3) {
[0]=>
@@ -38,6 +40,8 @@ array(3) {
string(1) "b"
}
--> Pattern: '()'; string: ''
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
array(2) {
[0]=>
@@ -46,6 +50,8 @@ array(2) {
bool(false)
}
--> Pattern: '()'; string: 'abcdef'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
array(2) {
[0]=>
@@ -54,12 +60,16 @@ array(2) {
bool(false)
}
--> Pattern: '[x]|[^x]'; string: 'abcdef'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
array(1) {
[0]=>
string(1) "a"
}
--> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; string: '--- aaa bbb ccc ddd ---'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(15)
array(6) {
[0]=>
@@ -76,36 +86,48 @@ array(6) {
string(3) "ddd"
}
--> Pattern: '\\\`\^\.\[\$\(\)\|\*\+\?\{\''; string: '\`^.[$()|*+?{''
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(14)
array(1) {
[0]=>
string(14) "\`^.[$()|*+?{'"
}
--> Pattern: '\a'; string: 'a'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
array(1) {
[0]=>
string(1) "a"
}
--> Pattern: '[0-9][^0-9]'; string: '2a'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(2)
array(1) {
[0]=>
string(2) "2a"
}
--> Pattern: '^[[:alnum:]]{62,62}$'; string: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(62)
array(1) {
[0]=>
string(62) "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
}
--> Pattern: '^[[:digit:]]{5}'; string: '0123456789'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(5)
array(1) {
[0]=>
string(5) "01234"
}
--> Pattern: '[[:digit:]]{5}$'; string: '0123456789'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(5)
array(1) {
[0]=>
@@ -113,15 +135,19 @@ array(1) {
}
--> Pattern: '[[:blank:]]{1,10}'; string: '
'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(2)
array(1) {
[0]=>
string(2) " "
}
--> Pattern: '[[:print:]]{3}'; string: ' a '
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(3)
array(1) {
[0]=>
string(3) " a "
}
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/ereg_basic_002.phpt b/ext/ereg/tests/ereg_basic_002.phpt
index 672632fc7d..75665fb100 100644
--- a/ext/ereg/tests/ereg_basic_002.phpt
+++ b/ext/ereg/tests/ereg_basic_002.phpt
@@ -27,30 +27,56 @@ echo "Done";
--EXPECTF--
*** Testing ereg() : basic functionality ***
--> Pattern: '..(a|b|c)(a|b|c)..'; string: '--- ab ---'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
--> Pattern: '()'; string: ''
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
--> Pattern: '()'; string: 'abcdef'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
--> Pattern: '[x]|[^x]'; string: 'abcdef'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
--> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; string: '--- aaa bbb ccc ddd ---'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
--> Pattern: '\\\`\^\.\[\$\(\)\|\*\+\?\{\''; string: '\`^.[$()|*+?{''
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
--> Pattern: '\a'; string: 'a'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
--> Pattern: '[0-9][^0-9]'; string: '2a'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
--> Pattern: '^[[:alnum:]]{62,62}$'; string: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
--> Pattern: '^[[:digit:]]{5}'; string: '0123456789'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
--> Pattern: '[[:digit:]]{5}$'; string: '0123456789'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
--> Pattern: '[[:blank:]]{1,10}'; string: '
'
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
--> Pattern: '[[:print:]]{3}'; string: ' a '
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/ereg_basic_003.phpt b/ext/ereg/tests/ereg_basic_003.phpt
index 8c14738832..0cbe0797b9 100644
--- a/ext/ereg/tests/ereg_basic_003.phpt
+++ b/ext/ereg/tests/ereg_basic_003.phpt
@@ -19,7 +19,10 @@ var_dump(count($regs));
echo "Done";
?>
--EXPECTF--
+Deprecated: Function ereg() is deprecated in %s on line %d
int(1)
+
+Deprecated: Function ereg() is deprecated in %s on line %d
int(2048)
int(2049)
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/ereg_basic_004.phpt b/ext/ereg/tests/ereg_basic_004.phpt
index 1356eaf637..20bdf80073 100644
--- a/ext/ereg/tests/ereg_basic_004.phpt
+++ b/ext/ereg/tests/ereg_basic_004.phpt
@@ -23,11 +23,22 @@ var_dump($regs);
echo "Done";
?>
--EXPECTF--
+Deprecated: Function ereg() is deprecated in %s on line %d
bool(false)
+
+Deprecated: Function ereg() is deprecated in %s on line %d
bool(false)
+
+Deprecated: Function ereg() is deprecated in %s on line %d
bool(false)
+
+Deprecated: Function ereg() is deprecated in %s on line %d
bool(false)
+
+Deprecated: Function ereg() is deprecated in %s on line %d
bool(false)
+
+Deprecated: Function ereg() is deprecated in %s on line %d
bool(false)
string(8) "original"
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/ereg_error_001.phpt b/ext/ereg/tests/ereg_error_001.phpt
index 6232326317..ccb770897d 100644
--- a/ext/ereg/tests/ereg_error_001.phpt
+++ b/ext/ereg/tests/ereg_error_001.phpt
@@ -35,11 +35,15 @@ echo "Done";
-- Testing ereg() function with more than expected no. of arguments --
-Warning: ereg() expects at most 3 parameters, 4 given in %s on line 21
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg() expects at most 3 parameters, 4 given in %s on line %d
NULL
-- Testing ereg() function with less than expected no. of arguments --
-Warning: ereg() expects at least 2 parameters, 1 given in %s on line 26
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg() expects at least 2 parameters, 1 given in %s on line %d
NULL
Done
diff --git a/ext/ereg/tests/ereg_error_002.phpt b/ext/ereg/tests/ereg_error_002.phpt
index 61166ee979..707b7317f7 100644
--- a/ext/ereg/tests/ereg_error_002.phpt
+++ b/ext/ereg/tests/ereg_error_002.phpt
@@ -40,49 +40,79 @@ echo "Done";
--EXPECTF--
*** Testing ereg() : error conditions ***
-Warning: ereg(): REG_EMPTY in %s on line 16
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_EMPTY in %s on line %d
bool(false)
-Warning: ereg(): REG_EPAREN in %s on line 17
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_EPAREN in %s on line %d
bool(false)
-Warning: ereg(): REG_EBRACK in %s on line 18
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_EBRACK in %s on line %d
bool(false)
-Warning: ereg(): REG_EPAREN in %s on line 19
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_EPAREN in %s on line %d
bool(false)
-Warning: ereg(): REG_BADRPT in %s on line 20
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_BADRPT in %s on line %d
bool(false)
-Warning: ereg(): REG_BADRPT in %s on line 21
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_BADRPT in %s on line %d
bool(false)
-Warning: ereg(): REG_BADRPT in %s on line 22
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_BADRPT in %s on line %d
bool(false)
-Warning: ereg(): REG_BADRPT in %s on line 23
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_BADRPT in %s on line %d
bool(false)
-Warning: ereg(): REG_BADBR in %s on line 24
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_BADBR in %s on line %d
bool(false)
-Warning: ereg(): REG_EMPTY in %s on line 25
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_EMPTY in %s on line %d
bool(false)
-Warning: ereg(): REG_EMPTY in %s on line 26
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_EMPTY in %s on line %d
bool(false)
-Warning: ereg(): REG_BADBR in %s on line 27
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_BADBR in %s on line %d
bool(false)
-Warning: ereg(): REG_ERANGE in %s on line 28
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_ERANGE in %s on line %d
bool(false)
-Warning: ereg(): REG_EESCAPE in %s on line 29
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_EESCAPE in %s on line %d
bool(false)
-Warning: ereg(): REG_ERANGE in %s on line 30
+Deprecated: Function ereg() is deprecated in %s on line %d
+
+Warning: ereg(): REG_ERANGE in %s on line %d
bool(false)
string(8) "original"
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/ereg_replace_basic_001.phpt b/ext/ereg/tests/ereg_replace_basic_001.phpt
index e0a5dfb7b8..66b056ed60 100644
--- a/ext/ereg/tests/ereg_replace_basic_001.phpt
+++ b/ext/ereg/tests/ereg_replace_basic_001.phpt
@@ -29,32 +29,58 @@ echo "Done";
--EXPECTF--
*** Testing ereg() : basic functionality ***
--> Pattern: '..(a|b|c)(a|b|c)..'; match: '--- ab ---'
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(82) "--[this is a replacement]-- this contains some matches --[this is a replacement]--"
--> Pattern: '()'; match: ''
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(695) "[this is a replacement] [this is a replacement]t[this is a replacement]h[this is a replacement]i[this is a replacement]s[this is a replacement] [this is a replacement]c[this is a replacement]o[this is a replacement]n[this is a replacement]t[this is a replacement]a[this is a replacement]i[this is a replacement]n[this is a replacement]s[this is a replacement] [this is a replacement]s[this is a replacement]o[this is a replacement]m[this is a replacement]e[this is a replacement] [this is a replacement]m[this is a replacement]a[this is a replacement]t[this is a replacement]c[this is a replacement]h[this is a replacement]e[this is a replacement]s[this is a replacement] [this is a replacement]"
--> Pattern: '()'; match: 'abcdef'
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(983) "[this is a replacement]a[this is a replacement]b[this is a replacement]c[this is a replacement]d[this is a replacement]e[this is a replacement]f[this is a replacement] [this is a replacement]t[this is a replacement]h[this is a replacement]i[this is a replacement]s[this is a replacement] [this is a replacement]c[this is a replacement]o[this is a replacement]n[this is a replacement]t[this is a replacement]a[this is a replacement]i[this is a replacement]n[this is a replacement]s[this is a replacement] [this is a replacement]s[this is a replacement]o[this is a replacement]m[this is a replacement]e[this is a replacement] [this is a replacement]m[this is a replacement]a[this is a replacement]t[this is a replacement]c[this is a replacement]h[this is a replacement]e[this is a replacement]s[this is a replacement] [this is a replacement]a[this is a replacement]b[this is a replacement]c[this is a replacement]d[this is a replacement]e[this is a replacement]f[this is a replacement]"
--> Pattern: '[x]|[^x]'; match: 'abcdef'
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(920) "[this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement]"
--> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; match: '--- aaa bbb ccc ddd ---'
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(90) "--- [this is a replacement] --- this contains some matches --- [this is a replacement] ---"
--> Pattern: '\\\`\^\.\[\$\(\)\|\*\+\?\{\''; match: '\`^.[$()|*+?{''
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(74) "[this is a replacement] this contains some matches [this is a replacement]"
--> Pattern: '\a'; match: 'a'
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(118) "[this is a replacement] this cont[this is a replacement]ins some m[this is a replacement]tches [this is a replacement]"
--> Pattern: '[0-9][^0-9]'; match: '2a'
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(74) "[this is a replacement] this contains some matches [this is a replacement]"
--> Pattern: '^[[:alnum:]]{62,62}$'; match: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(152) "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ this contains some matches 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
--> Pattern: '^[[:digit:]]{5}'; match: '0123456789'
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(66) "[this is a replacement]56789 this contains some matches 0123456789"
--> Pattern: '[[:digit:]]{5}$'; match: '0123456789'
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(66) "0123456789 this contains some matches 01234[this is a replacement]"
--> Pattern: '[[:blank:]]{1,10}'; match: '
'
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(163) "
[this is a replacement]this[this is a replacement]contains[this is a replacement]some[this is a replacement]matches[this is a replacement]
[this is a replacement]"
--> Pattern: '[[:print:]]{3}'; match: ' a '
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(254) "[this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement] "
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/ereg_replace_basic_002.phpt b/ext/ereg/tests/ereg_replace_basic_002.phpt
index 4ef9c4109e..e12612d5ad 100644
--- a/ext/ereg/tests/ereg_replace_basic_002.phpt
+++ b/ext/ereg/tests/ereg_replace_basic_002.phpt
@@ -21,10 +21,21 @@ var_dump(ereg_replace('[:alpha:]', $replacement, 'x'));
echo "Done";
?>
--EXPECTF--
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(1) "a"
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(1) "0"
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(3) "aaa"
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(2) "ba"
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(2) "ba"
+
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
string(1) "x"
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/ereg_replace_error_001.phpt b/ext/ereg/tests/ereg_replace_error_001.phpt
index 8bcc4bfb07..d49d87f9d8 100644
--- a/ext/ereg/tests/ereg_replace_error_001.phpt
+++ b/ext/ereg/tests/ereg_replace_error_001.phpt
@@ -32,11 +32,15 @@ echo "Done";
-- Testing ereg_replace() function with more than expected no. of arguments --
-Warning: ereg_replace() expects exactly 3 parameters, 4 given in %s on line 17
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace() expects exactly 3 parameters, 4 given in %s on line %d
NULL
-- Testing ereg_replace() function with less than expected no. of arguments --
-Warning: ereg_replace() expects exactly 3 parameters, 2 given in %s on line 23
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace() expects exactly 3 parameters, 2 given in %s on line %d
NULL
Done
diff --git a/ext/ereg/tests/ereg_replace_error_002.phpt b/ext/ereg/tests/ereg_replace_error_002.phpt
index 6e7183c425..b161a0dcf2 100644
--- a/ext/ereg/tests/ereg_replace_error_002.phpt
+++ b/ext/ereg/tests/ereg_replace_error_002.phpt
@@ -29,48 +29,78 @@ echo "Done";
--EXPECTF--
*** Testing ereg_replace() : bad REs ***
-Warning: ereg_replace(): REG_EMPTY in %s on line 9
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_EMPTY in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_EPAREN in %s on line 10
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_EPAREN in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_EBRACK in %s on line 11
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_EBRACK in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_EPAREN in %s on line 12
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_EPAREN in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_BADRPT in %s on line 13
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_BADRPT in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_BADRPT in %s on line 14
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_BADRPT in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_BADRPT in %s on line 15
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_BADRPT in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_BADRPT in %s on line 16
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_BADRPT in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_BADBR in %s on line 17
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_BADBR in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_EMPTY in %s on line 18
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_EMPTY in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_EMPTY in %s on line 19
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_EMPTY in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_BADBR in %s on line 20
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_BADBR in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_ERANGE in %s on line 21
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_ERANGE in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_EESCAPE in %s on line 22
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_EESCAPE in %s on line %d
bool(false)
-Warning: ereg_replace(): REG_ERANGE in %s on line 23
+Deprecated: Function ereg_replace() is deprecated in %s on line %d
+
+Warning: ereg_replace(): REG_ERANGE in %s on line %d
bool(false)
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/ereg_replace_variation_001.phpt b/ext/ereg/tests/ereg_replace_variation_001.phpt
index 446ac86e03..ebb1504f63 100644
--- a/ext/ereg/tests/ereg_replace_variation_001.phpt
+++ b/ext/ereg/tests/ereg_replace_variation_001.phpt
@@ -85,91 +85,116 @@ Error: 8 - Undefined variable: undefined_var, %s(64)
Error: 8 - Undefined variable: unset_var, %s(67)
Arg value 0
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "original"
Arg value 12345
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "original"
Arg value -2345
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "original"
Arg value 10.5
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "original"
Arg value -10.5
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "original"
Arg value 101234567000
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "original"
Arg value 1.07654321E-9
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value 0.5
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "original"
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "original"
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "original"
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "original"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "original"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "original"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
bool(false)
Error: 4096 - Object of class stdClass could not be converted to string, %s(73)
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 8 - Object of class stdClass could not be converted to int, %s(74)
string(8) "original"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace(): REG_EMPTY, %s(74)
bool(false)
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/ereg_replace_variation_002.phpt b/ext/ereg/tests/ereg_replace_variation_002.phpt
index 1032060f71..2dd3de9313 100644
--- a/ext/ereg/tests/ereg_replace_variation_002.phpt
+++ b/ext/ereg/tests/ereg_replace_variation_002.phpt
@@ -85,79 +85,104 @@ Error: 8 - Undefined variable: undefined_var, %s(64)
Error: 8 - Undefined variable: unset_var, %s(67)
Arg value 0
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value 1
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value 12345
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(6) "h9o%21"
Arg value -2345
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "h%D7o%21"
Arg value 10.5
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "h%0Ao%21"
Arg value -10.5
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "h%F6o%21"
Arg value 101234567000
-string(%d) "h%so%21"
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
+string(8) "h%FFo%21"
Arg value 1.07654321E-9
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value 0.5
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value 1
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value 1
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "ho%21"
Error: 4096 - Object of class stdClass could not be converted to string, %s(73)
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 8 - Object of class stdClass could not be converted to int, %s(74)
string(8) "h%01o%21"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "ho%21"
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/ereg_replace_variation_003.phpt b/ext/ereg/tests/ereg_replace_variation_003.phpt
index 2d86c0db89..c6a606e31a 100644
--- a/ext/ereg/tests/ereg_replace_variation_003.phpt
+++ b/ext/ereg/tests/ereg_replace_variation_003.phpt
@@ -85,84 +85,109 @@ Error: 8 - Undefined variable: undefined_var, %s(64)
Error: 8 - Undefined variable: unset_var, %s(67)
Arg value 0
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(1) "0"
Arg value 1
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(9) "new value"
Arg value 12345
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(13) "new value2345"
Arg value -2345
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(5) "-2345"
Arg value 10.5
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(12) "new value0.5"
Arg value -10.5
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(13) "-new value0.5"
Arg value 101234567000
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(28) "new value0new value234567000"
Arg value 1.07654321E-9
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(29) "new value.0765432new valueE-9"
Arg value 0.5
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(3) "0.5"
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace() expects parameter 3 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace() expects parameter 3 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace() expects parameter 3 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace() expects parameter 3 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace() expects parameter 3 to be string, array given, %s(74)
NULL
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(0) ""
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(0) ""
Arg value 1
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(9) "new value"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(0) ""
Arg value 1
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(9) "new value"
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(0) ""
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(0) ""
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(0) ""
Error: 4096 - Object of class stdClass could not be converted to string, %s(73)
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
Error: 2 - ereg_replace() expects parameter 3 to be string, object given, %s(74)
NULL
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(0) ""
Arg value
+Error: 8192 - Function ereg_replace() is deprecated, %s(74)
string(0) ""
Done
diff --git a/ext/ereg/tests/ereg_variation_001.phpt b/ext/ereg/tests/ereg_variation_001.phpt
index 977404d054..52b88abb71 100644
--- a/ext/ereg/tests/ereg_variation_001.phpt
+++ b/ext/ereg/tests/ereg_variation_001.phpt
@@ -86,93 +86,118 @@ Error: 8 - Undefined variable: undefined_var, %s(65)
Error: 8 - Undefined variable: unset_var, %s(68)
Arg value 0
+Error: 8192 - Function ereg() is deprecated, %s(75)
bool(false)
Arg value 1
+Error: 8192 - Function ereg() is deprecated, %s(75)
int(1)
Arg value 12345
+Error: 8192 - Function ereg() is deprecated, %s(75)
bool(false)
Arg value -2345
+Error: 8192 - Function ereg() is deprecated, %s(75)
bool(false)
Arg value 10.5
+Error: 8192 - Function ereg() is deprecated, %s(75)
bool(false)
Arg value -10.5
+Error: 8192 - Function ereg() is deprecated, %s(75)
bool(false)
Arg value 101234567000
+Error: 8192 - Function ereg() is deprecated, %s(75)
bool(false)
Arg value 1.07654321E-9
+Error: 8192 - Function ereg() is deprecated, %s(75)
bool(false)
Arg value 0.5
+Error: 8192 - Function ereg() is deprecated, %s(75)
bool(false)
Arg value Array
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 8 - Array to string conversion, %s(75)
bool(false)
Arg value Array
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 8 - Array to string conversion, %s(75)
bool(false)
Arg value Array
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 8 - Array to string conversion, %s(75)
bool(false)
Arg value Array
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 8 - Array to string conversion, %s(75)
bool(false)
Arg value Array
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 8 - Array to string conversion, %s(75)
bool(false)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 2 - ereg(): REG_EMPTY, %s(75)
bool(false)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 2 - ereg(): REG_EMPTY, %s(75)
bool(false)
Arg value 1
+Error: 8192 - Function ereg() is deprecated, %s(75)
int(1)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 2 - ereg(): REG_EMPTY, %s(75)
bool(false)
Arg value 1
+Error: 8192 - Function ereg() is deprecated, %s(75)
int(1)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 2 - ereg(): REG_EMPTY, %s(75)
bool(false)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 2 - ereg(): REG_EMPTY, %s(75)
bool(false)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 2 - ereg(): REG_EMPTY, %s(75)
bool(false)
Error: 4096 - Object of class stdClass could not be converted to string, %s(74)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 4096 - Object of class stdClass could not be converted to string, %s(75)
Error: 8 - Object of class stdClass to string conversion, %s(75)
bool(false)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 2 - ereg(): REG_EMPTY, %s(75)
bool(false)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(75)
Error: 2 - ereg(): REG_EMPTY, %s(75)
bool(false)
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/ereg_variation_002.phpt b/ext/ereg/tests/ereg_variation_002.phpt
index 6cd63c19cb..1b3e3fc46c 100644
--- a/ext/ereg/tests/ereg_variation_002.phpt
+++ b/ext/ereg/tests/ereg_variation_002.phpt
@@ -85,84 +85,109 @@ Error: 8 - Undefined variable: undefined_var, %s(64)
Error: 8 - Undefined variable: unset_var, %s(67)
Arg value 0
+Error: 8192 - Function ereg() is deprecated, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function ereg() is deprecated, %s(74)
int(1)
Arg value 12345
+Error: 8192 - Function ereg() is deprecated, %s(74)
int(1)
Arg value -2345
+Error: 8192 - Function ereg() is deprecated, %s(74)
bool(false)
Arg value 10.5
+Error: 8192 - Function ereg() is deprecated, %s(74)
int(1)
Arg value -10.5
+Error: 8192 - Function ereg() is deprecated, %s(74)
int(1)
Arg value 101234567000
+Error: 8192 - Function ereg() is deprecated, %s(74)
int(1)
Arg value 1.07654321E-9
+Error: 8192 - Function ereg() is deprecated, %s(74)
int(1)
Arg value 0.5
+Error: 8192 - Function ereg() is deprecated, %s(74)
bool(false)
Arg value Array
+Error: 8192 - Function ereg() is deprecated, %s(74)
Error: 2 - ereg() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function ereg() is deprecated, %s(74)
Error: 2 - ereg() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function ereg() is deprecated, %s(74)
Error: 2 - ereg() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function ereg() is deprecated, %s(74)
Error: 2 - ereg() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function ereg() is deprecated, %s(74)
Error: 2 - ereg() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(74)
bool(false)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function ereg() is deprecated, %s(74)
int(1)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function ereg() is deprecated, %s(74)
int(1)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(74)
bool(false)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(74)
bool(false)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(74)
bool(false)
Error: 4096 - Object of class stdClass could not be converted to string, %s(73)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(74)
Error: 2 - ereg() expects parameter 2 to be string, object given, %s(74)
NULL
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(74)
bool(false)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(74)
bool(false)
Done
diff --git a/ext/ereg/tests/ereg_variation_003.phpt b/ext/ereg/tests/ereg_variation_003.phpt
index 42c1ae1bb1..bf898d908f 100644
--- a/ext/ereg/tests/ereg_variation_003.phpt
+++ b/ext/ereg/tests/ereg_variation_003.phpt
@@ -83,6 +83,7 @@ Error: 8 - Undefined variable: undefined_var, %s(61)
Error: 8 - Undefined variable: unset_var, %s(64)
Arg value 0
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -92,6 +93,7 @@ array(2) {
}
Arg value 1
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -101,6 +103,7 @@ array(2) {
}
Arg value 12345
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -110,6 +113,7 @@ array(2) {
}
Arg value -2345
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -119,6 +123,7 @@ array(2) {
}
Arg value 10.5
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -128,6 +133,7 @@ array(2) {
}
Arg value -10.5
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -137,6 +143,7 @@ array(2) {
}
Arg value 101234567000
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -146,6 +153,7 @@ array(2) {
}
Arg value 1.07654321E-9
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -155,6 +163,7 @@ array(2) {
}
Arg value 0.5
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -164,6 +173,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -173,6 +183,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -182,6 +193,7 @@ array(2) {
}
Arg value 1
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -191,6 +203,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -200,6 +213,7 @@ array(2) {
}
Arg value 1
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -209,6 +223,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -218,6 +233,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -227,6 +243,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -236,6 +253,7 @@ array(2) {
}
Arg value string
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -245,6 +263,7 @@ array(2) {
}
Arg value string
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -255,6 +274,7 @@ array(2) {
Error: 4096 - Object of class stdClass could not be converted to string, %s(70)
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -264,6 +284,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -273,6 +294,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function ereg() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -280,4 +302,4 @@ array(2) {
[1]=>
string(2) "el"
}
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/ereg_variation_004.phpt b/ext/ereg/tests/ereg_variation_004.phpt
index cbbb3c15e6..86f616f86f 100644
--- a/ext/ereg/tests/ereg_variation_004.phpt
+++ b/ext/ereg/tests/ereg_variation_004.phpt
@@ -12,7 +12,8 @@ var_dump(ereg('l{2}', 'hello', str_repeat('x',1)));
echo "Done";
?>
--EXPECTF--
+Strict Standards: Only variables should be passed by reference in %s on line %d
-Strict Standards: Only variables should be passed by reference in %s on line 8
+Deprecated: Function ereg() is deprecated in %s on line %d
int(2)
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_basic.phpt b/ext/ereg/tests/eregi_basic.phpt
index de1db0ed46..14b4b7d395 100644
--- a/ext/ereg/tests/eregi_basic.phpt
+++ b/ext/ereg/tests/eregi_basic.phpt
@@ -28,14 +28,18 @@ echo "Done";
?>
--EXPECTF--
*** Testing eregi() : basic functionality ***
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(5)
array(1) {
[0]=>
string(5) "WORDS"
}
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(10)
array(1) {
[0]=>
string(10) "MIxED CaSe"
}
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_basic_001.phpt b/ext/ereg/tests/eregi_basic_001.phpt
index 8557b8111d..9460b89e11 100644
--- a/ext/ereg/tests/eregi_basic_001.phpt
+++ b/ext/ereg/tests/eregi_basic_001.phpt
@@ -28,6 +28,8 @@ echo "Done";
--EXPECTF--
*** Testing eregi() : basic functionality ***
--> Pattern: '..(a|b|c)(a|b|c)..'; string: '--- ab ---'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(6)
array(3) {
[0]=>
@@ -38,6 +40,8 @@ array(3) {
string(1) "b"
}
--> Pattern: '()'; string: ''
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
array(2) {
[0]=>
@@ -46,6 +50,8 @@ array(2) {
bool(false)
}
--> Pattern: '()'; string: 'abcdef'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
array(2) {
[0]=>
@@ -54,12 +60,16 @@ array(2) {
bool(false)
}
--> Pattern: '[x]|[^x]'; string: 'abcdef'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
array(1) {
[0]=>
string(1) "a"
}
--> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; string: '--- aaa bbb ccc ddd ---'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(15)
array(6) {
[0]=>
@@ -76,36 +86,48 @@ array(6) {
string(3) "ddd"
}
--> Pattern: '\\\`\^\.\[\$\(\)\|\*\+\?\{\''; string: '\`^.[$()|*+?{''
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(14)
array(1) {
[0]=>
string(14) "\`^.[$()|*+?{'"
}
--> Pattern: '\a'; string: 'a'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
array(1) {
[0]=>
string(1) "a"
}
--> Pattern: '[0-9][^0-9]'; string: '2a'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(2)
array(1) {
[0]=>
string(2) "2a"
}
--> Pattern: '^[[:alnum:]]{62,62}$'; string: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(62)
array(1) {
[0]=>
string(62) "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
}
--> Pattern: '^[[:digit:]]{5}'; string: '0123456789'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(5)
array(1) {
[0]=>
string(5) "01234"
}
--> Pattern: '[[:digit:]]{5}$'; string: '0123456789'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(5)
array(1) {
[0]=>
@@ -113,15 +135,19 @@ array(1) {
}
--> Pattern: '[[:blank:]]{1,10}'; string: '
'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(2)
array(1) {
[0]=>
string(2) " "
}
--> Pattern: '[[:print:]]{3}'; string: ' a '
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(3)
array(1) {
[0]=>
string(3) " a "
}
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_basic_002.phpt b/ext/ereg/tests/eregi_basic_002.phpt
index 8c5d0e471e..f81821ab1b 100644
--- a/ext/ereg/tests/eregi_basic_002.phpt
+++ b/ext/ereg/tests/eregi_basic_002.phpt
@@ -27,30 +27,56 @@ echo "Done";
--EXPECTF--
*** Testing eregi() : basic functionality ***
--> Pattern: '..(a|b|c)(a|b|c)..'; string: '--- ab ---'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
--> Pattern: '()'; string: ''
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
--> Pattern: '()'; string: 'abcdef'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
--> Pattern: '[x]|[^x]'; string: 'abcdef'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
--> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; string: '--- aaa bbb ccc ddd ---'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
--> Pattern: '\\\`\^\.\[\$\(\)\|\*\+\?\{\''; string: '\`^.[$()|*+?{''
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
--> Pattern: '\a'; string: 'a'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
--> Pattern: '[0-9][^0-9]'; string: '2a'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
--> Pattern: '^[[:alnum:]]{62,62}$'; string: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
--> Pattern: '^[[:digit:]]{5}'; string: '0123456789'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
--> Pattern: '[[:digit:]]{5}$'; string: '0123456789'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
--> Pattern: '[[:blank:]]{1,10}'; string: '
'
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
--> Pattern: '[[:print:]]{3}'; string: ' a '
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_basic_003.phpt b/ext/ereg/tests/eregi_basic_003.phpt
index a4861caa83..f045ad4280 100644
--- a/ext/ereg/tests/eregi_basic_003.phpt
+++ b/ext/ereg/tests/eregi_basic_003.phpt
@@ -19,7 +19,10 @@ var_dump(count($regs));
echo "Done";
?>
--EXPECTF--
+Deprecated: Function eregi() is deprecated in %s on line %d
int(1)
+
+Deprecated: Function eregi() is deprecated in %s on line %d
int(2048)
int(2049)
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_basic_004.phpt b/ext/ereg/tests/eregi_basic_004.phpt
index ad411e21f5..78d8f5e547 100644
--- a/ext/ereg/tests/eregi_basic_004.phpt
+++ b/ext/ereg/tests/eregi_basic_004.phpt
@@ -22,10 +22,19 @@ var_dump($regs);
echo "Done";
?>
--EXPECTF--
+Deprecated: Function eregi() is deprecated in %s on line %d
bool(false)
+
+Deprecated: Function eregi() is deprecated in %s on line %d
bool(false)
+
+Deprecated: Function eregi() is deprecated in %s on line %d
bool(false)
+
+Deprecated: Function eregi() is deprecated in %s on line %d
bool(false)
+
+Deprecated: Function eregi() is deprecated in %s on line %d
bool(false)
string(8) "original"
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_error_001.phpt b/ext/ereg/tests/eregi_error_001.phpt
index 0809d8b67e..fed3a725c2 100644
--- a/ext/ereg/tests/eregi_error_001.phpt
+++ b/ext/ereg/tests/eregi_error_001.phpt
@@ -35,11 +35,15 @@ echo "Done";
-- Testing eregi() function with more than expected no. of arguments --
-Warning: eregi() expects at most 3 parameters, 4 given in %s on line 21
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi() expects at most 3 parameters, 4 given in %s on line %d
NULL
-- Testing eregi() function with less than expected no. of arguments --
-Warning: eregi() expects at least 2 parameters, 1 given in %s on line 26
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi() expects at least 2 parameters, 1 given in %s on line %d
NULL
Done
diff --git a/ext/ereg/tests/eregi_error_002.phpt b/ext/ereg/tests/eregi_error_002.phpt
index 3c3bd7c992..2764741d5d 100644
--- a/ext/ereg/tests/eregi_error_002.phpt
+++ b/ext/ereg/tests/eregi_error_002.phpt
@@ -40,49 +40,79 @@ echo "Done";
--EXPECTF--
*** Testing eregi() : error conditions ***
-Warning: eregi(): REG_EMPTY in %s on line 16
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_EMPTY in %s on line %d
bool(false)
-Warning: eregi(): REG_EPAREN in %s on line 17
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_EPAREN in %s on line %d
bool(false)
-Warning: eregi(): REG_EBRACK in %s on line 18
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_EBRACK in %s on line %d
bool(false)
-Warning: eregi(): REG_EPAREN in %s on line 19
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_EPAREN in %s on line %d
bool(false)
-Warning: eregi(): REG_BADRPT in %s on line 20
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_BADRPT in %s on line %d
bool(false)
-Warning: eregi(): REG_BADRPT in %s on line 21
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_BADRPT in %s on line %d
bool(false)
-Warning: eregi(): REG_BADRPT in %s on line 22
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_BADRPT in %s on line %d
bool(false)
-Warning: eregi(): REG_BADRPT in %s on line 23
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_BADRPT in %s on line %d
bool(false)
-Warning: eregi(): REG_BADBR in %s on line 24
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_BADBR in %s on line %d
bool(false)
-Warning: eregi(): REG_EMPTY in %s on line 25
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_EMPTY in %s on line %d
bool(false)
-Warning: eregi(): REG_EMPTY in %s on line 26
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_EMPTY in %s on line %d
bool(false)
-Warning: eregi(): REG_BADBR in %s on line 27
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_BADBR in %s on line %d
bool(false)
-Warning: eregi(): REG_ERANGE in %s on line 28
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_ERANGE in %s on line %d
bool(false)
-Warning: eregi(): REG_EESCAPE in %s on line 29
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_EESCAPE in %s on line %d
bool(false)
-Warning: eregi(): REG_ERANGE in %s on line 30
+Deprecated: Function eregi() is deprecated in %s on line %d
+
+Warning: eregi(): REG_ERANGE in %s on line %d
bool(false)
string(8) "original"
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_replace_basic.phpt b/ext/ereg/tests/eregi_replace_basic.phpt
index f9f025fe98..f965c8f03a 100644
--- a/ext/ereg/tests/eregi_replace_basic.phpt
+++ b/ext/ereg/tests/eregi_replace_basic.phpt
@@ -32,5 +32,7 @@ String Before...
string(50) "UPPERCASE WORDS, lowercase words, MIxED CaSe woRdS"
String after...
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(65) "UPPERCASE_characterS, lowercase_characters, MIxED CaSe_characterS"
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_replace_basic_001.phpt b/ext/ereg/tests/eregi_replace_basic_001.phpt
index bffcd06377..710e39e2de 100644
--- a/ext/ereg/tests/eregi_replace_basic_001.phpt
+++ b/ext/ereg/tests/eregi_replace_basic_001.phpt
@@ -29,32 +29,58 @@ echo "Done";
--EXPECTF--
*** Testing ereg() : basic functionality ***
--> Pattern: '..(a|b|c)(a|b|c)..'; match: '--- ab ---'
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(82) "--[this is a replacement]-- this contains some matches --[this is a replacement]--"
--> Pattern: '()'; match: ''
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(695) "[this is a replacement] [this is a replacement]t[this is a replacement]h[this is a replacement]i[this is a replacement]s[this is a replacement] [this is a replacement]c[this is a replacement]o[this is a replacement]n[this is a replacement]t[this is a replacement]a[this is a replacement]i[this is a replacement]n[this is a replacement]s[this is a replacement] [this is a replacement]s[this is a replacement]o[this is a replacement]m[this is a replacement]e[this is a replacement] [this is a replacement]m[this is a replacement]a[this is a replacement]t[this is a replacement]c[this is a replacement]h[this is a replacement]e[this is a replacement]s[this is a replacement] [this is a replacement]"
--> Pattern: '()'; match: 'abcdef'
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(983) "[this is a replacement]a[this is a replacement]b[this is a replacement]c[this is a replacement]d[this is a replacement]e[this is a replacement]f[this is a replacement] [this is a replacement]t[this is a replacement]h[this is a replacement]i[this is a replacement]s[this is a replacement] [this is a replacement]c[this is a replacement]o[this is a replacement]n[this is a replacement]t[this is a replacement]a[this is a replacement]i[this is a replacement]n[this is a replacement]s[this is a replacement] [this is a replacement]s[this is a replacement]o[this is a replacement]m[this is a replacement]e[this is a replacement] [this is a replacement]m[this is a replacement]a[this is a replacement]t[this is a replacement]c[this is a replacement]h[this is a replacement]e[this is a replacement]s[this is a replacement] [this is a replacement]a[this is a replacement]b[this is a replacement]c[this is a replacement]d[this is a replacement]e[this is a replacement]f[this is a replacement]"
--> Pattern: '[x]|[^x]'; match: 'abcdef'
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(920) "[this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement]"
--> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; match: '--- aaa bbb ccc ddd ---'
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(90) "--- [this is a replacement] --- this contains some matches --- [this is a replacement] ---"
--> Pattern: '\\\`\^\.\[\$\(\)\|\*\+\?\{\''; match: '\`^.[$()|*+?{''
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(74) "[this is a replacement] this contains some matches [this is a replacement]"
--> Pattern: '\a'; match: 'a'
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(118) "[this is a replacement] this cont[this is a replacement]ins some m[this is a replacement]tches [this is a replacement]"
--> Pattern: '[0-9][^0-9]'; match: '2a'
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(74) "[this is a replacement] this contains some matches [this is a replacement]"
--> Pattern: '^[[:alnum:]]{62,62}$'; match: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(152) "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ this contains some matches 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
--> Pattern: '^[[:digit:]]{5}'; match: '0123456789'
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(66) "[this is a replacement]56789 this contains some matches 0123456789"
--> Pattern: '[[:digit:]]{5}$'; match: '0123456789'
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(66) "0123456789 this contains some matches 01234[this is a replacement]"
--> Pattern: '[[:blank:]]{1,10}'; match: '
'
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(163) "
[this is a replacement]this[this is a replacement]contains[this is a replacement]some[this is a replacement]matches[this is a replacement]
[this is a replacement]"
--> Pattern: '[[:print:]]{3}'; match: ' a '
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(254) "[this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement][this is a replacement] "
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_replace_basic_002.phpt b/ext/ereg/tests/eregi_replace_basic_002.phpt
index 7a4bd3d841..7683e3323e 100644
--- a/ext/ereg/tests/eregi_replace_basic_002.phpt
+++ b/ext/ereg/tests/eregi_replace_basic_002.phpt
@@ -20,9 +20,18 @@ var_dump(eregi_replace('[:alpha:]', $replacement, 'x'));
echo "Done";
?>
--EXPECTF--
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(1) "0"
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(3) "aaa"
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(2) "ba"
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(2) "ba"
+
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
string(1) "x"
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_replace_error_001.phpt b/ext/ereg/tests/eregi_replace_error_001.phpt
index d4983abe4a..ff94833555 100644
--- a/ext/ereg/tests/eregi_replace_error_001.phpt
+++ b/ext/ereg/tests/eregi_replace_error_001.phpt
@@ -32,11 +32,15 @@ echo "Done";
-- Testing eregi_replace() function with more than expected no. of arguments --
-Warning: eregi_replace() expects exactly 3 parameters, 4 given in %s on line 17
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace() expects exactly 3 parameters, 4 given in %s on line %d
NULL
-- Testing eregi_replace() function with less than expected no. of arguments --
-Warning: eregi_replace() expects exactly 3 parameters, 2 given in %s on line 23
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace() expects exactly 3 parameters, 2 given in %s on line %d
NULL
Done
diff --git a/ext/ereg/tests/eregi_replace_error_002.phpt b/ext/ereg/tests/eregi_replace_error_002.phpt
index 35684b8bde..32c58613d2 100644
--- a/ext/ereg/tests/eregi_replace_error_002.phpt
+++ b/ext/ereg/tests/eregi_replace_error_002.phpt
@@ -29,48 +29,78 @@ echo "Done";
--EXPECTF--
*** Testing eregi_replace() : bad REs ***
-Warning: eregi_replace(): REG_EMPTY in %s on line 9
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_EMPTY in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_EPAREN in %s on line 10
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_EPAREN in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_EBRACK in %s on line 11
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_EBRACK in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_EPAREN in %s on line 12
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_EPAREN in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_BADRPT in %s on line 13
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_BADRPT in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_BADRPT in %s on line 14
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_BADRPT in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_BADRPT in %s on line 15
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_BADRPT in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_BADRPT in %s on line 16
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_BADRPT in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_BADBR in %s on line 17
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_BADBR in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_EMPTY in %s on line 18
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_EMPTY in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_EMPTY in %s on line 19
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_EMPTY in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_BADBR in %s on line 20
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_BADBR in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_ERANGE in %s on line 21
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_ERANGE in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_EESCAPE in %s on line 22
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_EESCAPE in %s on line %d
bool(false)
-Warning: eregi_replace(): REG_ERANGE in %s on line 23
+Deprecated: Function eregi_replace() is deprecated in %s on line %d
+
+Warning: eregi_replace(): REG_ERANGE in %s on line %d
bool(false)
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_replace_variation_001.phpt b/ext/ereg/tests/eregi_replace_variation_001.phpt
index 87f9aa277c..af2935db6e 100644
--- a/ext/ereg/tests/eregi_replace_variation_001.phpt
+++ b/ext/ereg/tests/eregi_replace_variation_001.phpt
@@ -85,91 +85,116 @@ Error: 8 - Undefined variable: undefined_var, %s(64)
Error: 8 - Undefined variable: unset_var, %s(67)
Arg value 0
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "original"
Arg value 12345
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "original"
Arg value -2345
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "original"
Arg value 10.5
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "original"
Arg value -10.5
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "original"
Arg value 101234567000
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "original"
Arg value 1.07654321E-9
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value 0.5
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "original"
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "original"
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "original"
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "original"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "original"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "original"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace(): REG_EMPTY, %s(74)
bool(false)
Error: 4096 - Object of class stdClass could not be converted to string, %s(73)
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 8 - Object of class stdClass could not be converted to int, %s(74)
string(8) "original"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace(): REG_EMPTY, %s(74)
bool(false)
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_replace_variation_002.phpt b/ext/ereg/tests/eregi_replace_variation_002.phpt
index 4186d0fd3d..5755b74f41 100644
--- a/ext/ereg/tests/eregi_replace_variation_002.phpt
+++ b/ext/ereg/tests/eregi_replace_variation_002.phpt
@@ -85,79 +85,104 @@ Error: 8 - Undefined variable: undefined_var, %s(64)
Error: 8 - Undefined variable: unset_var, %s(67)
Arg value 0
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value 1
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value 12345
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(6) "h9o%21"
Arg value -2345
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "h%D7o%21"
Arg value 10.5
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "h%0Ao%21"
Arg value -10.5
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "h%F6o%21"
Arg value 101234567000
-string(%d) "h%so%21"
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
+string(8) "h%FFo%21"
Arg value 1.07654321E-9
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value 0.5
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value 1
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value 1
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(8) "h%01o%21"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "ho%21"
Error: 4096 - Object of class stdClass could not be converted to string, %s(73)
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 8 - Object of class stdClass could not be converted to int, %s(74)
string(8) "h%01o%21"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "ho%21"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "ho%21"
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_replace_variation_003.phpt b/ext/ereg/tests/eregi_replace_variation_003.phpt
index 61d468454b..8e8e5086bd 100644
--- a/ext/ereg/tests/eregi_replace_variation_003.phpt
+++ b/ext/ereg/tests/eregi_replace_variation_003.phpt
@@ -85,84 +85,109 @@ Error: 8 - Undefined variable: undefined_var, %s(64)
Error: 8 - Undefined variable: unset_var, %s(67)
Arg value 0
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(1) "0"
Arg value 1
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(9) "new value"
Arg value 12345
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(13) "new value2345"
Arg value -2345
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(5) "-2345"
Arg value 10.5
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(12) "new value0.5"
Arg value -10.5
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(13) "-new value0.5"
Arg value 101234567000
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(28) "new value0new value234567000"
Arg value 1.07654321E-9
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(29) "new value.0765432new valueE-9"
Arg value 0.5
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(3) "0.5"
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace() expects parameter 3 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace() expects parameter 3 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace() expects parameter 3 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace() expects parameter 3 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace() expects parameter 3 to be string, array given, %s(74)
NULL
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(0) ""
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(0) ""
Arg value 1
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(9) "new value"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(0) ""
Arg value 1
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(9) "new value"
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(0) ""
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(0) ""
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(0) ""
Error: 4096 - Object of class stdClass could not be converted to string, %s(73)
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
Error: 2 - eregi_replace() expects parameter 3 to be string, object given, %s(74)
NULL
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(0) ""
Arg value
+Error: 8192 - Function eregi_replace() is deprecated, %s(74)
string(0) ""
Done
diff --git a/ext/ereg/tests/eregi_variation_001.phpt b/ext/ereg/tests/eregi_variation_001.phpt
index ea8b8440dc..54e80bb16e 100644
--- a/ext/ereg/tests/eregi_variation_001.phpt
+++ b/ext/ereg/tests/eregi_variation_001.phpt
@@ -86,93 +86,118 @@ Error: 8 - Undefined variable: undefined_var, %s(65)
Error: 8 - Undefined variable: unset_var, %s(68)
Arg value 0
+Error: 8192 - Function eregi() is deprecated, %s(75)
bool(false)
Arg value 1
+Error: 8192 - Function eregi() is deprecated, %s(75)
int(1)
Arg value 12345
+Error: 8192 - Function eregi() is deprecated, %s(75)
bool(false)
Arg value -2345
+Error: 8192 - Function eregi() is deprecated, %s(75)
bool(false)
Arg value 10.5
+Error: 8192 - Function eregi() is deprecated, %s(75)
bool(false)
Arg value -10.5
+Error: 8192 - Function eregi() is deprecated, %s(75)
bool(false)
Arg value 101234567000
+Error: 8192 - Function eregi() is deprecated, %s(75)
bool(false)
Arg value 1.07654321E-9
+Error: 8192 - Function eregi() is deprecated, %s(75)
bool(false)
Arg value 0.5
+Error: 8192 - Function eregi() is deprecated, %s(75)
bool(false)
Arg value Array
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 8 - Array to string conversion, %s(75)
bool(false)
Arg value Array
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 8 - Array to string conversion, %s(75)
bool(false)
Arg value Array
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 8 - Array to string conversion, %s(75)
bool(false)
Arg value Array
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 8 - Array to string conversion, %s(75)
bool(false)
Arg value Array
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 8 - Array to string conversion, %s(75)
bool(false)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 2 - eregi(): REG_EMPTY, %s(75)
bool(false)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 2 - eregi(): REG_EMPTY, %s(75)
bool(false)
Arg value 1
+Error: 8192 - Function eregi() is deprecated, %s(75)
int(1)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 2 - eregi(): REG_EMPTY, %s(75)
bool(false)
Arg value 1
+Error: 8192 - Function eregi() is deprecated, %s(75)
int(1)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 2 - eregi(): REG_EMPTY, %s(75)
bool(false)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 2 - eregi(): REG_EMPTY, %s(75)
bool(false)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 2 - eregi(): REG_EMPTY, %s(75)
bool(false)
Error: 4096 - Object of class stdClass could not be converted to string, %s(74)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 4096 - Object of class stdClass could not be converted to string, %s(75)
Error: 8 - Object of class stdClass to string conversion, %s(75)
bool(false)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 2 - eregi(): REG_EMPTY, %s(75)
bool(false)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(75)
Error: 2 - eregi(): REG_EMPTY, %s(75)
bool(false)
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_variation_002.phpt b/ext/ereg/tests/eregi_variation_002.phpt
index 7ca31cf21a..bb7fc35636 100644
--- a/ext/ereg/tests/eregi_variation_002.phpt
+++ b/ext/ereg/tests/eregi_variation_002.phpt
@@ -85,84 +85,109 @@ Error: 8 - Undefined variable: undefined_var, %s(64)
Error: 8 - Undefined variable: unset_var, %s(67)
Arg value 0
+Error: 8192 - Function eregi() is deprecated, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function eregi() is deprecated, %s(74)
int(1)
Arg value 12345
+Error: 8192 - Function eregi() is deprecated, %s(74)
int(1)
Arg value -2345
+Error: 8192 - Function eregi() is deprecated, %s(74)
bool(false)
Arg value 10.5
+Error: 8192 - Function eregi() is deprecated, %s(74)
int(1)
Arg value -10.5
+Error: 8192 - Function eregi() is deprecated, %s(74)
int(1)
Arg value 101234567000
+Error: 8192 - Function eregi() is deprecated, %s(74)
int(1)
Arg value 1.07654321E-9
+Error: 8192 - Function eregi() is deprecated, %s(74)
int(1)
Arg value 0.5
+Error: 8192 - Function eregi() is deprecated, %s(74)
bool(false)
Arg value Array
+Error: 8192 - Function eregi() is deprecated, %s(74)
Error: 2 - eregi() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function eregi() is deprecated, %s(74)
Error: 2 - eregi() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function eregi() is deprecated, %s(74)
Error: 2 - eregi() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function eregi() is deprecated, %s(74)
Error: 2 - eregi() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function eregi() is deprecated, %s(74)
Error: 2 - eregi() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(74)
bool(false)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function eregi() is deprecated, %s(74)
int(1)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function eregi() is deprecated, %s(74)
int(1)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(74)
bool(false)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(74)
bool(false)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(74)
bool(false)
Error: 4096 - Object of class stdClass could not be converted to string, %s(73)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(74)
Error: 2 - eregi() expects parameter 2 to be string, object given, %s(74)
NULL
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(74)
bool(false)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(74)
bool(false)
Done
diff --git a/ext/ereg/tests/eregi_variation_003.phpt b/ext/ereg/tests/eregi_variation_003.phpt
index 43785871a9..97777e22ff 100644
--- a/ext/ereg/tests/eregi_variation_003.phpt
+++ b/ext/ereg/tests/eregi_variation_003.phpt
@@ -83,6 +83,7 @@ Error: 8 - Undefined variable: undefined_var, %s(61)
Error: 8 - Undefined variable: unset_var, %s(64)
Arg value 0
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -92,6 +93,7 @@ array(2) {
}
Arg value 1
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -101,6 +103,7 @@ array(2) {
}
Arg value 12345
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -110,6 +113,7 @@ array(2) {
}
Arg value -2345
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -119,6 +123,7 @@ array(2) {
}
Arg value 10.5
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -128,6 +133,7 @@ array(2) {
}
Arg value -10.5
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -137,6 +143,7 @@ array(2) {
}
Arg value 101234567000
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -146,6 +153,7 @@ array(2) {
}
Arg value 1.07654321E-9
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -155,6 +163,7 @@ array(2) {
}
Arg value 0.5
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -164,6 +173,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -173,6 +183,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -182,6 +193,7 @@ array(2) {
}
Arg value 1
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -191,6 +203,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -200,6 +213,7 @@ array(2) {
}
Arg value 1
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -209,6 +223,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -218,6 +233,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -227,6 +243,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -236,6 +253,7 @@ array(2) {
}
Arg value string
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -245,6 +263,7 @@ array(2) {
}
Arg value string
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -255,6 +274,7 @@ array(2) {
Error: 4096 - Object of class stdClass could not be converted to string, %s(70)
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -264,6 +284,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -273,6 +294,7 @@ array(2) {
}
Arg value
+Error: 8192 - Function eregi() is deprecated, %s(71)
int(6)
array(2) {
[0]=>
@@ -280,4 +302,4 @@ array(2) {
[1]=>
string(2) "el"
}
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/eregi_variation_004.phpt b/ext/ereg/tests/eregi_variation_004.phpt
index bf4f036950..7378c36d3d 100644
--- a/ext/ereg/tests/eregi_variation_004.phpt
+++ b/ext/ereg/tests/eregi_variation_004.phpt
@@ -12,7 +12,8 @@ var_dump(eregi('l{2}', 'hello', str_repeat('x',1)));
echo "Done";
?>
--EXPECTF--
+Strict Standards: Only variables should be passed by reference in %s on line %d
-Strict Standards: Only variables should be passed by reference in %s on line 8
+Deprecated: Function eregi() is deprecated in %s on line %d
int(2)
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/split_basic_001.phpt b/ext/ereg/tests/split_basic_001.phpt
index e122e2c15b..1c11f71ca8 100644
--- a/ext/ereg/tests/split_basic_001.phpt
+++ b/ext/ereg/tests/split_basic_001.phpt
@@ -28,6 +28,8 @@ echo "Done";
*** Testing ereg() : basic functionality ***
--> Pattern: '..(a|b|c)(a|b|c)..'; match: '--- ab ---'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(2) {
[0]=>
string(2) "--"
@@ -37,15 +39,21 @@ array(2) {
--> Pattern: '()'; match: ''
-Warning: split(): Invalid Regular Expression in %s on line 19
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): Invalid Regular Expression in %s on line %d
bool(false)
--> Pattern: '()'; match: 'abcdef'
-Warning: split(): Invalid Regular Expression in %s on line 19
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): Invalid Regular Expression in %s on line %d
bool(false)
--> Pattern: '[x]|[^x]'; match: 'abcdef'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(2) {
[0]=>
string(0) ""
@@ -54,6 +62,8 @@ array(2) {
}
--> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; match: '--- aaa bbb ccc ddd ---'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(2) {
[0]=>
string(4) "--- "
@@ -62,6 +72,8 @@ array(2) {
}
--> Pattern: '\\\`\^\.\[\$\(\)\|\*\+\?\{\''; match: '\`^.[$()|*+?{''
+
+Deprecated: Function split() is deprecated in %s on line %d
array(2) {
[0]=>
string(0) ""
@@ -70,6 +82,8 @@ array(2) {
}
--> Pattern: '\a'; match: 'a'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(2) {
[0]=>
string(0) ""
@@ -78,6 +92,8 @@ array(2) {
}
--> Pattern: '[0-9][^0-9]'; match: '2a'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(2) {
[0]=>
string(0) ""
@@ -86,12 +102,16 @@ array(2) {
}
--> Pattern: '^[[:alnum:]]{62,62}$'; match: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(1) {
[0]=>
string(196) "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ |1| 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ |2| 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
}
--> Pattern: '^[[:digit:]]{5}'; match: '0123456789'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(2) {
[0]=>
string(0) ""
@@ -100,6 +120,8 @@ array(2) {
}
--> Pattern: '[[:digit:]]{5}$'; match: '0123456789'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(2) {
[0]=>
string(35) "0123456789 |1| 0123456789 |2| 01234"
@@ -109,6 +131,8 @@ array(2) {
--> Pattern: '[[:blank:]]{1,10}'; match: '
'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(2) {
[0]=>
string(1) "
@@ -120,6 +144,8 @@ array(2) {
}
--> Pattern: '[[:print:]]{3}'; match: ' a '
+
+Deprecated: Function split() is deprecated in %s on line %d
array(2) {
[0]=>
string(0) ""
diff --git a/ext/ereg/tests/split_basic_002.phpt b/ext/ereg/tests/split_basic_002.phpt
index 110007d3e5..443a6b6b92 100644
--- a/ext/ereg/tests/split_basic_002.phpt
+++ b/ext/ereg/tests/split_basic_002.phpt
@@ -28,6 +28,8 @@ echo "Done";
*** Testing ereg() : basic functionality ***
--> Pattern: '..(a|b|c)(a|b|c)..'; match: '--- ab ---'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(4) {
[0]=>
string(2) "--"
@@ -41,15 +43,21 @@ array(4) {
--> Pattern: '()'; match: ''
-Warning: split(): Invalid Regular Expression in %s on line 19
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): Invalid Regular Expression in %s on line %d
bool(false)
--> Pattern: '()'; match: 'abcdef'
-Warning: split(): Invalid Regular Expression in %s on line 19
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): Invalid Regular Expression in %s on line %d
bool(false)
--> Pattern: '[x]|[^x]'; match: 'abcdef'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(29) {
[0]=>
string(0) ""
@@ -112,6 +120,8 @@ array(29) {
}
--> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; match: '--- aaa bbb ccc ddd ---'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(4) {
[0]=>
string(4) "--- "
@@ -124,6 +134,8 @@ array(4) {
}
--> Pattern: '\\\`\^\.\[\$\(\)\|\*\+\?\{\''; match: '\`^.[$()|*+?{''
+
+Deprecated: Function split() is deprecated in %s on line %d
array(4) {
[0]=>
string(0) ""
@@ -136,6 +148,8 @@ array(4) {
}
--> Pattern: '\a'; match: 'a'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(4) {
[0]=>
string(0) ""
@@ -148,6 +162,8 @@ array(4) {
}
--> Pattern: '[0-9][^0-9]'; match: '2a'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(6) {
[0]=>
string(0) ""
@@ -164,12 +180,16 @@ array(6) {
}
--> Pattern: '^[[:alnum:]]{62,62}$'; match: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(1) {
[0]=>
string(196) "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ |1| 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ |2| 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
}
--> Pattern: '^[[:digit:]]{5}'; match: '0123456789'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(3) {
[0]=>
string(0) ""
@@ -180,6 +200,8 @@ array(3) {
}
--> Pattern: '[[:digit:]]{5}$'; match: '0123456789'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(2) {
[0]=>
string(35) "0123456789 |1| 0123456789 |2| 01234"
@@ -189,6 +211,8 @@ array(2) {
--> Pattern: '[[:blank:]]{1,10}'; match: '
'
+
+Deprecated: Function split() is deprecated in %s on line %d
array(6) {
[0]=>
string(1) "
@@ -208,6 +232,8 @@ array(6) {
}
--> Pattern: '[[:print:]]{3}'; match: ' a '
+
+Deprecated: Function split() is deprecated in %s on line %d
array(7) {
[0]=>
string(0) ""
diff --git a/ext/ereg/tests/split_basic_003.phpt b/ext/ereg/tests/split_basic_003.phpt
index 4d36fcddb3..8767144f7d 100644
--- a/ext/ereg/tests/split_basic_003.phpt
+++ b/ext/ereg/tests/split_basic_003.phpt
@@ -21,28 +21,39 @@ var_dump(split('[:alpha:]', '--- x ---'));
echo "Done";
?>
--EXPECTF--
+Deprecated: Function split() is deprecated in %s on line %d
array(1) {
[0]=>
string(7) "-- a --"
}
+
+Deprecated: Function split() is deprecated in %s on line %d
array(1) {
[0]=>
string(7) "-- 0 --"
}
+
+Deprecated: Function split() is deprecated in %s on line %d
array(1) {
[0]=>
string(11) "--- aaa ---"
}
+
+Deprecated: Function split() is deprecated in %s on line %d
array(1) {
[0]=>
string(10) "--- ba ---"
}
+
+Deprecated: Function split() is deprecated in %s on line %d
array(1) {
[0]=>
string(10) "--- ba ---"
}
+
+Deprecated: Function split() is deprecated in %s on line %d
array(1) {
[0]=>
string(9) "--- x ---"
}
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/split_error_001.phpt b/ext/ereg/tests/split_error_001.phpt
index cc226df6cb..2575717a22 100644
--- a/ext/ereg/tests/split_error_001.phpt
+++ b/ext/ereg/tests/split_error_001.phpt
@@ -31,11 +31,15 @@ echo "Done";
-- Testing split() function with more than expected no. of arguments --
-Warning: split() expects at most 3 parameters, 4 given in %s on line 17
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split() expects at most 3 parameters, 4 given in %s on line %d
NULL
-- Testing split() function with less than expected no. of arguments --
-Warning: split() expects at least 2 parameters, 1 given in %s on line 22
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split() expects at least 2 parameters, 1 given in %s on line %d
NULL
Done
diff --git a/ext/ereg/tests/split_error_002.phpt b/ext/ereg/tests/split_error_002.phpt
index c0a4529cd7..9eaac59e44 100644
--- a/ext/ereg/tests/split_error_002.phpt
+++ b/ext/ereg/tests/split_error_002.phpt
@@ -40,49 +40,79 @@ echo "Done";
--EXPECTF--
*** Testing split() : error conditions ***
-Warning: split(): REG_EMPTY in %s on line 16
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_EMPTY in %s on line %d
bool(false)
-Warning: split(): REG_EPAREN in %s on line 17
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_EPAREN in %s on line %d
bool(false)
-Warning: split(): REG_EBRACK in %s on line 18
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_EBRACK in %s on line %d
bool(false)
-Warning: split(): REG_EPAREN in %s on line 19
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_EPAREN in %s on line %d
bool(false)
-Warning: split(): REG_BADRPT in %s on line 20
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_BADRPT in %s on line %d
bool(false)
-Warning: split(): REG_BADRPT in %s on line 21
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_BADRPT in %s on line %d
bool(false)
-Warning: split(): REG_BADRPT in %s on line 22
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_BADRPT in %s on line %d
bool(false)
-Warning: split() expects parameter 3 to be long, string given in %s on line 23
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split() expects parameter 3 to be long, string given in %s on line %d
NULL
-Warning: split(): REG_BADBR in %s on line 24
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_BADBR in %s on line %d
bool(false)
-Warning: split(): REG_EMPTY in %s on line 25
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_EMPTY in %s on line %d
bool(false)
-Warning: split(): REG_EMPTY in %s on line 26
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_EMPTY in %s on line %d
bool(false)
-Warning: split(): REG_BADBR in %s on line 27
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_BADBR in %s on line %d
bool(false)
-Warning: split(): REG_ERANGE in %s on line 28
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_ERANGE in %s on line %d
bool(false)
-Warning: split(): REG_EESCAPE in %s on line 29
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split(): REG_EESCAPE in %s on line %d
bool(false)
-Warning: split() expects parameter 3 to be long, string given in %s on line 30
+Deprecated: Function split() is deprecated in %s on line %d
+
+Warning: split() expects parameter 3 to be long, string given in %s on line %d
NULL
string(8) "original"
Done
diff --git a/ext/ereg/tests/split_variation_001.phpt b/ext/ereg/tests/split_variation_001.phpt
index 542f740b1d..454c4b4250 100644
--- a/ext/ereg/tests/split_variation_001.phpt
+++ b/ext/ereg/tests/split_variation_001.phpt
@@ -85,12 +85,14 @@ Error: 8 - Undefined variable: undefined_var, %s(64)
Error: 8 - Undefined variable: unset_var, %s(67)
Arg value 0
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value 1
+Error: 8192 - Function split() is deprecated, %s(74)
array(4) {
[0]=>
string(0) ""
@@ -103,76 +105,91 @@ array(4) {
}
Arg value 12345
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value -2345
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value 10.5
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value -10.5
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value 101234567000
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value 1.07654321E-9
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value 0.5
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split() expects parameter 1 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split() expects parameter 1 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split() expects parameter 1 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split() expects parameter 1 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split() expects parameter 1 to be string, array given, %s(74)
NULL
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split(): REG_EMPTY, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function split() is deprecated, %s(74)
array(4) {
[0]=>
string(0) ""
@@ -185,10 +202,12 @@ array(4) {
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split(): REG_EMPTY, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function split() is deprecated, %s(74)
array(4) {
[0]=>
string(0) ""
@@ -201,27 +220,33 @@ array(4) {
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split(): REG_EMPTY, %s(74)
bool(false)
Error: 4096 - Object of class stdClass could not be converted to string, %s(73)
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split() expects parameter 1 to be string, object given, %s(74)
NULL
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split(): REG_EMPTY, %s(74)
bool(false)
Done
diff --git a/ext/ereg/tests/split_variation_002.phpt b/ext/ereg/tests/split_variation_002.phpt
index 7ccf2973fc..2a07353136 100644
--- a/ext/ereg/tests/split_variation_002.phpt
+++ b/ext/ereg/tests/split_variation_002.phpt
@@ -85,48 +85,56 @@ Error: 8 - Undefined variable: undefined_var, %s(64)
Error: 8 - Undefined variable: unset_var, %s(67)
Arg value 0
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(1) "0"
}
Arg value 1
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(1) "1"
}
Arg value 12345
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(5) "12345"
}
Arg value -2345
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(5) "-2345"
}
Arg value 10.5
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(4) "10.5"
}
Arg value -10.5
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(5) "-10.5"
}
Arg value 101234567000
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(12) "101234567000"
}
Arg value 1.07654321E-9
+Error: 8192 - Function split() is deprecated, %s(74)
array(2) {
[0]=>
string(10) "1.07654321"
@@ -135,74 +143,88 @@ array(2) {
}
Arg value 0.5
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(3) "0.5"
}
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
}
Arg value 1
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(1) "1"
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
}
Arg value 1
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(1) "1"
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
@@ -210,16 +232,19 @@ array(1) {
Error: 4096 - Object of class stdClass could not be converted to string, %s(73)
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
Error: 2 - split() expects parameter 2 to be string, object given, %s(74)
NULL
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
diff --git a/ext/ereg/tests/split_variation_003.phpt b/ext/ereg/tests/split_variation_003.phpt
index 630d8ab2a2..90b86c28ef 100644
--- a/ext/ereg/tests/split_variation_003.phpt
+++ b/ext/ereg/tests/split_variation_003.phpt
@@ -82,6 +82,7 @@ echo "Done";
*** Testing split() : usage variations ***
Arg value 10.5
+Error: 8192 - Function split() is deprecated, %s(73)
array(5) {
[0]=>
string(1) "1"
@@ -96,107 +97,128 @@ array(5) {
}
Arg value -10.5
+Error: 8192 - Function split() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value 1.07654321E-9
+Error: 8192 - Function split() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value 0.5
+Error: 8192 - Function split() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(73)
Error: 2 - split() expects parameter 3 to be long, array given, %s(73)
NULL
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(73)
Error: 2 - split() expects parameter 3 to be long, array given, %s(73)
NULL
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(73)
Error: 2 - split() expects parameter 3 to be long, array given, %s(73)
NULL
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(73)
Error: 2 - split() expects parameter 3 to be long, array given, %s(73)
NULL
Arg value Array
+Error: 8192 - Function split() is deprecated, %s(73)
Error: 2 - split() expects parameter 3 to be long, array given, %s(73)
NULL
Arg value
+Error: 8192 - Function split() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value 1
+Error: 8192 - Function split() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value 1
+Error: 8192 - Function split() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(73)
Error: 2 - split() expects parameter 3 to be long, string given, %s(73)
NULL
Arg value
+Error: 8192 - Function split() is deprecated, %s(73)
Error: 2 - split() expects parameter 3 to be long, string given, %s(73)
NULL
Arg value string
+Error: 8192 - Function split() is deprecated, %s(73)
Error: 2 - split() expects parameter 3 to be long, string given, %s(73)
NULL
Arg value string
+Error: 8192 - Function split() is deprecated, %s(73)
Error: 2 - split() expects parameter 3 to be long, string given, %s(73)
NULL
Error: 4096 - Object of class stdClass could not be converted to string, %s(72)
Arg value
+Error: 8192 - Function split() is deprecated, %s(73)
Error: 2 - split() expects parameter 3 to be long, object given, %s(73)
NULL
Arg value
+Error: 8192 - Function split() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value
+Error: 8192 - Function split() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
diff --git a/ext/ereg/tests/split_variation_004.phpt b/ext/ereg/tests/split_variation_004.phpt
index fbd76277ae..6b9a869784 100644
--- a/ext/ereg/tests/split_variation_004.phpt
+++ b/ext/ereg/tests/split_variation_004.phpt
@@ -25,14 +25,17 @@ echo "Done";
?>
--EXPECTF--
*** Testing split() : usage variations ***
+Error: 8192 - Function split() is deprecated, %s(16)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
+Error: 8192 - Function split() is deprecated, %s(17)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
+Error: 8192 - Function split() is deprecated, %s(18)
array(5) {
[0]=>
string(1) "1"
@@ -45,4 +48,4 @@ array(5) {
[4]=>
string(1) "5"
}
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/spliti_basic_001.phpt b/ext/ereg/tests/spliti_basic_001.phpt
index 04f138d4e9..743bd66212 100644
--- a/ext/ereg/tests/spliti_basic_001.phpt
+++ b/ext/ereg/tests/spliti_basic_001.phpt
@@ -28,6 +28,8 @@ echo "Done";
*** Testing ereg() : basic functionality ***
--> Pattern: '..(a|b|c)(a|b|c)..'; match: '--- ab ---'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(2) "--"
@@ -37,15 +39,21 @@ array(2) {
--> Pattern: '()'; match: ''
-Warning: spliti(): Invalid Regular Expression in %s on line 19
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): Invalid Regular Expression in %s on line %d
bool(false)
--> Pattern: '()'; match: 'abcdef'
-Warning: spliti(): Invalid Regular Expression in %s on line 19
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): Invalid Regular Expression in %s on line %d
bool(false)
--> Pattern: '[x]|[^x]'; match: 'abcdef'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(0) ""
@@ -54,6 +62,8 @@ array(2) {
}
--> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; match: '--- aaa bbb ccc ddd ---'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(4) "--- "
@@ -62,6 +72,8 @@ array(2) {
}
--> Pattern: '\\\`\^\.\[\$\(\)\|\*\+\?\{\''; match: '\`^.[$()|*+?{''
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(0) ""
@@ -70,6 +82,8 @@ array(2) {
}
--> Pattern: '\a'; match: 'a'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(0) ""
@@ -78,6 +92,8 @@ array(2) {
}
--> Pattern: '[0-9][^0-9]'; match: '2a'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(0) ""
@@ -86,12 +102,16 @@ array(2) {
}
--> Pattern: '^[[:alnum:]]{62,62}$'; match: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(1) {
[0]=>
string(196) "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ |1| 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ |2| 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
}
--> Pattern: '^[[:digit:]]{5}'; match: '0123456789'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(0) ""
@@ -100,6 +120,8 @@ array(2) {
}
--> Pattern: '[[:digit:]]{5}$'; match: '0123456789'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(35) "0123456789 |1| 0123456789 |2| 01234"
@@ -109,6 +131,8 @@ array(2) {
--> Pattern: '[[:blank:]]{1,10}'; match: '
'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(1) "
@@ -120,6 +144,8 @@ array(2) {
}
--> Pattern: '[[:print:]]{3}'; match: ' a '
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(0) ""
diff --git a/ext/ereg/tests/spliti_basic_002.phpt b/ext/ereg/tests/spliti_basic_002.phpt
index 79784d324d..df61a42cae 100644
--- a/ext/ereg/tests/spliti_basic_002.phpt
+++ b/ext/ereg/tests/spliti_basic_002.phpt
@@ -28,6 +28,8 @@ echo "Done";
*** Testing ereg() : basic functionality ***
--> Pattern: '..(a|b|c)(a|b|c)..'; match: '--- ab ---'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(4) {
[0]=>
string(2) "--"
@@ -41,15 +43,21 @@ array(4) {
--> Pattern: '()'; match: ''
-Warning: spliti(): Invalid Regular Expression in %s on line 19
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): Invalid Regular Expression in %s on line %d
bool(false)
--> Pattern: '()'; match: 'abcdef'
-Warning: spliti(): Invalid Regular Expression in %s on line 19
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): Invalid Regular Expression in %s on line %d
bool(false)
--> Pattern: '[x]|[^x]'; match: 'abcdef'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(29) {
[0]=>
string(0) ""
@@ -112,6 +120,8 @@ array(29) {
}
--> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; match: '--- aaa bbb ccc ddd ---'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(4) {
[0]=>
string(4) "--- "
@@ -124,6 +134,8 @@ array(4) {
}
--> Pattern: '\\\`\^\.\[\$\(\)\|\*\+\?\{\''; match: '\`^.[$()|*+?{''
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(4) {
[0]=>
string(0) ""
@@ -136,6 +148,8 @@ array(4) {
}
--> Pattern: '\a'; match: 'a'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(4) {
[0]=>
string(0) ""
@@ -148,6 +162,8 @@ array(4) {
}
--> Pattern: '[0-9][^0-9]'; match: '2a'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(6) {
[0]=>
string(0) ""
@@ -164,12 +180,16 @@ array(6) {
}
--> Pattern: '^[[:alnum:]]{62,62}$'; match: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(1) {
[0]=>
string(196) "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ |1| 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ |2| 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
}
--> Pattern: '^[[:digit:]]{5}'; match: '0123456789'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(3) {
[0]=>
string(0) ""
@@ -180,6 +200,8 @@ array(3) {
}
--> Pattern: '[[:digit:]]{5}$'; match: '0123456789'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(35) "0123456789 |1| 0123456789 |2| 01234"
@@ -189,6 +211,8 @@ array(2) {
--> Pattern: '[[:blank:]]{1,10}'; match: '
'
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(6) {
[0]=>
string(1) "
@@ -208,6 +232,8 @@ array(6) {
}
--> Pattern: '[[:print:]]{3}'; match: ' a '
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(7) {
[0]=>
string(0) ""
diff --git a/ext/ereg/tests/spliti_basic_003.phpt b/ext/ereg/tests/spliti_basic_003.phpt
index 143f1a1961..39bd1dcbf7 100644
--- a/ext/ereg/tests/spliti_basic_003.phpt
+++ b/ext/ereg/tests/spliti_basic_003.phpt
@@ -20,24 +20,33 @@ var_dump(spliti('[:alpha:]', '--- x ---'));
echo "Done";
?>
--EXPECTF--
+Deprecated: Function spliti() is deprecated in %s on line %d
array(1) {
[0]=>
string(7) "-- 0 --"
}
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(1) {
[0]=>
string(11) "--- aaa ---"
}
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(1) {
[0]=>
string(10) "--- ba ---"
}
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(1) {
[0]=>
string(10) "--- ba ---"
}
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(1) {
[0]=>
string(9) "--- x ---"
}
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/spliti_basic_004.phpt b/ext/ereg/tests/spliti_basic_004.phpt
index 95edc158d9..ed07193194 100644
--- a/ext/ereg/tests/spliti_basic_004.phpt
+++ b/ext/ereg/tests/spliti_basic_004.phpt
@@ -18,28 +18,35 @@ var_dump(spliti('[[:upper:]]', '--- a ---'));
echo "Done";
?>
--EXPECTF--
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(4) "--- "
[1]=>
string(4) " ---"
}
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(4) "--- "
[1]=>
string(4) " ---"
}
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(4) "--- "
[1]=>
string(4) " ---"
}
+
+Deprecated: Function spliti() is deprecated in %s on line %d
array(2) {
[0]=>
string(4) "--- "
[1]=>
string(4) " ---"
}
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/spliti_error_001.phpt b/ext/ereg/tests/spliti_error_001.phpt
index 104364eec5..cd4e6a99e6 100644
--- a/ext/ereg/tests/spliti_error_001.phpt
+++ b/ext/ereg/tests/spliti_error_001.phpt
@@ -31,11 +31,15 @@ echo "Done";
-- Testing spliti() function with more than expected no. of arguments --
+Deprecated: Function spliti() is deprecated in %s on line %d
+
Warning: spliti() expects at most 3 parameters, 4 given in %s on line %d
NULL
-- Testing spliti() function with less than expected no. of arguments --
+Deprecated: Function spliti() is deprecated in %s on line %d
+
Warning: spliti() expects at least 2 parameters, 1 given in %s on line %d
NULL
Done
diff --git a/ext/ereg/tests/spliti_error_002.phpt b/ext/ereg/tests/spliti_error_002.phpt
index 7a7045dc1e..19dd171655 100644
--- a/ext/ereg/tests/spliti_error_002.phpt
+++ b/ext/ereg/tests/spliti_error_002.phpt
@@ -40,48 +40,78 @@ echo "Done";
--EXPECTF--
*** Testing spliti() : error conditions ***
-Warning: spliti(): REG_EMPTY in %s on line 16
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): REG_EMPTY in %s on line %d
bool(false)
-Warning: spliti(): REG_EPAREN in %s on line 17
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): REG_EPAREN in %s on line %d
bool(false)
-Warning: spliti(): REG_EBRACK in %s on line 18
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): REG_EBRACK in %s on line %d
bool(false)
-Warning: spliti(): REG_EPAREN in %s on line 19
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): REG_EPAREN in %s on line %d
bool(false)
-Warning: spliti(): REG_BADRPT in %s on line 20
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): REG_BADRPT in %s on line %d
bool(false)
-Warning: spliti(): REG_BADRPT in %s on line 21
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): REG_BADRPT in %s on line %d
bool(false)
-Warning: spliti(): REG_BADRPT in %s on line 22
+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
-Warning: spliti(): REG_BADBR in %s on line 24
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): REG_BADBR in %s on line %d
bool(false)
-Warning: spliti(): REG_EMPTY in %s on line 25
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): REG_EMPTY in %s on line %d
bool(false)
-Warning: spliti(): REG_EMPTY in %s on line 26
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): REG_EMPTY in %s on line %d
bool(false)
-Warning: spliti(): REG_BADBR in %s on line 27
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): REG_BADBR in %s on line %d
bool(false)
-Warning: spliti(): REG_ERANGE in %s on line 28
+Deprecated: Function spliti() is deprecated in %s on line %d
+
+Warning: spliti(): REG_ERANGE in %s on line %d
bool(false)
-Warning: spliti(): REG_EESCAPE in %s on line 29
+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"
diff --git a/ext/ereg/tests/spliti_variation_001.phpt b/ext/ereg/tests/spliti_variation_001.phpt
index 4facee826f..08c6ba0d99 100644
--- a/ext/ereg/tests/spliti_variation_001.phpt
+++ b/ext/ereg/tests/spliti_variation_001.phpt
@@ -85,12 +85,14 @@ Error: 8 - Undefined variable: undefined_var, %s(64)
Error: 8 - Undefined variable: unset_var, %s(67)
Arg value 0
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value 1
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(4) {
[0]=>
string(0) ""
@@ -103,76 +105,91 @@ array(4) {
}
Arg value 12345
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value -2345
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value 10.5
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value -10.5
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value 101234567000
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value 1.07654321E-9
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value 0.5
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(16) "1 a 1 Array 1 c "
}
Arg value Array
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti() expects parameter 1 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti() expects parameter 1 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti() expects parameter 1 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti() expects parameter 1 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti() expects parameter 1 to be string, array given, %s(74)
NULL
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti(): REG_EMPTY, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(4) {
[0]=>
string(0) ""
@@ -185,10 +202,12 @@ array(4) {
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti(): REG_EMPTY, %s(74)
bool(false)
Arg value 1
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(4) {
[0]=>
string(0) ""
@@ -201,27 +220,33 @@ array(4) {
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti(): REG_EMPTY, %s(74)
bool(false)
Error: 4096 - Object of class stdClass could not be converted to string, %s(73)
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti() expects parameter 1 to be string, object given, %s(74)
NULL
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti(): REG_EMPTY, %s(74)
bool(false)
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti(): REG_EMPTY, %s(74)
bool(false)
Done
diff --git a/ext/ereg/tests/spliti_variation_002.phpt b/ext/ereg/tests/spliti_variation_002.phpt
index b59ef6d81e..03fc131e94 100644
--- a/ext/ereg/tests/spliti_variation_002.phpt
+++ b/ext/ereg/tests/spliti_variation_002.phpt
@@ -85,48 +85,56 @@ Error: 8 - Undefined variable: undefined_var, %s(64)
Error: 8 - Undefined variable: unset_var, %s(67)
Arg value 0
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(1) "0"
}
Arg value 1
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(1) "1"
}
Arg value 12345
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(5) "12345"
}
Arg value -2345
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(5) "-2345"
}
Arg value 10.5
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(4) "10.5"
}
Arg value -10.5
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(5) "-10.5"
}
Arg value 101234567000
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(12) "101234567000"
}
Arg value 1.07654321E-9
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(2) {
[0]=>
string(10) "1.07654321"
@@ -135,74 +143,88 @@ array(2) {
}
Arg value 0.5
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(3) "0.5"
}
Arg value Array
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value Array
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti() expects parameter 2 to be string, array given, %s(74)
NULL
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
}
Arg value 1
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(1) "1"
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
}
Arg value 1
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(1) "1"
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
@@ -210,16 +232,19 @@ array(1) {
Error: 4096 - Object of class stdClass could not be converted to string, %s(73)
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
Error: 2 - spliti() expects parameter 2 to be string, object given, %s(74)
NULL
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(74)
array(1) {
[0]=>
string(0) ""
diff --git a/ext/ereg/tests/spliti_variation_003.phpt b/ext/ereg/tests/spliti_variation_003.phpt
index 7e3f0071c4..906af40804 100644
--- a/ext/ereg/tests/spliti_variation_003.phpt
+++ b/ext/ereg/tests/spliti_variation_003.phpt
@@ -82,6 +82,7 @@ echo "Done";
*** Testing spliti() : usage variations ***
Arg value 10.5
+Error: 8192 - Function spliti() is deprecated, %s(73)
array(5) {
[0]=>
string(1) "1"
@@ -96,107 +97,128 @@ array(5) {
}
Arg value -10.5
+Error: 8192 - Function spliti() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value 1.07654321E-9
+Error: 8192 - Function spliti() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value 0.5
+Error: 8192 - Function spliti() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value Array
-Error: 2 - spliti() expects parameter 3 to be long, array given, %s.php(73)
+Error: 8192 - Function spliti() is deprecated, %s(73)
+Error: 2 - spliti() expects parameter 3 to be long, array given, %s(73)
NULL
Arg value Array
-Error: 2 - spliti() expects parameter 3 to be long, array given, %s.php(73)
+Error: 8192 - Function spliti() is deprecated, %s(73)
+Error: 2 - spliti() expects parameter 3 to be long, array given, %s(73)
NULL
Arg value Array
-Error: 2 - spliti() expects parameter 3 to be long, array given, %s.php(73)
+Error: 8192 - Function spliti() is deprecated, %s(73)
+Error: 2 - spliti() expects parameter 3 to be long, array given, %s(73)
NULL
Arg value Array
-Error: 2 - spliti() expects parameter 3 to be long, array given, %s.php(73)
+Error: 8192 - Function spliti() is deprecated, %s(73)
+Error: 2 - spliti() expects parameter 3 to be long, array given, %s(73)
NULL
Arg value Array
-Error: 2 - spliti() expects parameter 3 to be long, array given, %s.php(73)
+Error: 8192 - Function spliti() is deprecated, %s(73)
+Error: 2 - spliti() expects parameter 3 to be long, array given, %s(73)
NULL
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value 1
+Error: 8192 - Function spliti() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value 1
+Error: 8192 - Function spliti() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(73)
Error: 2 - spliti() expects parameter 3 to be long, string given, %s(73)
NULL
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(73)
Error: 2 - spliti() expects parameter 3 to be long, string given, %s(73)
NULL
Arg value string
+Error: 8192 - Function spliti() is deprecated, %s(73)
Error: 2 - spliti() expects parameter 3 to be long, string given, %s(73)
NULL
Arg value string
+Error: 8192 - Function spliti() is deprecated, %s(73)
Error: 2 - spliti() expects parameter 3 to be long, string given, %s(73)
NULL
Error: 4096 - Object of class stdClass could not be converted to string, %s(72)
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(73)
Error: 2 - spliti() expects parameter 3 to be long, object given, %s(73)
NULL
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
Arg value
+Error: 8192 - Function spliti() is deprecated, %s(73)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
diff --git a/ext/ereg/tests/spliti_variation_004.phpt b/ext/ereg/tests/spliti_variation_004.phpt
index 7a331be367..e9b33d4334 100644
--- a/ext/ereg/tests/spliti_variation_004.phpt
+++ b/ext/ereg/tests/spliti_variation_004.phpt
@@ -25,14 +25,17 @@ echo "Done";
?>
--EXPECTF--
*** Testing spliti() : usage variations ***
+Error: 8192 - Function spliti() is deprecated, %s(16)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
+Error: 8192 - Function spliti() is deprecated, %s(17)
array(1) {
[0]=>
string(9) "1 2 3 4 5"
}
+Error: 8192 - Function spliti() is deprecated, %s(18)
array(5) {
[0]=>
string(1) "1"
@@ -45,4 +48,4 @@ array(5) {
[4]=>
string(1) "5"
}
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/sql_regcase_basic_001.phpt b/ext/ereg/tests/sql_regcase_basic_001.phpt
index 7657fa28c7..5a04724b75 100644
--- a/ext/ereg/tests/sql_regcase_basic_001.phpt
+++ b/ext/ereg/tests/sql_regcase_basic_001.phpt
@@ -21,5 +21,7 @@ echo "Done";
?>
--EXPECTF--
*** Testing sql_regcase() : basic functionality ***
+
+Deprecated: Function sql_regcase() is deprecated in %s on line %d
string(39) "[Ss][Tt][Rr][Ii][Nn][Gg]_[Vv][Aa][Ll]-0"
-Done \ No newline at end of file
+Done
diff --git a/ext/ereg/tests/sql_regcase_error_001.phpt b/ext/ereg/tests/sql_regcase_error_001.phpt
index 9fb1506004..6ac71f27c1 100644
--- a/ext/ereg/tests/sql_regcase_error_001.phpt
+++ b/ext/ereg/tests/sql_regcase_error_001.phpt
@@ -27,11 +27,15 @@ echo "Done";
-- Testing sql_regcase() function with Zero arguments --
-Warning: sql_regcase() expects exactly 1 parameter, 0 given in %s.php on line 12
+Deprecated: Function sql_regcase() is deprecated in %s on line %d
+
+Warning: sql_regcase() expects exactly 1 parameter, 0 given in %s on line %d
NULL
-- Testing sql_regcase() function with more than expected no. of arguments --
-Warning: sql_regcase() expects exactly 1 parameter, 2 given in %s.php on line 18
+Deprecated: Function sql_regcase() is deprecated in %s on line %d
+
+Warning: sql_regcase() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Done
diff --git a/ext/ereg/tests/sql_regcase_variation_001.phpt b/ext/ereg/tests/sql_regcase_variation_001.phpt
index 2445d6dcab..c2c28ab50e 100644
--- a/ext/ereg/tests/sql_regcase_variation_001.phpt
+++ b/ext/ereg/tests/sql_regcase_variation_001.phpt
@@ -83,84 +83,109 @@ Error: 8 - Undefined variable: undefined_var, %s(62)
Error: 8 - Undefined variable: unset_var, %s(65)
Arg value 0
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(1) "0"
Arg value 1
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(1) "1"
Arg value 12345
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(5) "12345"
Arg value -2345
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(5) "-2345"
Arg value 10.5
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(4) "10.5"
Arg value -10.5
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(5) "-10.5"
Arg value 101234567000
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(12) "101234567000"
Arg value 1.07654321E-9
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(16) "1.07654321[Ee]-9"
Arg value 0.5
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(3) "0.5"
Arg value Array
-Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s.php(72)
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
+Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s(72)
NULL
Arg value Array
-Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s.php(72)
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
+Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s(72)
NULL
Arg value Array
-Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s.php(72)
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
+Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s(72)
NULL
Arg value Array
-Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s.php(72)
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
+Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s(72)
NULL
Arg value Array
-Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s.php(72)
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
+Error: 2 - sql_regcase() expects parameter 1 to be string, array given, %s(72)
NULL
Arg value
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(0) ""
Arg value
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(0) ""
Arg value 1
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(1) "1"
Arg value
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(0) ""
Arg value 1
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(1) "1"
Arg value
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(0) ""
Arg value
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(0) ""
Arg value
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(0) ""
Error: 4096 - Object of class stdClass could not be converted to string, %s(71)
Arg value
-Error: 2 - sql_regcase() expects parameter 1 to be string, object given, %s.php(72)
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
+Error: 2 - sql_regcase() expects parameter 1 to be string, object given, %s(72)
NULL
Arg value
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(0) ""
Arg value
+Error: 8192 - Function sql_regcase() is deprecated, %s(72)
string(0) ""
Done