Home
last modified time | relevance | path

Searched refs:settype (Results 1 – 25 of 30) sorted by relevance

12

/PHP-7.1/ext/standard/tests/general_functions/
H A Dgettype_settype_variation5.phpt2 Test gettype() & settype() functions : usage variations
19 settype() to resource type.
171 var_dump( settype($var, $type) );
191 2: settype(): Cannot convert to resource type
197 2: settype(): Cannot convert to resource type
203 2: settype(): Cannot convert to resource type
209 2: settype(): Cannot convert to resource type
215 2: settype(): Cannot convert to resource type
221 2: settype(): Cannot convert to resource type
227 2: settype(): Cannot convert to resource type
[all …]
H A Dgettype_settype_error.phpt2 Test gettype() & settype() functions : error conditions
8 Prototype: bool settype ( mixed &$var, string $type );
12 /* Test different error conditions of settype() and gettype() functions */
14 echo "**** Testing gettype() and settype() functions ****\n";
22 echo "\n*** Testing settype(): error conditions ***\n";
24 var_dump( settype() );
28 var_dump( settype( $var, $var, "int" ) );
31 var_dump( settype( $var, "unknown" ) );
36 **** Testing gettype() and settype() functions ****
46 *** Testing settype(): error conditions ***
[all …]
H A Dtype.phpt2 gettype(), settype() and friends
50 var_dump(settype($var, $type));
159 string(42) "settype(): Cannot convert to resource type"
169 string(42) "settype(): Cannot convert to resource type"
172 string(42) "settype(): Cannot convert to resource type"
182 string(42) "settype(): Cannot convert to resource type"
185 string(42) "settype(): Cannot convert to resource type"
188 string(42) "settype(): Cannot convert to resource type"
191 string(42) "settype(): Cannot convert to resource type"
194 string(42) "settype(): Cannot convert to resource type"
[all …]
H A Dgettype_settype_basic.phpt2 Test gettype() & settype() functions : basic functionalities
25 // settype() would fail with catachable fatal error
97 var_dump( settype($var, $type) );
128 *** Testing settype(): basic operations ***
542 2: settype(): Cannot convert to resource type
554 2: settype(): Cannot convert to resource type
559 2: settype(): Cannot convert to resource type
571 2: settype(): Cannot convert to resource type
576 2: settype(): Cannot convert to resource type
581 2: settype(): Cannot convert to resource type
[all …]
H A Dgettype_settype_variation1.phpt2 Test gettype() & settype() functions : usage variatoins
14 Prototype: bool settype ( mixed &$var, string $type );
18 /* Test usage variation of gettype() and settype() functions:
19 settype() to null type.
35 // settype() would fail with catachable fatal error
161 echo "\n*** Testing gettype() & settype() functions : usage variations ***\n";
171 var_dump( settype($var, $type) );
186 *** Testing gettype() & settype() functions : usage variations ***
H A Dgettype_settype_variation6.phpt2 Test gettype() & settype() functions : usage variations
14 Prototype: bool settype ( mixed &$var, string $type );
18 /* Test usage variation of gettype() and settype() functions:
19 settype() to array type.
35 // settype() would fail with catachable fatal error
161 echo "\n*** Testing gettype() & settype() functions : usage variations ***\n";
172 var_dump( settype($var, $type) );
188 *** Testing gettype() & settype() functions : usage variations ***
H A Dgettype_settype_variation8.phpt2 Test gettype() & settype() functions : usage variations
14 Prototype: bool settype ( mixed &$var, string $type );
18 /* Test usage variation of gettype() and settype() functions:
19 settype() to string type.
35 // settype() would fail with catachable fatal error
161 echo "\n*** Testing gettype() & settype() functions : usage variations ***\n";
171 var_dump( settype($var, $type) );
186 *** Testing gettype() & settype() functions : usage variations ***
H A Dgettype_settype_variation7.phpt2 Test gettype() & settype() functions : usage variations
14 Prototype: bool settype ( mixed &$var, string $type );
18 /* Test usage variation of gettype() and settype() functions:
19 settype() to object type.
35 // settype() would fail with catachable fatal error
161 echo "\n*** Testing gettype() & settype() functions : usage variations ***\n";
171 var_dump( settype($var, $type) );
186 *** Testing gettype() & settype() functions : usage variations ***
H A Dgettype_settype_variation2.phpt2 Test gettype() & settype() functions : usage variations
17 Prototype: bool settype ( mixed &$var, string $type );
21 /* Test usage variation of gettype() and settype() functions:
22 settype() to int/integer type.
38 // settype() would fail with catachable fatal error
167 echo "\n*** Testing settype() & gettype() : usage variations ***\n";
178 var_dump( settype($var, $type) );
194 *** Testing settype() & gettype() : usage variations ***
H A Dgettype_settype_variation3.phpt2 Test gettype() & settype() functions : usage variations
14 Prototype: bool settype ( mixed &$var, string $type );
18 /* Test usage variation of gettype() and settype() functions:
19 settype() to float/double type.
35 // settype() would fail with catachable fatal error
164 echo "\n*** Testing settype() & gettype() : usage variations ***\n";
175 var_dump( settype($var, $type) );
191 *** Testing settype() & gettype() : usage variations ***
H A Dgettype_settype_variation4.phpt2 Test gettype() & settype() functions : usage variations
14 Prototype: bool settype ( mixed &$var, string $type );
18 /* Test usage variation of gettype() and settype() functions:
19 settype() to bool/boolean type.
35 // settype() would fail with catachable fatal error
189 echo "\n*** Testing settype() & gettype() : usage variations ***\n";
200 var_dump( settype($var, $type) );
216 *** Testing settype() & gettype() : usage variations ***
/PHP-7.1/Zend/tests/
H A Dsettype_resource.phpt2 casting different variables to resource using settype()
33 settype($var, "resource");
40 Warning: settype(): Cannot convert to resource type in %s on line %d
43 Warning: settype(): Cannot convert to resource type in %s on line %d
46 Warning: settype(): Cannot convert to resource type in %s on line %d
49 Warning: settype(): Cannot convert to resource type in %s on line %d
52 Warning: settype(): Cannot convert to resource type in %s on line %d
55 Warning: settype(): Cannot convert to resource type in %s on line %d
58 Warning: settype(): Cannot convert to resource type in %s on line %d
62 Warning: settype(): Cannot convert to resource type in %s on line %d
[all …]
H A Dsettype_null.phpt2 casting different variables to null using settype()
33 settype($var, "null");
H A Dsettype_bool.phpt2 casting different variables to boolean using settype()
33 settype($var, "bool");
H A Dsettype_double.phpt2 casting different variables to double using settype()
35 settype($var, "double");
H A Dsettype_int.phpt2 casting different variables to integer using settype()
33 settype($var, "int");
H A Dsettype_string.phpt2 casting different variables to string using settype()
33 settype($var, "string");
H A Dsettype_array.phpt2 casting different variables to array using settype()
37 settype($var, "array");
H A Dsettype_object.phpt2 casting different variables to object using settype()
33 settype($var, "object");
/PHP-7.1/ext/spl/tests/
H A Dbug73686.phpt2 Bug #73686 (Adding settype()ed values to ArrayObject results in references)
10 settype($var, 'string');
/PHP-7.1/ext/mysqli/tests/
H A D045.phpt36 settype($c1, "unicode");
37 settype($c2, "unicode");
/PHP-7.1/ext/standard/
H A Dphp_type.h29 PHP_FUNCTION(settype);
H A Dtype.c93 PHP_FUNCTION(settype) in PHP_FUNCTION() argument
/PHP-7.1/ext/standard/tests/array/
H A Dbug70713.phpt22 array_walk_recursive($arr, 'settype');
/PHP-7.1/ext/pdo_mysql/tests/
H A Dpdo_mysql_prepare_native_placeholder_everywhere.phpt50 settype($tmp[0]['id'], 'integer');

Completed in 48 milliseconds

12