com php-src: Fix test related to 714d9fc358640069bda5540c2b1136a6241c4c94: ext/standard/tests/array/array_filter_variation9.phpt

From: Date: Sun, 19 May 2019 11:47:53 +0000
Subject: com php-src: Fix test related to 714d9fc358640069bda5540c2b1136a6241c4c94: ext/standard/tests/array/array_filter_variation9.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106243@lists.php.net to get a copy of this message
Commit: 53d1a42c322053cd22488ebb451e2708bc3fefa6 Author: Gabriel Caruso <carusogabriel34@gmail.com> Sun, 19 May 2019 08:47:53 -0300 Parents: 0cc63b9d2d31b3aeefed21cd486188ba149f31a7 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=53d1a42c322053cd22488ebb451e2708bc3fefa6 Log: Fix test related to 714d9fc358640069bda5540c2b1136a6241c4c94 The string value in the test array was removed, as the chr function only accepts an integer Changed paths: M ext/standard/tests/array/array_filter_variation9.phpt Diff: diff --git a/ext/standard/tests/array/array_filter_variation9.phpt b/ext/standard/tests/array/array_filter_variation9.phpt index 35cc218..240f5c1 100644 --- a/ext/standard/tests/array/array_filter_variation9.phpt +++ b/ext/standard/tests/array/array_filter_variation9.phpt @@ -13,7 +13,7 @@ Test array_filter() function : usage variations - built-in functions as 'callbac echo "*** Testing array_filter() : usage variations - built-in functions as 'callback' argument ***\n"; -$input = array(0, 1, -1, 10, 100, 1000, 'Hello', null); +$input = array(0, 1, -1, 10, 100, 1000, null); // using built-in function 'is_int' as 'callback' var_dump( array_filter($input, 'is_int') ); @@ -53,9 +53,7 @@ array(6) { [5]=> int(1000) } - -Warning: chr() expects parameter 1 to be int, string given in %s on line %d -array(8) { +array(7) { [0]=> int(0) [1]=> @@ -69,8 +67,6 @@ array(8) { [5]=> int(1000) [6]=> - string(5) "Hello" - [7]=> NULL } array_filter() expects parameter 2 to be a valid callback, function 'echo' not found or invalid function name

« previous php.cvs (#106243) next »