Home
last modified time | relevance | path

Searched refs:sizeof (Results 1 – 25 of 89) sorted by relevance

1234

/PHP-8.2/ext/standard/tests/array/
H A Dsizeof_object1.phpt5 echo "*** Testing sizeof() : object functionality ***\n";
22 echo "-- Testing sizeof() in default mode --\n";
23 var_dump( sizeof($obj) );
24 echo "-- Testing sizeof() in COUNT_NORMAL mode --\n";
25 var_dump( sizeof($obj, COUNT_NORMAL) );
26 echo "-- Testing sizeof() in COUNT_RECURSIVE mode --\n";
27 var_dump( sizeof($obj, COUNT_RECURSIVE) );
32 *** Testing sizeof() : object functionality ***
34 -- Testing sizeof() in default mode --
36 -- Testing sizeof() in COUNT_NORMAL mode --
[all …]
H A Dsizeof_basic2.phpt5 /* Testing the sizeof() for non-scalar type(array) value
20 var_dump( sizeof($int_array) );
23 var_dump( sizeof($int_array, COUNT_NORMAL) );
26 var_dump( sizeof($int_array, COUNT_RECURSIVE) );
31 var_dump( sizeof($string_array) );
34 var_dump( sizeof($string_array, COUNT_NORMAL) );
42 var_dump( sizeof($indexed_array) );
45 var_dump( sizeof($indexed_array, COUNT_NORMAL) );
53 var_dump( sizeof($mixed_array) );
56 var_dump( sizeof($mixed_array, COUNT_NORMAL) );
[all …]
H A Dsizeof_object2.phpt2 Test sizeof() function : object functionality - objects without Countable interface
5 echo "*** Testing sizeof() : object functionality ***\n";
7 echo "--- Testing sizeof() with objects which doesn't implement Countable interface ---\n";
78 var_dump( sizeof($var) );
85 var_dump( sizeof($var, COUNT_NORMAL) );
92 var_dump( sizeof($var, COUNT_RECURSIVE) );
103 *** Testing sizeof() : object functionality ***
104 --- Testing sizeof() with objects which doesn't implement Countable interface ---
106 Default Mode: sizeof(): Argument #1 ($value) must be of type Countable|array, test given
110 Default Mode: sizeof(): Argument #1 ($value) must be of type Countable|array, test1 given
[all …]
H A Dsizeof_variation3.phpt2 Test sizeof() function : usage variations - checking for infinite recursion in COUNT_RECURSIVE mode
5 echo "*** Testing sizeof() : usage variations ***\n";
7 echo "-- Testing sizeof() for infinite recursion with arrays as argument in COUNT_RECURSIVE mode --…
15 var_dump( sizeof($array1, COUNT_RECURSIVE) );
17 var_dump( sizeof($array4, COUNT_RECURSIVE) );
22 *** Testing sizeof() : usage variations ***
23 -- Testing sizeof() for infinite recursion with arrays as argument in COUNT_RECURSIVE mode --
H A Dsizeof_variation2.phpt2 Test sizeof() function : usage variations - different array values for 'var' argument
5 echo "*** Testing sizeof() : usage variations ***\n";
10 echo "--- Testing sizeof() with different array values for 'var' argument ---\n";
31 // check the working of sizeof()
39 var_dump( sizeof($var) );
43 var_dump( sizeof($var, COUNT_NORMAL) );
47 var_dump( sizeof($var, COUNT_RECURSIVE) );
56 *** Testing sizeof() : usage variations ***
57 --- Testing sizeof() with different array values for 'var' argument ---
H A Darray_chunk_variation26.phpt7 for ($i = 1; $i < (sizeof($array) + 1); $i++) {
H A Darray_chunk_variation27.phpt7 for ($i = 1; $i < (sizeof($array) + 1); $i++) {
/PHP-8.2/ext/ffi/tests/
H A D044.phpt21 var_dump(FFI::sizeof($ffi->new("a")));
22 var_dump(FFI::sizeof($ffi->new("ua")));
23 var_dump(FFI::sizeof($ffi->new("b")));
24 var_dump(FFI::sizeof($ffi->new("ub")));
25 var_dump(FFI::sizeof($ffi->new("c")));
26 var_dump(FFI::sizeof($ffi->new("uc")));
27 var_dump(FFI::sizeof($ffi->new("d")));
28 var_dump(FFI::sizeof($ffi->new("ud")));
29 var_dump(FFI::sizeof($ffi->new("e")));
30 var_dump(FFI::sizeof($ffi->new("f")));
H A D034.phpt2 FFI 034: FFI::typeof(), FFI::sizeof(), FFI::alignof()
12 var_dump(FFI::sizeof($p1), FFI::sizeof($p2), FFI::sizeof($p3));
14 var_dump(FFI::sizeof(FFI::typeof($p1)), FFI::sizeof(FFI::typeof($p2)), FFI::sizeof(FFI::typeof($p3)…
H A D009.phpt2 FFI 009: memcpy(), memcmp(), memset() and sizeof()
13 var_dump(FFI::memcmp($b, $a, FFI::sizeof($a)));
14 FFI::memcpy($b, $a, FFI::sizeof($a));
16 var_dump(FFI::memcmp($b, $a, FFI::sizeof($a)));
17 FFI::memset($a, -1, FFI::sizeof($a));
H A D014.phpt9 var_dump(FFI::sizeof(FFI::new("uint32_t[2]")));
10 var_dump(FFI::sizeof(FFI::new("uint32_t([2])")));
11 var_dump(FFI::sizeof(FFI::new("uint32_t([2])[2]")));
H A D023.phpt10 var_dump(FFI::sizeof(FFI::new("struct {}")));
14 var_dump(FFI::sizeof(FFI::new("struct {int a}")));
15 var_dump(FFI::sizeof(FFI::new("struct {int a; int b}")));
H A D010.phpt10 FFI::memset($a, ord("a"), FFI::sizeof($a));
11 var_dump(FFI::string($a, FFI::sizeof($a)));
H A D029.phpt13 var_dump(FFI::sizeof($ffi->new("struct {char a; t1 b;}")));
14 var_dump(FFI::sizeof($ffi->new("struct {char a; t2 b;}")));
H A D031.phpt11 $size = FFI::sizeof(FFI::new($type));
13 echo "FAIL: sizeof($type) != $expected_size ($size)\n";
H A Dbug77768.phpt35 var_dump(FFI::sizeof($x->new("uint8_t")));
36 var_dump(FFI::sizeof(FFI::new("uint8_t")));
H A D027.phpt34 var_dump(FFI::sizeof(FFI::new("int[0]")));
39 var_dump(FFI::sizeof(FFI::new("int[]")));
44 var_dump(FFI::sizeof(FFI::cast("int[]", FFI::new("int[2]"))));
H A D030.phpt9 var_dump(FFI::sizeof(FFI::new("bool[2]")));
H A D040.phpt24 var_dump(FFI::sizeof($x));
40 var_dump(FFI::sizeof($y[0]));
/PHP-8.2/ext/mysqli/tests/
H A Dbug47050.phpt24 echo "links: ", sizeof($links), "\n";
25 echo "errors: ", sizeof($errors), "\n";
26 echo "reject: ", sizeof($reject), "\n";
27 echo "all_links: ", sizeof($all_links), "\n";
/PHP-8.2/ext/standard/tests/strings/
H A Dstr_pad_variation2.phpt15 0, // pad_length < sizeof(input_string)
16 9, // pad_length <= sizeof(input_string)
17 10, // pad_length > sizeof(input_string)
18 16, // pad_length > sizeof(input_string)
/PHP-8.2/ext/com_dotnet/tests/
H A Dbug34272.phpt12 print sizeof($dict['foo'])."\n";
14 print sizeof($dict['bar'])." \n";
/PHP-8.2/main/
H A Dinternal_functions.c.in32 #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))
/PHP-8.2/ext/fileinfo/
H A Dlibmagic.patch269 - file_oomem(ms, sizeof(*ml));
368 memset(&me, 0, sizeof(me));
432 memset(mset, 0, sizeof(mset));
439 file_oomem(ms, sizeof(*map));
496 + filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen);
624 - file_oomem(ms, sizeof(*map));
661 file_oomem(ms, sizeof(*map));
809 + sizeof(struct magic));
880 - if (write(fd, &hdr, sizeof(hdr)) != CAST(ssize_t, sizeof(hdr))) {
881 + if (php_stream_write(stream,(const char *)&hdr, sizeof(hdr)) != (ssize_t)sizeof(hdr)) {
[all …]
/PHP-8.2/ext/curl/
H A Dconfig.m442 if (strncasecmp(ptr, "OpenSSL/1.1", sizeof("OpenSSL/1.1")-1) == 0) {
46 if (strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1) == 0) {

Completed in 34 milliseconds

1234