From: Xinchen Hui Date: Sun, 3 Mar 2013 02:59:15 +0000 (+0800) Subject: Fixed bug #64290 (behavior change of converting to long) X-Git-Tag: php-5.5.0alpha6~12^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=505c6ca486aa8edbc3a42ae0f4ba7eb01d02721c;p=php Fixed bug #64290 (behavior change of converting to long) convert_to_long behavior has been improved As Cataphrace said in IRC, the test should be fixed. --- diff --git a/ext/ereg/tests/split_variation_004.phpt b/ext/ereg/tests/split_variation_004.phpt index 1fa71edd38..d3d2de84a3 100644 --- a/ext/ereg/tests/split_variation_004.phpt +++ b/ext/ereg/tests/split_variation_004.phpt @@ -18,7 +18,6 @@ $pattern = '[[:space:]]'; $string = '1 2 3 4 5'; var_dump(split($pattern, $string, 0)); var_dump(split($pattern, $string, -10)); -var_dump(split($pattern, $string, 10E20)); echo "Done"; @@ -35,9 +34,4 @@ array(1) { [0]=> string(9) "1 2 3 4 5" } -Error: 8192 - Function split() is deprecated, %s(18) -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} Done diff --git a/ext/ereg/tests/spliti_variation_004.phpt b/ext/ereg/tests/spliti_variation_004.phpt index b6bf227ba0..d9afa13892 100644 --- a/ext/ereg/tests/spliti_variation_004.phpt +++ b/ext/ereg/tests/spliti_variation_004.phpt @@ -18,7 +18,6 @@ $pattern = '[[:space:]]'; $string = '1 2 3 4 5'; var_dump(spliti($pattern, $string, 0)); var_dump(spliti($pattern, $string, -10)); -var_dump(spliti($pattern, $string, 10E20)); echo "Done"; @@ -35,9 +34,4 @@ array(1) { [0]=> string(9) "1 2 3 4 5" } -Error: 8192 - Function spliti() is deprecated, %s(18) -array(1) { - [0]=> - string(9) "1 2 3 4 5" -} Done