Home
last modified time | relevance | path

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

12

/php-src/ext/standard/tests/general_functions/
H A Dgettype_settype_error.phpt2 Test gettype() & settype() functions : error conditions
5 /* Test different error conditions of settype() and gettype() functions */
7 echo "**** Testing gettype() and settype() functions ****\n";
9 echo "\n*** Testing settype(): error conditions ***\n";
13 settype( $var, "unknown" );
21 **** Testing gettype() and settype() functions ****
23 *** Testing settype(): error conditions ***
24 settype(): Argument #2 ($type) must be a valid type
H A Dsettype_typed_property.phpt2 Using settype() on a typed property
12 settype($test->x, 'string');
18 settype($test->x, 'array');
H A Dgettype_settype_variation1.phpt2 Test gettype() & settype() functions : usage variations
11 /* Test usage variation of gettype() and settype() functions:
12 settype() to null type.
28 // settype() would fail with catachable fatal error
146 echo "\n*** Testing gettype() & settype() functions : usage variations ***\n";
156 var_dump( settype($var, $type) );
168 *** Testing gettype() & settype() functions : usage variations ***
H A Dgettype_settype_variation8.phpt2 Test gettype() & settype() functions : usage variations
11 /* Test usage variation of gettype() and settype() functions:
12 settype() to string type.
28 // settype() would fail with catachable fatal error
146 echo "\n*** Testing gettype() & settype() functions : usage variations ***\n";
156 var_dump( settype($var, $type) );
168 *** Testing gettype() & settype() functions : usage variations ***
H A Dgettype_settype_variation6.phpt2 Test gettype() & settype() functions : usage variations
11 /* Test usage variation of gettype() and settype() functions:
12 settype() to array type.
28 // settype() would fail with catachable fatal error
146 echo "\n*** Testing gettype() & settype() functions : usage variations ***\n";
157 var_dump( settype($var, $type) );
170 *** Testing gettype() & settype() functions : usage variations ***
H A Dgettype_settype_basic.phpt2 Test gettype() & settype() functions : basic functionalities
7 /* Test the basic functionalities of settype() & gettype() functions.
8 Use the gettype() to get the type of regular data and use settype()
18 // settype() would fail with catachable fatal error
21 echo "**** Testing gettype() and settype() functions ****\n";
83 echo "\n*** Testing settype(): basic operations ***\n";
92 var_dump( settype($var, $type) );
108 **** Testing gettype() and settype() functions ****
126 *** Testing settype(): basic operations ***
H A Dgettype_settype_variation7.phpt2 Test gettype() & settype() functions : usage variations
11 /* Test usage variation of gettype() and settype() functions:
12 settype() to object type.
28 // settype() would fail with catachable fatal error
146 echo "\n*** Testing gettype() & settype() functions : usage variations ***\n";
156 var_dump( settype($var, $type) );
168 *** Testing gettype() & settype() functions : usage variations ***
H A Dgettype_settype_variation5.phpt2 Test gettype() & settype() functions : usage variations
11 /* Test usage variation of gettype() and settype() functions:
12 settype() to resource type.
135 echo "\n*** Testing gettype() & settype() functions : usage variations ***\n";
146 var_dump(settype($var, $type));
161 *** Testing gettype() & settype() functions : usage variations ***
H A Dgettype_settype_variation2.phpt2 Test gettype() & settype() functions : usage variations
15 /* Test usage variation of gettype() and settype() functions:
16 settype() to int/integer type.
32 // settype() would fail with catachable fatal error
153 echo "\n*** Testing settype() & gettype() : usage variations ***\n";
164 var_dump( settype($var, $type) );
177 *** Testing settype() & gettype() : usage variations ***
H A Dgettype_settype_variation3.phpt2 Test gettype() & settype() functions : usage variations
9 /* Test usage variation of gettype() and settype() functions:
10 settype() to float/double type.
26 // settype() would fail with catachable fatal error
147 echo "\n*** Testing settype() & gettype() : usage variations ***\n";
158 var_dump( settype($var, $type) );
171 *** Testing settype() & gettype() : usage variations ***
H A Dgettype_settype_variation4.phpt2 Test gettype() & settype() functions : usage variations
11 /* Test usage variation of gettype() and settype() functions:
12 settype() to bool/boolean type.
28 // settype() would fail with catachable fatal error
174 echo "\n*** Testing settype() & gettype() : usage variations ***\n";
185 var_dump( settype($var, $type) );
198 *** Testing settype() & gettype() : usage variations ***
H A Dtype.phpt2 gettype(), settype() and friends
51 var_dump(settype($var, $type));
/php-src/Zend/tests/
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");
H A Dsettype_resource.phpt2 casting different variables to resource using settype()
34 settype($var, "resource");
/php-src/ext/spl/tests/
H A Dbug73686.phpt2 Bug #73686 (Adding settype()ed values to ArrayObject results in references)
10 settype($var, 'string');
/php-src/ext/standard/tests/array/
H A Dbug70713.phpt24 array_walk_recursive($arr, 'settype');
/php-src/ext/opcache/tests/jit/
H A Dassign_036.phpt32 \settype($tmp, $newType);
/php-src/ext/standard/tests/strings/
H A Dlocale_independent_float_to_string.phpt23 settype($g, "string");
/php-src/ext/standard/
H A Dtype.c85 PHP_FUNCTION(settype) in PHP_FUNCTION() argument

Completed in 39 milliseconds

12