/PHP-8.1/ext/standard/tests/general_functions/ |
H A D | is_bool.phpt | 7 $valid_bools = array( 99 array(), 100 array(0), 101 array(1), 102 array(NULL), 103 array(null), 105 array(true), 106 array(TRUE), 107 array(false), 108 array(FALSE), [all …]
|
H A D | bug43293_3.phpt | 9 $args = array(true, false, "f"); 13 array(1) { 15 array(2) { 22 array(3) {
|
/PHP-8.1/tests/classes/ |
H A D | array_access_011.phpt | 14 function __construct(ArrayAccess $object, array &$array, $element) 18 $this->oarray = &$array; 49 $this->person = array(array('name'=>'Foo')); 117 &array(1) { 119 array(1) { 126 &array(1) { 128 array(1) { 162 &array(1) { 164 array(0) { 169 &array(1) { [all …]
|
/PHP-8.1/ext/spl/tests/ |
H A D | SplFixedArray_fromarray_non_indexes.phpt | 2 Create a SplFixedArray from an array using the fromArray() function don't try to preserve the index… 7 $array = SplFixedArray::fromArray(array(1 => 1, 11 var_dump($array);
|
H A D | bug41692.phpt | 7 private $foo = array( 1, 2, 3 ); 26 array(3) { 35 array(3) { 46 array(3) { 55 array(3) {
|
H A D | spl_limit_iterator_check_limits.phpt | 8 $array = array(array(7,8,9),1,2,3,array(4,5,6)); 9 $arrayIterator = new ArrayIterator($array);
|
H A D | SplFixedArray__construct_param_array.phpt | 2 SplFixedArray::__construct() with array passed as integer. 9 $array = new SplFixedArray( array("string", 1) ); 16 Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, array given
|
H A D | SplFixedArray_fromarray_indexes.phpt | 2 Create a SplFixedArray from an array using the fromArray() function use the default behaviour of pr… 7 $array = SplFixedArray::fromArray(array(1 => 1, 10 var_dump($array);
|
/PHP-8.1/ext/standard/tests/array/ |
H A D | array_diff_1.phpt | 2 Test array_diff when non-array is passed 6 $a = array(); 8 $c = array(5); 18 array_diff(): Argument #2 must be of type array, int given
|
H A D | array_intersect_uassoc_variation10.phpt | 8 $array1 = array("a" => "green", "c" => "blue", "red"); 9 $array2 = array("a" => "green", "yellow", "red"); 24 var_dump( array_intersect_uassoc($array1, $array2, array('MyClass','static_compare_func')) ); 29 var_dump( array_intersect_uassoc($array1, $array2, array($obj,'class_compare_func')) ); 35 array(1) { 39 array(1) { 45 array(1) {
|
/PHP-8.1/Zend/tests/return_types/ |
H A D | 042.phpt | 6 public function __debugInfo(): array|null {} 10 public function __debugInfo(): null|array {} 14 public function __debugInfo(): ?array {} 18 public function __debugInfo(): array {}
|
/PHP-8.1/ext/ldap/tests/ |
H A D | ldap_add_error.phpt | 16 var_dump(ldap_add($link, "$base", array())); 20 ldap_add($link, "weirdAttribute=val", array( 30 ldap_add($link, "dc=my-domain,$base", array( 31 "objectClass" => array( 41 // Wrong array indexes 43 ldap_add($link, "dc=my-domain2,dc=com", array( 44 "objectClass" => array( 62 ldap_add($link, "$base", array( 63 "objectClass" => array( 76 ldap_add($link, "$base", array(array( "Oops"
|
/PHP-8.1/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_attr_multi_statements.phpt | 40 $db = new PDO($dsn, $user, $pass, array(PDO::MYSQL_ATTR_MULTI_STATEMENTS => false)); 59 array(2) { 61 array(1) { 66 array(1) { 71 array(1) { 73 array(1) { 82 array(2) { 84 array(1) { 89 array(1) { 94 array(1) { [all …]
|
/PHP-8.1/ext/mysqli/tests/ |
H A D | mysqli_options_int_and_float_native.phpt | 18 $types = array( 19 'BIT' => array('BIT(8)', 0), 20 'TINYINT' => array('TINYINT', 120), 21 'BOOL' => array('BOOL', 0), 22 'BOOLEAN' => array('BOOLEAN', 1), 23 'SMALLINT' => array('SMALLINT', 32000), 24 'MEDIUMINT' => array('MEDIUMINT', 999), 25 'INT' => array('INT', 999), 26 'BIGINT' => array('BIGINT', 999), 27 'FLOAT' => array('FLOAT', 1.3), [all …]
|
/PHP-8.1/ext/filter/tests/ |
H A D | 045.phpt | 7 $a = array("flags"=>(string)FILTER_FLAG_ALLOW_HEX, "options" => array("min_range"=>"0", "max_range"… 15 $a = array("test"=>array("filter"=>(string)FILTER_VALIDATE_INT, "flags"=>(string)FILTER_FLAG_ALLOW_… 16 $ret = filter_var_array(array("test"=>"0xff"), $a); 19 $a = array("test"=>(string)FILTER_VALIDATE_INT); 20 $ret = filter_var_array(array("test"=>"255"), $a);
|
/PHP-8.1/ext/soap/tests/schema/ |
H A D | schema027.phpt | 2 SOAP XML Schema 27: SOAP 1.1 Multidimensional array 18 test_schema($schema,'type="tns:testType"',array(array(123),array(123.5))); 24 array(2) { 26 array(1) { 31 array(1) {
|
/PHP-8.1/ext/openssl/tests/ |
H A D | openssl_csr_get_subject_basic.phpt | 16 $dh_details = array('p' => $phex, 'g' => '2'); 17 $dh = openssl_pkey_new(array( 18 'dh'=> array('p' => hex2bin($phex), 'g' => '2')) 21 $dn = array( 29 $args = array( 45 array(6) { 59 array(6) {
|
H A D | openssl_csr_sign_basic.phpt | 16 $config_arg = array('config' => $config); 18 $dn = array( 26 $args = array( 46 openssl_csr_sign(array(), null, $privkey, 365); 52 var_dump(openssl_csr_sign($csr, array(), $privkey, 365)); 58 var_dump(openssl_csr_sign($csr, null, array(), 365)); 82 …csr_sign(): Argument #1 ($csr) must be of type OpenSSLCertificateSigningRequest|string, array given 83 …r_sign(): Argument #2 ($ca_certificate) must be of type OpenSSLCertificate|string|null, array given 84 Key array must be of the form array(0 => key, 1 => phrase)
|
/PHP-8.1/ext/libxml/tests/ |
H A D | bug54440.phpt | 19 return array(); 27 $ctx1 = stream_context_create(array('test'=>array('test'=>'test 1'))); 28 $ctx2 = stream_context_create(array('test'=>array('test'=>'test 2')));
|
/PHP-8.1/ext/reflection/tests/ |
H A D | ReflectionFunction_getClosureUsedVariables.phpt | 43 array(0) { 45 array(0) { 47 array(2) { 53 array(1) { 57 array(1) {
|
/PHP-8.1/Zend/tests/ |
H A D | magic_methods_inheritance_rules_non_trivial_01.phpt | 6 public function __get(string|array $name): mixed {} // valid 10 public function __get(string|array|object $name): int {} // also valid 14 public function __get(string|array $name): int {} // this is invalid 18 Fatal error: Declaration of C::__get(array|string $name): int must be compatible with B::__get(obje…
|
H A D | gc_009.phpt | 2 GC 009: Unreferenced array-object cycle 7 $a = array(); 9 $a[0]->a = array(); 20 array(1) {
|
/PHP-8.1/ext/standard/tests/serialize/ |
H A D | 002.phpt | 21 array(1) { 25 array(2) { 27 array(0) { 30 array(0) { 33 array(3) {
|
/PHP-8.1/ext/standard/tests/file/ |
H A D | file_variation8-win32.phpt | 24 $allDirs = array( 68 array(1) { 74 array(1) { 80 array(1) { 86 array(1) { 102 array(1) { 108 array(1) { 114 array(1) { 120 array(1) { 131 array(1) {
|
/PHP-8.1/Zend/tests/type_declarations/ |
H A D | typed_properties_083.phpt | 2 Test array promotion does not violate type restrictions 10 public static ?array $a; 59 array(1) { 63 string(71) "Cannot auto-initialize an array inside property Foo::$p of type ?string" 65 string(71) "Cannot auto-initialize an array inside property Foo::$p of type ?string" 67 array(1) { 71 string(71) "Cannot auto-initialize an array inside property Foo::$s of type ?string" 73 array(1) { 77 string(91) "Cannot auto-initialize an array inside a reference held by property Foo::$p of type ?st… 79 string(91) "Cannot auto-initialize an array inside a reference held by property Foo::$p of type ?st…
|