Home
last modified time | relevance | path

Searched refs:cast (Results 1 – 25 of 98) sorted by relevance

1234

/PHP-8.4/ext/ffi/tests/
H A Dgh7867.phpt2 GH-7867 (FFI::cast() from pointer to array is broken)
14 echo 'cast from start' . PHP_EOL;
16 var_dump($value + 0, $slice, FFI::cdef()->cast('char[4]', $value));
19 echo 'cast with offset' . PHP_EOL;
21 var_dump($value + 4, $slice, FFI::cdef()->cast('char[4]', $value + 4));
25 cast from start
51 cast with offset
H A Dbug78762.phpt2 Bug #78762 (Failing FFI::cast() may leak memory)
8 FFI::cdef()->cast('char[10]', FFI::cdef()->new('char[1]'));
14 attempt to cast to larger type
H A Ddeprecations.phpt2 Test calling the deprecated signature of FFI::new(), FFI::type(), FFI::cast()
36 $p = FFI::cast("uint8_t[2]", $p1);
41 FFI::cast("uint8_t[2]", $p1);
60 Deprecated: Calling FFI::cast() statically is deprecated in %s on line %d
61 Calling FFI::cast() statically is deprecated
H A Dgh14626.phpt22 $addr = $ffi->cast("uintptr_t", $ffi->cast("char*", $ptr))->cdata;
24 $ptr = FFI::cdef()->cast("char*", $addr);
H A D011.phpt2 FFI 011: cast()
14 var_dump($ffi->cast("uint16_t[2]", $a));
H A Dbug78761.phpt17 FFI::cdef()->cast('char[10]', FFI::cdef()->new('char[1]'));
23 attempt to cast to larger type
/PHP-8.4/scripts/gdb/
H A Dphp_gdb.py60 str = self.val['val'].cast(ptr_type).dereference().cast(ary_type)
133 return self.val.cast(gdb.lookup_type('enum _zend_ast_kind'))
145 return '((%s*)0x%x)' % (str(self.cast().type), self.val.address)
148 val = self.cast()
155 children = children.cast(ptr_type)
182 def cast(self): member in ZendAstPrettyPrinter
186 return self.val.cast(gdb.lookup_type('zend_ast_zval'))
188 return self.val.cast(gdb.lookup_type('zend_ast_znode'))
190 return self.val.cast(gdb.lookup_type('zend_ast_decl'))
192 return self.val.cast(gdb.lookup_type('zend_ast_list'))
[all …]
/PHP-8.4/Zend/tests/offsets/
H A Dstring_container_offset_behaviour.phpt99 Warning: String offset cast occurred in %s on line %d
105 Warning: String offset cast occurred in %s on line %d
108 Warning: String offset cast occurred in %s on line %d
112 Warning: String offset cast occurred in %s on line %d
122 Warning: String offset cast occurred in %s on line %d
128 Warning: String offset cast occurred in %s on line %d
130 Warning: String offset cast occurred in %s on line %d
136 Warning: String offset cast occurred in %s on line %d
140 Warning: String offset cast occurred in %s on line %d
150 Warning: String offset cast occurred in %s on line %d
[all …]
/PHP-8.4/Zend/tests/
H A Dbug39018.phpt65 Warning: String offset cast occurred in %s on line %d
73 Warning: String offset cast occurred in %s on line %d
77 Warning: String offset cast occurred in %s on line %d
93 Warning: String offset cast occurred in %s on line %d
97 Warning: String offset cast occurred in %s on line %d
101 Warning: String offset cast occurred in %s on line %d
103 Warning: String offset cast occurred in %s on line %d
H A Dreal_cast.phpt2 The (real) cast is no longer supported
10 Parse error: The (real) cast has been removed, use (float) instead in %s on line %d
H A Dunset_cast_removed.phpt2 The (unset) cast is removed
12 Fatal error: The (unset) cast is no longer supported in %s on line %d
H A Doffset_string.phpt53 Warning: String offset cast occurred in %s on line %d
56 Warning: String offset cast occurred in %s on line %d
65 Warning: String offset cast occurred in %s on line %d
68 Warning: String offset cast occurred in %s on line %d
/PHP-8.4/ext/opcache/tests/jit/
H A Dfetch_dim_r_004.phpt41 Warning: String offset cast occurred in %s on line %d
46 Warning: String offset cast occurred in %s on line %d
49 Warning: String offset cast occurred in %s on line %d
52 Warning: String offset cast occurred in %s on line %d
H A Dfetch_dim_r_003.phpt45 Warning: String offset cast occurred in %s on line %d
50 Warning: String offset cast occurred in %s on line %d
53 Warning: String offset cast occurred in %s on line %d
56 Warning: String offset cast occurred in %s on line %d
H A Dgh8591-003.phpt26 $this->cast();
30 private function cast()
H A Dgh8591-002.phpt33 $this->cast();
37 private function cast()
H A Dgh8591-001.phpt27 $this->cast();
31 private function cast()
H A Dgh8591-004.phpt29 $this->cast();
33 private function cast()
/PHP-8.4/ext/pdo_pgsql/tests/
H A Dfloat.phpt21 select cast(0.4 as float4) as value4,
22 cast(0.8 as float8) as value8,
23 cast('NaN' as float4) as valuenan,
24 cast('Infinity' as float4) as valueinfinity,
25 cast('-Infinity' as float4) as valueninfinity
/PHP-8.4/ext/spl/tests/
H A Dbug71028.phpt5 function cast(&$a) {
13 cast($b);
/PHP-8.4/ext/pdo_dblib/tests/
H A Dbug_54648.phpt15 $rs = $db->query("select cast('1950-01-18 23:00:00' as smalldatetime) as sdt, cast('2030-01-01 23:5…
/PHP-8.4/main/streams/
H A Dcast.c223 stream->ops->cast && in _php_stream_cast()
225 stream->ops->cast(stream, castas, ret) == SUCCESS in _php_stream_cast()
266 …if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL… in _php_stream_cast()
267 if (FAILURE == stream->ops->cast(stream, castas, ret)) { in _php_stream_cast()
305 } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret) == SUCCESS) { in _php_stream_cast()
/PHP-8.4/Zend/tests/float_to_int/
H A Dwarning_float_does_not_fit_zend_long_strings.phpt83 Warning: String offset cast occurred in %s on line %d
87 Warning: String offset cast occurred in %s on line %d
96 Warning: String offset cast occurred in %s on line %d
100 Warning: String offset cast occurred in %s on line %d
H A Dwarning_float_does_not_fit_zend_long_strings_32bit.phpt83 Warning: String offset cast occurred in %s on line %d
87 Warning: String offset cast occurred in %s on line %d
96 Warning: String offset cast occurred in %s on line %d
100 Warning: String offset cast occurred in %s on line %d
/PHP-8.4/ext/standard/tests/array/range/
H A Drange_inputs_string_invalid.phpt12 var_dump( range("Z", "") ); // Both strings are cast to int, i.e. 0
13 var_dump( range("", "Z") ); // Both strings are cast to int, i.e. 0
16 var_dump( range("3.5", "A") ); // The char is cast to a float, i.e. 0
17 var_dump( range("?", "3.5") ); // The char is cast to a float, i.e. 0

Completed in 41 milliseconds

1234