com php-src: Harden array_column_basic.phpt against r esource renumbering.: ext/standard/tests/array/array_ column_basic.phpt
| From: | Sara Golemon | Date: | Mon, 22 Apr 2013 20:36:40 +0000 |
| Subject: | com php-src: Harden array_column_basic.phpt against r esource renumbering.: ext/standard/tests/array/array_ column_basic.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71976@lists.php.net to get a copy of this message | ||
Commit: f63db963c48775e89e7d5f63235733098c2f653d
Author: Sara Golemon <pollita@php.net> Mon, 22 Apr 2013 13:36:40 -0700
Parents: 7b34324f846505a0af6bed83556b840b50a1ef30
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f63db963c48775e89e7d5f63235733098c2f653d
Log:
Harden array_column_basic.phpt against resource renumbering.
We don't care what resource number it is, so long as there's a
stream resource returned.
Changed paths:
M ext/standard/tests/array/array_column_basic.phpt
Diff:
diff --git a/ext/standard/tests/array/array_column_basic.phpt
b/ext/standard/tests/array/array_column_basic.phpt
index 8c49910..eb267da 100644
--- a/ext/standard/tests/array/array_column_basic.phpt
+++ b/ext/standard/tests/array/array_column_basic.phpt
@@ -192,7 +192,7 @@ array(8) {
[6]=>
string(3) "Foo"
[7]=>
- resource(5) of type (stream)
+ resource(%d) of type (stream)
}
array(8) {
[1]=>
@@ -211,7 +211,7 @@ array(8) {
[7]=>
string(3) "Foo"
[8]=>
- resource(5) of type (stream)
+ resource(%d) of type (stream)
}
*** Testing numeric column keys ***