Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 1154) sorted by relevance

12345678910>>...47

/php-src/ext/standard/tests/strings/
H A Dvprintf_variation2.phpt2 Test vprintf() function : usage variations - unexpected values for args argument
6 * Test vprintf() when different unexpected values are passed to
31 //array of values to iterate over
32 $values = array(
80 foreach($values as $value) {
102 vprintf(): Argument #2 ($values) must be of type array, int given
105 vprintf(): Argument #2 ($values) must be of type array, int given
108 vprintf(): Argument #2 ($values) must be of type array, int given
111 vprintf(): Argument #2 ($values) must be of type array, int given
129 vprintf(): Argument #2 ($values) must be of type array, null given
[all …]
H A Dnumber_format_basic.phpt7 $values = array(1234.5678,
20 for ($i = 0; $i < count($values); $i++) {
21 $res = number_format($values[$i]);
26 for ($i = 0; $i < count($values); $i++) {
27 $res = number_format($values[$i], 2);
32 for ($i = 0; $i < count($values); $i++) {
33 $res = number_format($values[$i], 2, '.', ' ');
38 for ($i = 0; $i < count($values); $i++) {
39 $res = number_format($values[$i], 2, ',' , ' ');
H A Djoin_variation1.phpt2 Test join() function : usage variations - unexpected values for 'glue' argument
25 // array with different values
26 $values = array (
28 // integer values
34 // float values
41 // array values
48 // boolean values
67 // when $glue argument is supplied with different values
70 for($index = 0; $index < count($values); $index ++) {
72 $glue = $values [$index];
[all …]
H A Dstr_split_variation7.phpt2 Test str_split() function : usage variations - different integer values for 'split_length' with her…
6 * passing different integer values for 'split_length' and heredoc string as 'str' argument to str_s…
9 echo "*** Testing str_split() : different integer values for 'split_length' with heredoc 'str' ***\…
15 //different values for 'split_length'
16 $values = array (
26 //loop through each element of $values for 'split_length'
27 for($count = 0; $count < count($values); $count++) {
31 var_dump( str_split($str, $values[$count]) );
38 *** Testing str_split() : different integer values for 'split_length' with heredoc 'str' ***
/php-src/ext/spl/tests/
H A DSplFixedArray_setSize_destruct.phpt5 $values = new SplFixedArray(1);
6 $values->offsetSet(0, new HasDestructor());
7 $values->offsetSet(0, false);
12 global $values;
13 var_dump($values);
14 $values->setSize($values->getSize() - 1);
16 var_dump($values);
20 $values->setSize(5);
21 $values->offsetSet(4, new HasDestructor());
/php-src/ext/standard/tests/array/
H A Darray_merge_recursive_variation9.phpt14 // integer values
20 // float values
23 echo "-- Float values --\n";
26 // string values
32 // boolean values
38 // null values
48 -- Integer values --
62 -- Float values --
76 -- String values --
90 -- Boolean values --
[all …]
H A Darray_flip_variation4.phpt2 Test array_flip() function : usage variations - 'input' argument with different invalid values for …
6 * Trying different invalid values for 'input' array argument
9 echo "*** Testing array_flip() : different invalid values in 'input' array argument ***\n";
25 // float values
31 // bool values
37 // null values
58 *** Testing array_flip() : different invalid values in 'input' array argument ***
60 Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d
62 Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d
64 Warning: array_flip(): Can only flip string and integer values, entry skipped in %s on line %d
[all …]
H A Duasort_basic2.phpt2 Test uasort() function : basic functionality - duplicate values
20 // increasing values
22 echo "-- Numeric array with increasing values --\n";
26 // decreasing values
28 echo "-- Numeric array with decreasing values --\n";
32 // increasing and decreasing values
34 echo "-- Numeric array with increasing and decreasing values --\n";
41 *** Testing uasort() : basic functionality with duplicate values ***
42 -- Numeric array with increasing values --
58 -- Numeric array with decreasing values --
[all …]
H A Darray_sum_variation4.phpt2 Test array_sum() function : usage variations - array with duplicate values
6 * Checking array_sum() with integer and float array containing duplicate values
9 echo "*** Testing array_sum() : array with duplicate values ***\n";
11 // integer array with duplicate values
16 // float array with duplicate values
24 *** Testing array_sum() : array with duplicate values ***
H A Dshuffle_variation4.phpt7 * having different types of values, are passed to 'array_arg' argument
14 // array with positive int values
17 // array with negative int values
20 // array with positive float values
23 // array with negative float values
29 // array with bool values
32 // array with positive hexa values
35 // array with negative hexa values
38 // array with positive octal values
41 // array with negative octal values
[all …]
H A Darray_fill_variation3.phpt2 Test array_fill() function : usage variations - unexpected values for 'val' argument
6 * testing array_fill() by passing different unexpected values for 'val' argument
30 //array of different values for 'val' argument
31 $values = array(
47 echo "--- Testing array_fill() with different values for 'val' argument ---\n";
49 for($index = 0; $index < count($values); $index ++)
52 $val = $values[$index];
63 --- Testing array_fill() with different values for 'val' argument ---
H A Dshuffle_variation3.phpt7 * types of values, are passed to 'array_arg' argument
14 // array with positive int values
17 // array with negative int values
20 // array with positive float values
23 // array with negative float values
29 // array with bool values
32 // array with positive hexa values
35 // array with negative hexa values
38 // array with positive octal values
41 // array with negative octal values
[all …]
H A Darray_diff_assoc_variation6.phpt20 //default keys => string values
23 //numeric keys => string values
29 //string keys => string values
35 //default keys => numeric values
38 //numeric keys => numeric values
43 //string keys => numeric values
48 //default keys => float values
51 //numeric keys => float values
56 //string keys => float values
H A Darray_walk_variation3.phpt2 Test array_walk() function : usage variations - 'input' array with different values
15 echo "*** Testing array_walk() : 'input' array with different values***\n";
20 // integer values
26 // string values
29 // bool values
32 // null values
52 *** Testing array_walk() : 'input' array with different values***
/php-src/ext/pdo_mysql/tests/
H A Dbug_38546.phpt30 $values = [
36 $st->bindParam(1, $values['uid'], PDO::PARAM_INT);
55 $values = [
65 $st->bindParam(4, $values['uid'], PDO::PARAM_INT);
81 $values = [
91 $st->bindParam(4, $values['uid'], PDO::PARAM_INT);
108 $values = [
118 $st->bindParam(4, $values['uid'], PDO::PARAM_INT);
135 $values = [
145 $st->bindParam(4, $values['uid'], PDO::PARAM_INT);
[all …]
/php-src/ext/standard/tests/assert/
H A Dassert_basic4.phpt2 assert() - basic - test initial values using ini.get and assert_options
19 echo "Initial values: ini.get(\"assert.active\") => [".ini_get("assert.active")."]\n";
21 echo "Initial values: ini.get(\"assert.bail\") => [".ini_get("assert.bail")."]\n";
34 Initial values: assert_options(ASSERT_ACTIVE) => [0]
39 Initial values: assert_options(ASSERT_WARNING) => [0]
44 Initial values: assert_options(ASSERT_BAIL) => [0]
49 Initial values: assert_options(ASSERT_CALLBACK) => [f1]
50 Initial values: ini.get("assert.active") => [0]
51 Initial values: ini.get("assert.warning") => [0]
52 Initial values: ini.get("assert.bail") => [0]
[all …]
/php-src/ext/pgsql/tests/
H A Dbug65119.phpt14 function test(Array $values, $conn_str) {
19 pg_copy_from($connection, $table_name, $values, "\t", "NULL");
23 $values = Array(1,2,3);
24 var_dump($values);
25 test($values, $conn_str);
26 var_dump($values);
/php-src/ext/standard/tests/general_functions/
H A Dvar_export_basic7.phpt2 Test var_export() function with valid null values
5 echo "*** Testing var_export() with valid null values ***\n";
7 // different valid null values
18 /* Loop to check for above null values with var_export() */
19 echo "\n*** Output for null values ***\n";
31 *** Testing var_export() with valid null values ***
33 *** Output for null values ***
H A Dvar_export_basic2.phpt2 Test var_export() function with valid boolean values
6 echo "*** Testing var_export() with valid boolean values ***\n";
7 // different valid boolean values
17 /* Loop to check for above boolean values with var_export() */
18 echo "\n*** Output for boolean values ***\n";
30 *** Testing var_export() with valid boolean values ***
32 *** Output for boolean values ***
/php-src/Zend/tests/
H A Dbug30889.phpt7 private $values;
10 $this->values = array('a' => 0);
14 print "set $name = $value ($name was ".$this->values[$name].")\n";
15 $this->values[$name] = $value;
19 print "get $name (returns ".$this->values[$name].")\n";
20 return $this->values[$name];
/php-src/ext/standard/tests/math/
H A Dnumber_format_basic.phpt5 $values = array(1234.5678,
22 for ($i = 0; $i < count($values); $i++) {
23 $res = number_format($values[$i]);
28 for ($i = 0; $i < count($values); $i++) {
29 $res = number_format($values[$i], 2);
34 for ($i = 0; $i < count($values); $i++) {
35 $res = number_format($values[$i], 2, '.', ' ');
40 for ($i = 0; $i < count($values); $i++) {
41 $res = number_format($values[$i], 2, ',' , ' ');
46 for ($i = 0; $i < count($values); $i++) {
[all …]
H A Dnumber_format_multichar.phpt5 $values = array(1234.5678,
18 for ($i = 0; $i < count($values); $i++) {
19 $res = number_format($values[$i], 2, '&#183;', ' ');
24 for ($i = 0; $i < count($values); $i++) {
25 $res = number_format($values[$i], 2, '.' , '&thinsp;');
30 for ($i = 0; $i < count($values); $i++) {
31 $res = number_format($values[$i], 2, '&#183;' , '&thinsp;');
/php-src/ext/pdo_dblib/tests/
H A Dbug_38955.phpt19 $db->query("INSERT INTO test38955(val) values(1)");
20 $db->query("INSERT INTO test38955(val) values(2)");
21 $db->query("INSERT INTO test38955(val) values(3)");
22 $db->query("INSERT INTO test38955(val) values(4)");
27 $db->query("INSERT INTO test38955(val) values(5)");
28 $db->query("INSERT INTO test38955(val) values(6)");
29 $db->query("INSERT INTO test38955(val) values(7)");
30 $db->query("INSERT INTO test38955(val) values(8)");
/php-src/ext/ldap/tests/
H A Dldap_modify_batch_programming_error.phpt41 "values" => ["value1"],
56 "values" => ["value1"],
70 "values" => ["value1"],
80 "values" => ["value3"],
93 "values" => ["value1"],
107 "values" => ["value1"],
120 "values" => ["value1"],
133 "values" => ["value1"],
146 "values" => ["value1"],
184 "values" => "value1",
[all …]
/php-src/Zend/tests/list/
H A Dlist_destructuring_to_special_variables.phpt7 public $values = [];
9 $this->values[$name] = $value;
14 public $values = [];
16 $this->values[$name] = $value;
29 var_dump($obj->values);
33 var_dump($arr->values);

Completed in 33 milliseconds

12345678910>>...47