Home
last modified time | relevance | path

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

1234

/php-src/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++) {
H A Darray_chunk_variation28.phpt7 for ($i = 1; $i < (sizeof($array) + 1); $i++) {
H A Darray_chunk_variation31.phpt7 for ($i = 1; $i < (sizeof($array) + 1); $i++) {
/php-src/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()
14 var_dump(FFI::sizeof($p1), FFI::sizeof($p2), FFI::sizeof($p3));
16 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()
15 var_dump(FFI::memcmp($b, $a, FFI::sizeof($a)));
16 FFI::memcpy($b, $a, FFI::sizeof($a));
18 var_dump(FFI::memcmp($b, $a, FFI::sizeof($a)));
19 FFI::memset($a, -1, FFI::sizeof($a));
H A D014.phpt11 var_dump(FFI::sizeof($ffi->new("uint32_t[2]")));
12 var_dump(FFI::sizeof($ffi->new("uint32_t([2])")));
13 var_dump(FFI::sizeof($ffi->new("uint32_t([2])[2]")));
H A D023.phpt12 var_dump(FFI::sizeof($ffi->new("struct {}")));
16 var_dump(FFI::sizeof($ffi->new("struct {int a}")));
17 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::cdef()->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::cdef()->new("uint8_t")));
H A D027.phpt36 var_dump(FFI::sizeof($ffi->new("int[0]")));
41 var_dump(FFI::sizeof($ffi->new("int[]")));
46 var_dump(FFI::sizeof($ffi->cast("int[]", $ffi->new("int[2]"))));
H A Dbug79532.phpt2 Bug #79532 (sizeof off_t can be wrong)
/php-src/ext/mysqli/tests/
H A Dbug47050.phpt21 echo "links: ", sizeof($links), "\n";
22 echo "errors: ", sizeof($errors), "\n";
23 echo "reject: ", sizeof($reject), "\n";
24 echo "all_links: ", sizeof($all_links), "\n";
/php-src/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-src/ext/com_dotnet/tests/
H A Dbug34272.phpt12 print sizeof($dict['foo'])."\n";
14 print sizeof($dict['bar'])." \n";
/php-src/main/
H A Dinternal_functions.c.in32 #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))
/php-src/ext/fileinfo/
H A Dlibmagic.patch88 sizeof(*ms)))) == NULL)
320 memset(&me, 0, sizeof(me));
375 memset(mset, 0, sizeof(mset));
382 file_oomem(ms, sizeof(*map));
439 + filearr[files++] = estrndup(mfn, (mflen > sizeof(mfn) - 1)? sizeof(mfn) - 1: mflen);
547 - file_oomem(ms, sizeof(*map));
584 file_oomem(ms, sizeof(*map));
732 + sizeof(struct magic));
797 - if (write(fd, &hdr, sizeof(hdr)) != CAST(ssize_t, sizeof(hdr))) {
798 + if (php_stream_write(stream,(const char *)&hdr, sizeof(hdr)) != (ssize_t)sizeof(hdr)) {
[all …]

Completed in 52 milliseconds

1234