/PHP-5.4/ext/standard/tests/array/ |
H A D | array_key_exists_error.phpt | 2 Test array_key_exists() function : error conditions - Pass incorrect number of args 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 12 * Pass incorrect number of arguments to array_key_exists() to test behaviour 15 echo "*** Testing array_key_exists() : error conditions ***\n"; 17 //Test array_key_exists with one more than the expected number of arguments 22 var_dump( array_key_exists($key, $search, $extra_arg) ); 24 // Testing array_key_exists with one less than the expected number of arguments 27 var_dump( array_key_exists($key) ); 33 *** Testing array_key_exists() : error conditions *** 35 -- Testing array_key_exists() function with more than expected no. of arguments -- [all …]
|
H A D | array_key_exists_variation2.phpt | 2 Test array_key_exists() function : usage variations - Pass different data types to $search arg 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 12 * Pass different data types as $search argument to array_key_exists() to test behaviour 15 echo "*** Testing array_key_exists() : usage variations ***\n"; 89 // loop through each element of $inputs to check the behavior of array_key_exists() 93 var_dump( array_key_exists($key, $input) ); 103 *** Testing array_key_exists() : usage variations *** 152 Warning: array_key_exists() expects parameter 2 to be array, null given in %s on line %d 157 Warning: array_key_exists() expects parameter 2 to be array, null given in %s on line %d 213 Warning: array_key_exists() expects parameter 2 to be array, null given in %s on line %d [all …]
|
H A D | array_key_exists_basic.phpt | 2 Test array_key_exists() function : basic functionality 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 12 * Test basic functionality of array_key_exists() 15 echo "*** Testing array_key_exists() : basic functionality ***\n"; 20 var_dump(array_key_exists($key1, $search)); 21 var_dump(array_key_exists($key2, $search)); 26 *** Testing array_key_exists() : basic functionality ***
|
H A D | array_key_exists_variation7.phpt | 2 Test array_key_exists() function : usage variations - position of internal array pointer 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 12 * Check the position of the internal array pointer after calling array_key_exists() 15 echo "*** Testing array_key_exists() : usage variations ***\n"; 19 echo "\n-- Call array_key_exists() --\n"; 20 var_dump($result = array_key_exists('one', $input)); 29 *** Testing array_key_exists() : usage variations *** 31 -- Call array_key_exists() --
|
H A D | array_key_exists.phpt | 2 Test array_key_exists() function 6 * bool array_key_exists ( mixed $key, array $search ); 33 var_dump( array_key_exists($key, $search_array) ); 73 var_dump( array_key_exists() ); 75 var_dump( array_key_exists(array(), array()) ); 77 var_dump( array_key_exists("", "") ); 79 var_dump( array_key_exists(1, 1) ); 81 var_dump( array_key_exists(1, NULL) ); 83 var_dump( array_key_exists(1, true) ); 85 var_dump( array_key_exists(false, true) ); [all …]
|
H A D | array_key_exists_variation1.phpt | 2 Test array_key_exists() function : usage variations - Pass different data types as $key arg 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 12 * Pass different data types as $key argument to array_key_exists() to test behaviour 15 echo "*** Testing array_key_exists() : usage variations ***\n"; 89 // loop through each element of $inputs to check the behavior of array_key_exists() 93 var_dump( array_key_exists($input, $search) ); 103 *** Testing array_key_exists() : usage variations *** 119 Warning: array_key_exists(): The first argument should be either a string or an integer in %s on li… 124 Warning: array_key_exists(): The first argument should be either a string or an integer in %s on li… 129 Warning: array_key_exists(): The first argument should be either a string or an integer in %s on li… [all …]
|
H A D | array_key_exists_variation5.phpt | 2 Test array_key_exists() function : usage variations - multidimensional arrays 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 12 * Test how array_key_exists() behaves with multi-dimensional arrays 15 echo "*** Testing array_key_exists() : usage variations ***\n"; 23 var_dump(array_key_exists(0, $multi_array)); 26 var_dump(array_key_exists(0, $multi_array['sub1'])); 32 *** Testing array_key_exists() : usage variations ***
|
H A D | array_key_exists_variation4.phpt | 2 Test array_key_exists() function : usage variations - referenced variables 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 12 * Pass referenced variables as arguments to array_key_exists() to test behaviour 15 echo "*** Testing array_key_exists() : usage variations ***\n"; 21 var_dump(array_key_exists('one', $search)); 27 *** Testing array_key_exists() : usage variations ***
|
H A D | array_key_exists_variation3.phpt | 2 Test array_key_exists() function : usage variations - floats and casting to ints 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 16 echo "*** Testing array_key_exists() : usage variations ***\n"; 26 var_dump(array_key_exists($key, $search)); 28 var_dump(array_key_exists((int)$key, $search)); 35 *** Testing array_key_exists() : usage variations *** 40 Warning: array_key_exists(): The first argument should be either a string or an integer in %s on li… 48 Warning: array_key_exists(): The first argument should be either a string or an integer in %s on li… 56 Warning: array_key_exists(): The first argument should be either a string or an integer in %s on li…
|
H A D | array_key_exists_object2.phpt | 2 Test array_key_exists() function : object functionality - different visibilities 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 12 * Pass array_key_exists() an object with private and protected properties 15 echo "*** Testing array_key_exists() : object functionality ***\n"; 34 var_dump(array_key_exists('var1', $class1)); 36 var_dump(array_key_exists('var2', $class1)); 38 var_dump(array_key_exists('var3', $class1)); 45 var_dump(array_key_exists('var3', $class2)); 53 *** Testing array_key_exists() : object functionality ***
|
H A D | array_key_exists_object1.phpt | 2 Test array_key_exists() function : object functionality 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 12 * Test basic functionality of array_key_exists() with objects 15 echo "*** Testing array_key_exists() : object functionality ***\n"; 34 var_dump(array_key_exists('var1', $class1)); 36 var_dump(array_key_exists('var3', $class1)); 43 var_dump(array_key_exists('var3', $class2)); 51 *** Testing array_key_exists() : object functionality ***
|
H A D | bug20865.phpt | 2 Bug #20865 (array_key_exists and NULL key) 8 var_dump(array_key_exists(NULL, $ta));
|
H A D | array_key_exists_variation6.phpt | 2 Test array_key_exists() function : usage variations - equality test for certain data types 5 /* Prototype : bool array_key_exists(mixed $key, array $search) 13 * and test whether array_key_exists(() thinks they are equal and therefore 17 echo "*** Testing array_key_exists() : usage variations ***\n"; 37 var_dump(array_key_exists($key, $search)); 47 *** Testing array_key_exists() : usage variations ***
|
/PHP-5.4/ext/spl/tests/ |
H A D | bug53515.phpt | 14 ' array_key_exists: ' . (array_key_exists($key, $a) ? 'true' : 'false') . 20 a: 1 array_key_exists: true property_exists: true 21 b: 1 array_key_exists: true property_exists: true 22 c: 0 array_key_exists: true property_exists: true 23 d: null array_key_exists: true property_exists: true 24 e: array_key_exists: true property_exists: true 25 f: Array array_key_exists: true property_exists: true 26 z: array_key_exists: true property_exists: false 27 : array_key_exists: true property_exists: false
|
/PHP-5.4/tests/lang/ |
H A D | bug24652.phpt | 8 var_dump(array_key_exists(7, $f)); 9 var_dump(array_key_exists('7', $f)); 15 var_dump(array_key_exists(7, $f)); 16 var_dump(array_key_exists('7', $f));
|
/PHP-5.4/ |
H A D | server-tests.php | 1059 if (array_key_exists('INI', $section_text)) { 1112 if (array_key_exists('ENV', $section_text)) { 1322 if (!array_key_exists('SERVER_SOFTWARE', $env)) 1324 if (!array_key_exists('SERVER_SOFTWARE', $env)) 1326 if (!array_key_exists('REDIRECT_STATUS', $env)) 1328 if (!array_key_exists('SERVER_NAME', $env)) 1331 !array_key_exists('SCRIPT_FILENAME', $env)) { 1337 if (!array_key_exists('PATH_INFO', $env)) 1339 if (!array_key_exists('SCRIPT_NAME', $env)) 1349 if (!array_key_exists('CONTENT_TYPE', $env)) [all …]
|
/PHP-5.4/ext/soap/interop/ |
H A D | client_round2.php | 90 if ($_POST['test'] && array_key_exists('endpoint', $_POST) && array_key_exists('method', $_POST)) {
|
/PHP-5.4/ext/curl/tests/ |
H A D | bug46739.phpt | 16 echo (array_key_exists('content_type', $info)) ? "set" : "not set";
|
/PHP-5.4/tests/classes/ |
H A D | array_access_006.phpt | 14 return array_key_exists($this->realArray, $index);
|
H A D | array_access_007.phpt | 14 return array_key_exists($this->realArray, $index);
|
/PHP-5.4/ext/spl/internal/ |
H A D | spldoublylinkedlist.inc | 158 return array_key_exists($this->_it_pos, $this->_llist); 204 return array_key_exists($offset, $this->_llist); 222 if (!is_numeric($offset) || !array_key_exists($realOffset, $this->_llist)) { 248 if (!is_numeric($offset) || !array_key_exists($realOffset, $this->_llist)) { 269 if (!is_numeric($offset) || !array_key_exists($realOffset, $this->_llist)) {
|
/PHP-5.4/scripts/dev/generate-phpt/src/setup/ |
H A D | gtOptionalSections.php | 21 if(array_key_exists($option, $this->optSections )) {
|
/PHP-5.4/ext/oci8/tests/ |
H A D | skipif.inc | 15 if (!array_key_exists($dbtype, $target_dbs) || $target_dbs[$dbtype] !== true)
|
/PHP-5.4/ext/standard/tests/general_functions/ |
H A D | get_defined_constants_basic.phpt | 24 if ($n2 == $n1 + 1 && array_key_exists("USER_CONSTANT", $arr2)) {
|
/PHP-5.4/ext/hash/tests/ |
H A D | mhash_002.phpt | 38 if (array_key_exists($name, $known_hash_al)) {
|