/PHP-8.2/ext/standard/tests/array/ |
H A D | sizeof_object1.phpt | 5 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 D | sizeof_basic2.phpt | 5 /* 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 D | sizeof_object2.phpt | 2 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 D | sizeof_variation3.phpt | 2 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 D | sizeof_variation2.phpt | 2 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 D | array_chunk_variation26.phpt | 7 for ($i = 1; $i < (sizeof($array) + 1); $i++) {
|
H A D | array_chunk_variation27.phpt | 7 for ($i = 1; $i < (sizeof($array) + 1); $i++) {
|
/PHP-8.2/ext/ffi/tests/ |
H A D | 044.phpt | 21 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 D | 034.phpt | 2 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 D | 009.phpt | 2 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 D | 014.phpt | 9 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 D | 023.phpt | 10 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 D | 010.phpt | 10 FFI::memset($a, ord("a"), FFI::sizeof($a)); 11 var_dump(FFI::string($a, FFI::sizeof($a)));
|
H A D | 029.phpt | 13 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 D | 031.phpt | 11 $size = FFI::sizeof(FFI::new($type)); 13 echo "FAIL: sizeof($type) != $expected_size ($size)\n";
|
H A D | bug77768.phpt | 35 var_dump(FFI::sizeof($x->new("uint8_t"))); 36 var_dump(FFI::sizeof(FFI::new("uint8_t")));
|
H A D | 027.phpt | 34 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 D | 030.phpt | 9 var_dump(FFI::sizeof(FFI::new("bool[2]")));
|
H A D | 040.phpt | 24 var_dump(FFI::sizeof($x)); 40 var_dump(FFI::sizeof($y[0]));
|
/PHP-8.2/ext/mysqli/tests/ |
H A D | bug47050.phpt | 24 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 D | str_pad_variation2.phpt | 15 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 D | bug34272.phpt | 12 print sizeof($dict['foo'])."\n"; 14 print sizeof($dict['bar'])." \n";
|
/PHP-8.2/main/ |
H A D | internal_functions.c.in | 32 #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))
|
/PHP-8.2/ext/fileinfo/ |
H A D | libmagic.patch | 269 - 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 D | config.m4 | 42 if (strncasecmp(ptr, "OpenSSL/1.1", sizeof("OpenSSL/1.1")-1) == 0) { 46 if (strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1) == 0) {
|