com php-src: Fixed bug #64290 (behavior change of converting to long): ext/ereg/tests/split_variation_004.phpt ext/ereg/
tests/spliti_variation_004.phpt
| From: | Xinchen Hui | Date: | Sun, 03 Mar 2013 02:59:15 +0000 |
| Subject: | com php-src: Fixed bug #64290 (behavior change of converting to long): ext/ereg/tests/split_variation_004.phpt ext/ereg/ tests/spliti_variation_004.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71363@lists.php.net to get a copy of this message | ||
Commit: 505c6ca486aa8edbc3a42ae0f4ba7eb01d02721c
Author: Xinchen Hui <laruence@php.net> Sun, 3 Mar 2013 10:59:15 +0800
Parents: f2246f352fc01295c370728d68a9bcd2bb546652
Branches: PHP-5.5
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=505c6ca486aa8edbc3a42ae0f4ba7eb01d02721c
Log:
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.
Bugs:
https://bugs.php.net/64290
Changed paths:
M ext/ereg/tests/split_variation_004.phpt
M ext/ereg/tests/spliti_variation_004.phpt
Diff:
diff --git a/ext/ereg/tests/split_variation_004.phpt b/ext/ereg/tests/split_variation_004.phpt
index 1fa71ed..d3d2de8 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 b6bf227..d9afa13 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