bool(false)
bool(false)
bool(false)
-
var_dump(array(ini_get('precision'),.012,-.012,.12,-.12,1.2,-1.2,12.,-12.,0.000123,.0000123,123456789012.0,1234567890123.0,12345678901234567890.0));
?>
--EXPECT--
-array(14) {
- [0]=>
- string(2) "12"
- [1]=>
- float(0.012)
- [2]=>
- float(-0.012)
- [3]=>
- float(0.12)
- [4]=>
- float(-0.12)
- [5]=>
- float(1.2)
- [6]=>
- float(-1.2)
- [7]=>
- float(12)
- [8]=>
- float(-12)
- [9]=>
- float(0.000123)
- [10]=>
- float(1.23E-5)
- [11]=>
- float(123456789012)
- [12]=>
- float(1234567890120)
- [13]=>
- float(1.23456789012E+19)
-}
---UEXPECT--
array(14) {
[0]=>
unicode(2) "12"
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
Done
--EXPECT--
Hello World!
Hello World!
-
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Opening process 1
Opening process 2
Closing process 1
?>
===DONE===
---EXPECTF--
+--EXPECT--
TestClass::test()
TestClass::test()
TestClass::test()
?>
--EXPECTF--
-array(8) {
- ["command"]=>
- string(14) "/bin/sleep 120"
- ["pid"]=>
- int(%d)
- ["running"]=>
- bool(false)
- ["signaled"]=>
- bool(true)
- ["stopped"]=>
- bool(false)
- ["exitcode"]=>
- int(-1)
- ["termsig"]=>
- int(15)
- ["stopsig"]=>
- int(0)
-}
-Done!
---UEXPECTF--
array(8) {
[u"command"]=>
unicode(14) "/bin/sleep 120"
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Base::__construct() cannot be called statically, assuming $this from compatible context Derived_6 in %s on line %d
Base::__construct(6)
===DONE===
---UEXPECTF--
-Base::__construct(1)
-Base::__construct(2)
-
-Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Base::__construct() cannot be called statically, assuming $this from compatible context Derived_3 in %s on line %d
-Base::__construct(3)
-
-Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Base::__construct() cannot be called statically, assuming $this from compatible context Derived_4 in %s on line %d
-Base::__construct(4)
-
-Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Base::__construct() cannot be called statically, assuming $this from compatible context Derived_5 in %s on line %d
-Base::__construct(5)
-
-Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Base::__construct() cannot be called statically, assuming $this from compatible context Derived_6 in %s on line %d
-Base::__construct(6)
-===DONE===
echo "Done\n";
?>
---EXPECTF--
-array(1) {
- ["foo"]=>
- array(1) {
- [0]=>
- string(1) "1"
- }
-}
-array(1) {
- ["foo"]=>
- string(1) "1"
-}
-Done
---UEXPECTF--
+--EXPECT--
array(1) {
[u"foo"]=>
array(1) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
hello
Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d
Done
echo "Done\n";
?>
---EXPECTF--
-array(2) {
- ["001099030277"]=>
- array(1) {
- ["option1"]=>
- string(1) "1"
- }
- ["011099030277"]=>
- array(1) {
- ["option2"]=>
- string(1) "1"
- }
-}
-array(2) {
- ["option1"]=>
- string(1) "1"
- ["option2"]=>
- string(1) "1"
-}
-array(2) {
- ["23.44"]=>
- array(1) {
- ["option1"]=>
- string(1) "1"
- }
- ["9633337363542736472364"]=>
- array(1) {
- ["option2"]=>
- string(1) "1"
- }
-}
-array(2) {
- ["option1"]=>
- string(1) "1"
- ["option2"]=>
- string(1) "1"
-}
-Done
---UEXPECTF--
+--EXPECT--
array(2) {
[u"001099030277"]=>
array(1) {
echo "Done\n";
?>
---EXPECTF--
-array(3) {
- ["2454.33"]=>
- array(1) {
- ["09"]=>
- string(1) "1"
- }
- [9876543]=>
- array(1) {
- ["098765434567876543"]=>
- string(1) "1"
- }
- ["09876543"]=>
- array(1) {
- ["987654345678765432456798765434567876543"]=>
- string(1) "1"
- }
-}
-array(3) {
- ["09"]=>
- string(1) "1"
- ["098765434567876543"]=>
- string(1) "1"
- ["987654345678765432456798765434567876543"]=>
- string(1) "1"
-}
-Done
---UEXPECTF--
+--EXPECT--
array(3) {
[u"2454.33"]=>
array(1) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
Done
--EXPECT--
array(0) {
}
-
bool(false)
}
}
-array(3) {
- [0]=>
- bool(true)
- [1]=>
- bool(false)
- [2]=>
- string(1) "f"
-}
---UEXPECT--
-array(1) {
- ["f"]=>
- array(2) {
- [0]=>
- bool(false)
- [1]=>
- bool(false)
- }
-}
array(3) {
[0]=>
bool(true)
[2]=>
unicode(1) "f"
}
-
unlink(__DIR__ . 'bug44461.ini');
?>
--EXPECT--
-===DONE===
\ No newline at end of file
+===DONE===
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Result is: Hello
Done
?>
===DONE===
---EXPECTF--
-Direct Call
-string(5) "test1" refcount(1)
-User Func
-string(5) "test1" refcount(1)
-Direct Call
-string(5) "test2" refcount(2)
-User Func
-string(5) "test2" refcount(1)
-===DONE===
---UEXPECTF--
+--EXPECT--
Direct Call
unicode(5) "test1" { 0074 0065 0073 0074 0031 } refcount(1)
User Func
--EXPECTF--
*** Testing debug_zval_dump() on objects ***
-- Iteration 1 --
-object(object_class)#%d (6) refcount(5){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(5){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
-}
--- Iteration 2 --
-object(no_member_class)#%d (0) refcount(4){
-}
--- Iteration 3 --
-object(contains_object_class)#%d (9) refcount(4){
- ["p"]=>
- long(30) refcount(2)
- ["p1":protected]=>
- long(40) refcount(2)
- ["p2":"contains_object_class":private]=>
- long(50) refcount(2)
- ["class_object1"]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
- }
- ["class_object2"]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
- }
- ["class_object4":protected]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
- }
- ["no_member_class_object"]=>
- object(no_member_class)#%d (0) refcount(3){
- }
- ["class_object5"]=>
- object(contains_object_class)#%d (9) refcount(1){
- ["p"]=>
- long(30) refcount(2)
- ["p1":protected]=>
- long(40) refcount(2)
- ["p2":"contains_object_class":private]=>
- long(50) refcount(2)
- ["class_object1"]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
- }
- ["class_object2"]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
- }
- ["class_object4":protected]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(7){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
- }
- ["no_member_class_object"]=>
- object(no_member_class)#%d (0) refcount(3){
- }
- ["class_object5"]=>
- *RECURSION*
- }
-}
--- Iteration 4 --
-object(object_class)#%d (6) refcount(9){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(9){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
-}
--- Iteration 5 --
-object(object_class)#%d (6) refcount(9){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(9){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
-}
--- Iteration 6 --
-object(no_member_class)#%d (0) refcount(5){
-}
--- Iteration 7 --
-NULL refcount(1)
--- Iteration 8 --
-object(object_class)#%d (6) refcount(9){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(9){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
-}
--- Iteration 9 --
-object(object_class)#%d (6) refcount(9){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (6) refcount(9){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(5)
- ["value3":protected]=>
- long(20) refcount(5)
- ["value4"]=>
- long(30) refcount(7)
- ["array_var"]=>
- array(2) refcount(5){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- }
-}
--- Iteration 10 --
-long(30) refcount(9)
--- Iteration 11 --
-NULL refcount(1)
-
--- Testing debug_zval_dump() on overwritten object variables --
-long(500) refcount(1)
-long(500) refcount(1)
-long(500) refcount(1)
-long(500) refcount(1)
-
--- Testing debug_zval_dump() on objects having circular reference --
-object(object_class)#%d (7) refcount(1){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(7)
- ["value3":protected]=>
- long(20) refcount(7)
- ["value4"]=>
- long(30) refcount(8)
- ["array_var"]=>
- array(2) refcount(7){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (7) refcount(1){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(7)
- ["value3":protected]=>
- long(20) refcount(7)
- ["value4"]=>
- long(30) refcount(8)
- ["array_var"]=>
- array(2) refcount(7){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- ["obj"]=>
- &object(object_class)#%d (7) refcount(2){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(7)
- ["value3":protected]=>
- long(20) refcount(7)
- ["value4"]=>
- long(30) refcount(8)
- ["array_var"]=>
- array(2) refcount(7){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (7) refcount(1){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(7)
- ["value3":protected]=>
- long(20) refcount(7)
- ["value4"]=>
- long(30) refcount(8)
- ["array_var"]=>
- array(2) refcount(7){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- ["obj"]=>
- *RECURSION*
- }
- ["obj"]=>
- *RECURSION*
- }
- }
- ["obj"]=>
- &object(object_class)#%d (7) refcount(2){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(7)
- ["value3":protected]=>
- long(20) refcount(7)
- ["value4"]=>
- long(30) refcount(8)
- ["array_var"]=>
- array(2) refcount(7){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- object(object_class)#%d (7) refcount(1){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(7)
- ["value3":protected]=>
- long(20) refcount(7)
- ["value4"]=>
- long(30) refcount(8)
- ["array_var"]=>
- array(2) refcount(7){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- ["obj"]=>
- &object(object_class)#%d (7) refcount(2){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(7)
- ["value3":protected]=>
- long(20) refcount(7)
- ["value4"]=>
- long(30) refcount(8)
- ["array_var"]=>
- array(2) refcount(7){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- ["obj"]=>
- *RECURSION*
- }
- }
- ["obj"]=>
- &object(object_class)#%d (7) refcount(2){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(7)
- ["value3":protected]=>
- long(20) refcount(7)
- ["value4"]=>
- long(30) refcount(8)
- ["array_var"]=>
- array(2) refcount(7){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- ["obj"]=>
- &object(object_class)#%d (7) refcount(2){
- ["value1"]=>
- long(5) refcount(1)
- ["value2":"object_class":private]=>
- long(10) refcount(7)
- ["value3":protected]=>
- long(20) refcount(7)
- ["value4"]=>
- long(30) refcount(8)
- ["array_var"]=>
- array(2) refcount(7){
- ["key1"]=>
- long(1) refcount(1)
- ["key2 "]=>
- long(3) refcount(1)
- }
- ["object_class1"]=>
- *RECURSION*
- ["obj"]=>
- *RECURSION*
- }
- }
- }
-}
-Done
---UEXPECTF--
-*** Testing debug_zval_dump() on objects ***
--- Iteration 1 --
object(object_class)#%d (6) refcount(5){
[u"value1"]=>
long(5) refcount(1)
-- Value of $var_2: --
long(10) refcount(2)
-*** Testing debug_zval_dump() on miscelleneous input arguments ***
--- Iteration 1 --
-NULL refcount(3)
-&NULL refcount(2)
--- Iteration 2 --
-NULL refcount(3)
-&NULL refcount(2)
--- Iteration 3 --
-NULL refcount(1)
-&NULL refcount(2)
--- Iteration 4 --
-NULL refcount(1)
-&NULL refcount(2)
--- Iteration 5 --
-string(7) "TRUE123" refcount(3)
-&string(7) "TRUE123" refcount(2)
--- Iteration 6 --
-string(9) "123string" refcount(3)
-&string(9) "123string" refcount(2)
--- Iteration 7 --
-string(9) "string123" refcount(3)
-&string(9) "string123" refcount(2)
--- Iteration 8 --
-string(10) "NULLstring" refcount(3)
-&string(10) "NULLstring" refcount(2)
-Done
---UEXPECTF--
-Deprecated: Call-time pass-by-reference has been deprecated in %s on line %d
-*** Testing debug_zval_dump() on functions ***
---- Variation 1: global variable inside a function ---
-
--- Value of global variable, before calling dump_globalvar() --
-long(10) refcount(2)
-
--- Value of local variable inside dump_globalvar() --
-long(10) refcount(1)
-
--- Value of global variable inside dump_globalvar() --
-long(10) refcount(1)
-
--- Value of global variable, after exiting dump_globalvar() --
-long(10) refcount(2)
-
---- Variation 2: one variable references another ---
-
--- Value of $first_var: --
-long(10) refcount(2)
-
--- Value of $ref_first_var --
-NULL refcount(1)
-
--- Value of $first_var --
-long(10) refcount(2)
-
--- Value of $ref_first_var --
-
-Notice: Undefined variable: ref_first_var in %s on line %d
-NULL refcount(1)
-
--- Value of $first_var --
-long(10) refcount(2)
-
---- Variation 3: multiple references of variables ---
-
--- Value of $var_1: (before referencing) --
-long(10) refcount(1)
-
--- Value of $var_2: (referencing var_1) --
-long(10) refcount(1)
-
--- Value of $var_3: (referencing var_2) --
-long(10) refcount(1)
-
--- Value of $var_3: (after unsetting var_3) --
-
-Notice: Undefined variable: var_3 in %s on line %d
-NULL refcount(1)
-
--- Value of $var_2: --
-long(10) refcount(1)
-
--- Value of $var_3: --
-long(10) refcount(1)
-
--- Value of $var_1: (after unsetting variable_1) --
-
-Notice: Undefined variable: var_1 in %s on line %d
-NULL refcount(1)
-
--- Value of $var_2: --
-long(10) refcount(2)
-
*** Testing debug_zval_dump() on miscelleneous input arguments ***
-- Iteration 1 --
NULL refcount(3)
<?php
var_dump(dl(str_repeat("a", 8376757)));
?>
---EXPECTF--
+--EXPECTF--
Warning: dl(): File name exceeds the maximum allowed length of %d characters in %s on line %d
bool(false)
--EXPECTF--
NULL
-Warning: error_get_last() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-array(4) {
- ["type"]=>
- int(2)
- ["message"]=>
- string(54) "error_get_last() expects exactly 0 parameters, 1 given"
- ["file"]=>
- string(%d) "%s"
- ["line"]=>
- int(%d)
-}
-
-Notice: Undefined variable: b in %s on line %d
-array(4) {
- ["type"]=>
- int(8)
- ["message"]=>
- string(21) "Undefined variable: b"
- ["file"]=>
- string(%d) "%s"
- ["line"]=>
- int(%d)
-}
-Done
---UEXPECTF--
-NULL
-
Warning: error_get_last() expects exactly 0 parameters, 1 given in %s on line %d
NULL
array(4) {
NULL
Done
---UEXPECTF--
-*** Testing floatval() with valid float values ***
-float(0)
-float(1)
-float(-1)
-float(1.234)
-float(-1.234)
-float(1200)
-float(-1200)
-float(10)
-float(1050000)
-float(100000)
-float(-100000)
-float(1.0E-5)
-float(-0.1)
-float(100000)
-float(-100000)
-float(100000)
-float(-100000)
-float(100000)
-float(-100000)
-float(5000000)
-float(-5000000)
-
-*** Testing doubleval() with valid float values ***
-float(0)
-float(1)
-float(-1)
-float(1.234)
-float(-1.234)
-float(1200)
-float(-1200)
-float(10)
-float(1050000)
-float(100000)
-float(-100000)
-float(1.0E-5)
-float(-0.1)
-float(100000)
-float(-100000)
-float(100000)
-float(-100000)
-float(100000)
-float(-100000)
-float(5000000)
-float(-5000000)
-
-*** Testing floatval() on non floating types ***
-float(-2147483648)
-float(2147483648)
-float(5)
-float(6)
-float(0)
-float(1)
-float(-1300)
-float(0)
-float(10)
-float(10.2)
-float(11)
-float(11)
-float(0)
-float(1)
-float(0)
-float(0)
-
-*** Testing doubleval() on non floating types ***
-float(-2147483648)
-float(2147483648)
-float(5)
-float(6)
-float(0)
-float(1)
-float(-1300)
-float(0)
-float(10)
-float(10.2)
-float(11)
-float(11)
-float(0)
-float(1)
-float(0)
-float(0)
-
-*** Testing error conditions ***
-
-Warning: Wrong parameter count for floatval() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for doubleval() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for floatval() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for doubleval() in %s on line %d
-NULL
-
-Done
var_dump(getopt("d:m:j:vht"));
?>
--EXPECT--
-array(5) {
- ["v"]=>
- bool(false)
- ["h"]=>
- bool(false)
- ["d"]=>
- string(4) "test"
- ["m"]=>
- string(4) "1234"
- ["t"]=>
- bool(false)
-}
---UEXPECT--
array(5) {
[u"v"]=>
bool(false)
string(5) "value"
}
}
-
-
echo "Done\n";
?>
---EXPECTF--
-string(5) "array"
-string(5) "array"
-string(5) "array"
-
-Warning: getrusage() expects parameter 1 to be long, array given in %s on line %d
-NULL
-Done
---UEXPECTF--
+--EXPECTF--
unicode(5) "array"
unicode(5) "array"
unicode(5) "array"
echo "Done\n";
?>
---EXPECTF--
-**** Testing gettype() and settype() functions ****
-
-*** Testing gettype(): basic operations ***
-string(5) "array"
-string(6) "string"
-string(5) "array"
-string(7) "integer"
-string(7) "integer"
-string(6) "double"
-string(6) "double"
-string(4) "NULL"
-string(7) "boolean"
-string(6) "string"
-string(6) "string"
-string(6) "string"
-string(6) "string"
-string(8) "resource"
-string(8) "resource"
-string(6) "object"
-
-*** Testing settype(): basic operations ***
-
--- Setting type of data to null --
--- Iteration 1 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 2 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 3 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 4 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 5 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 6 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 7 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 8 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 9 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 10 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 11 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 12 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 13 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 14 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 15 --
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 16 --
-bool(true)
-NULL
-string(4) "NULL"
-
--- Setting type of data to integer --
--- Iteration 1 --
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 2 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 3 --
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 4 --
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 5 --
-bool(true)
-int(-20)
-string(7) "integer"
--- Iteration 6 --
-bool(true)
-int(2)
-string(7) "integer"
--- Iteration 7 --
-bool(true)
-int(-2)
-string(7) "integer"
--- Iteration 8 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 9 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 10 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 11 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 12 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 13 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 14 --
-bool(true)
-int(5)
-string(7) "integer"
--- Iteration 15 --
-bool(true)
-int(6)
-string(7) "integer"
--- Iteration 16 --
-8: Object of class point could not be converted to int
-bool(true)
-int(1)
-string(7) "integer"
-
--- Setting type of data to int --
--- Iteration 1 --
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 2 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 3 --
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 4 --
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 5 --
-bool(true)
-int(-20)
-string(7) "integer"
--- Iteration 6 --
-bool(true)
-int(2)
-string(7) "integer"
--- Iteration 7 --
-bool(true)
-int(-2)
-string(7) "integer"
--- Iteration 8 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 9 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 10 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 11 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 12 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 13 --
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 14 --
-bool(true)
-int(5)
-string(7) "integer"
--- Iteration 15 --
-bool(true)
-int(6)
-string(7) "integer"
--- Iteration 16 --
-8: Object of class point could not be converted to int
-bool(true)
-int(1)
-string(7) "integer"
-
--- Setting type of data to float --
--- Iteration 1 --
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 2 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 3 --
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 4 --
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 5 --
-bool(true)
-float(-20)
-string(6) "double"
--- Iteration 6 --
-bool(true)
-float(2.54)
-string(6) "double"
--- Iteration 7 --
-bool(true)
-float(-2.54)
-string(6) "double"
--- Iteration 8 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 9 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 10 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 11 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 12 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 13 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 14 --
-bool(true)
-float(5)
-string(6) "double"
--- Iteration 15 --
-bool(true)
-float(6)
-string(6) "double"
--- Iteration 16 --
-8: Object of class point could not be converted to double
-bool(true)
-float(1)
-string(6) "double"
-
--- Setting type of data to double --
--- Iteration 1 --
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 2 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 3 --
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 4 --
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 5 --
-bool(true)
-float(-20)
-string(6) "double"
--- Iteration 6 --
-bool(true)
-float(2.54)
-string(6) "double"
--- Iteration 7 --
-bool(true)
-float(-2.54)
-string(6) "double"
--- Iteration 8 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 9 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 10 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 11 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 12 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 13 --
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 14 --
-bool(true)
-float(5)
-string(6) "double"
--- Iteration 15 --
-bool(true)
-float(6)
-string(6) "double"
--- Iteration 16 --
-8: Object of class point could not be converted to double
-bool(true)
-float(1)
-string(6) "double"
-
--- Setting type of data to boolean --
--- Iteration 1 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 2 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 3 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 4 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 5 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 6 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 7 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 8 --
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 9 --
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 10 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 11 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 12 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 13 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 14 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 15 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 16 --
-bool(true)
-bool(true)
-string(7) "boolean"
-
--- Setting type of data to bool --
--- Iteration 1 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 2 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 3 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 4 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 5 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 6 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 7 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 8 --
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 9 --
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 10 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 11 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 12 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 13 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 14 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 15 --
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 16 --
-bool(true)
-bool(true)
-string(7) "boolean"
-
--- Setting type of data to resource --
--- Iteration 1 --
-2: settype(): Cannot convert to resource type
-bool(false)
-array(3) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
-}
-string(5) "array"
--- Iteration 2 --
-2: settype(): Cannot convert to resource type
-bool(false)
-string(14) "another string"
-string(6) "string"
--- Iteration 3 --
-2: settype(): Cannot convert to resource type
-bool(false)
-array(3) {
- [0]=>
- int(2)
- [1]=>
- int(3)
- [2]=>
- int(4)
-}
-string(5) "array"
--- Iteration 4 --
-2: settype(): Cannot convert to resource type
-bool(false)
-int(1)
-string(7) "integer"
--- Iteration 5 --
-2: settype(): Cannot convert to resource type
-bool(false)
-int(-20)
-string(7) "integer"
--- Iteration 6 --
-2: settype(): Cannot convert to resource type
-bool(false)
-float(2.54)
-string(6) "double"
--- Iteration 7 --
-2: settype(): Cannot convert to resource type
-bool(false)
-float(-2.54)
-string(6) "double"
--- Iteration 8 --
-2: settype(): Cannot convert to resource type
-bool(false)
-NULL
-string(4) "NULL"
--- Iteration 9 --
-2: settype(): Cannot convert to resource type
-bool(false)
-bool(false)
-string(7) "boolean"
--- Iteration 10 --
-2: settype(): Cannot convert to resource type
-bool(false)
-string(11) "some string"
-string(6) "string"
--- Iteration 11 --
-2: settype(): Cannot convert to resource type
-bool(false)
-string(6) "string"
-string(6) "string"
--- Iteration 12 --
-2: settype(): Cannot convert to resource type
-bool(false)
-string(11) "some string"
-string(6) "string"
--- Iteration 13 --
-2: settype(): Cannot convert to resource type
-bool(false)
-string(6) "string"
-string(6) "string"
--- Iteration 14 --
-2: settype(): Cannot convert to resource type
-bool(false)
-resource(5) of type (stream)
-string(8) "resource"
--- Iteration 15 --
-2: settype(): Cannot convert to resource type
-bool(false)
-resource(6) of type (stream)
-string(8) "resource"
--- Iteration 16 --
-2: settype(): Cannot convert to resource type
-bool(false)
-object(point)#1 (2) {
- ["x"]=>
- int(10)
- ["y"]=>
- int(20)
-}
-string(6) "object"
-
--- Setting type of data to array --
--- Iteration 1 --
-bool(true)
-array(3) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
-}
-string(5) "array"
--- Iteration 2 --
-bool(true)
-array(1) {
- [0]=>
- string(14) "another string"
-}
-string(5) "array"
--- Iteration 3 --
-bool(true)
-array(3) {
- [0]=>
- int(2)
- [1]=>
- int(3)
- [2]=>
- int(4)
-}
-string(5) "array"
--- Iteration 4 --
-bool(true)
-array(1) {
- [0]=>
- int(1)
-}
-string(5) "array"
--- Iteration 5 --
-bool(true)
-array(1) {
- [0]=>
- int(-20)
-}
-string(5) "array"
--- Iteration 6 --
-bool(true)
-array(1) {
- [0]=>
- float(2.54)
-}
-string(5) "array"
--- Iteration 7 --
-bool(true)
-array(1) {
- [0]=>
- float(-2.54)
-}
-string(5) "array"
--- Iteration 8 --
-bool(true)
-array(0) {
-}
-string(5) "array"
--- Iteration 9 --
-bool(true)
-array(1) {
- [0]=>
- bool(false)
-}
-string(5) "array"
--- Iteration 10 --
-bool(true)
-array(1) {
- [0]=>
- string(11) "some string"
-}
-string(5) "array"
--- Iteration 11 --
-bool(true)
-array(1) {
- [0]=>
- string(6) "string"
-}
-string(5) "array"
--- Iteration 12 --
-bool(true)
-array(1) {
- [0]=>
- string(11) "some string"
-}
-string(5) "array"
--- Iteration 13 --
-bool(true)
-array(1) {
- [0]=>
- string(6) "string"
-}
-string(5) "array"
--- Iteration 14 --
-bool(true)
-array(1) {
- [0]=>
- resource(5) of type (stream)
-}
-string(5) "array"
--- Iteration 15 --
-bool(true)
-array(1) {
- [0]=>
- resource(6) of type (stream)
-}
-string(5) "array"
--- Iteration 16 --
-bool(true)
-array(2) {
- ["x"]=>
- int(10)
- ["y"]=>
- int(20)
-}
-string(5) "array"
-
--- Setting type of data to object --
--- Iteration 1 --
-bool(true)
-object(stdClass)#2 (3) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
-}
-string(6) "object"
--- Iteration 2 --
-bool(true)
-object(stdClass)#2 (1) {
- ["scalar"]=>
- string(14) "another string"
-}
-string(6) "object"
--- Iteration 3 --
-bool(true)
-object(stdClass)#2 (3) {
- [0]=>
- int(2)
- [1]=>
- int(3)
- [2]=>
- int(4)
-}
-string(6) "object"
--- Iteration 4 --
-bool(true)
-object(stdClass)#2 (1) {
- ["scalar"]=>
- int(1)
-}
-string(6) "object"
--- Iteration 5 --
-bool(true)
-object(stdClass)#2 (1) {
- ["scalar"]=>
- int(-20)
-}
-string(6) "object"
--- Iteration 6 --
-bool(true)
-object(stdClass)#2 (1) {
- ["scalar"]=>
- float(2.54)
-}
-string(6) "object"
--- Iteration 7 --
-bool(true)
-object(stdClass)#2 (1) {
- ["scalar"]=>
- float(-2.54)
-}
-string(6) "object"
--- Iteration 8 --
-bool(true)
-object(stdClass)#2 (0) {
-}
-string(6) "object"
--- Iteration 9 --
-bool(true)
-object(stdClass)#2 (1) {
- ["scalar"]=>
- bool(false)
-}
-string(6) "object"
--- Iteration 10 --
-bool(true)
-object(stdClass)#2 (1) {
- ["scalar"]=>
- string(11) "some string"
-}
-string(6) "object"
--- Iteration 11 --
-bool(true)
-object(stdClass)#2 (1) {
- ["scalar"]=>
- string(6) "string"
-}
-string(6) "object"
--- Iteration 12 --
-bool(true)
-object(stdClass)#2 (1) {
- ["scalar"]=>
- string(11) "some string"
-}
-string(6) "object"
--- Iteration 13 --
-bool(true)
-object(stdClass)#2 (1) {
- ["scalar"]=>
- string(6) "string"
-}
-string(6) "object"
--- Iteration 14 --
-bool(true)
-object(stdClass)#2 (1) {
- ["scalar"]=>
- resource(5) of type (stream)
-}
-string(6) "object"
--- Iteration 15 --
-bool(true)
-object(stdClass)#2 (1) {
- ["scalar"]=>
- resource(6) of type (stream)
-}
-string(6) "object"
--- Iteration 16 --
-bool(true)
-object(point)#1 (2) {
- ["x"]=>
- int(10)
- ["y"]=>
- int(20)
-}
-string(6) "object"
-
--- Setting type of data to string --
--- Iteration 1 --
-8: Array to string conversion
-bool(true)
-string(5) "Array"
-string(6) "string"
--- Iteration 2 --
-bool(true)
-string(14) "another string"
-string(6) "string"
--- Iteration 3 --
-8: Array to string conversion
-bool(true)
-string(5) "Array"
-string(6) "string"
--- Iteration 4 --
-bool(true)
-string(1) "1"
-string(6) "string"
--- Iteration 5 --
-bool(true)
-string(3) "-20"
-string(6) "string"
--- Iteration 6 --
-bool(true)
-string(4) "2.54"
-string(6) "string"
--- Iteration 7 --
-bool(true)
-string(5) "-2.54"
-string(6) "string"
--- Iteration 8 --
-bool(true)
-string(0) ""
-string(6) "string"
--- Iteration 9 --
-bool(true)
-string(0) ""
-string(6) "string"
--- Iteration 10 --
-bool(true)
-string(11) "some string"
-string(6) "string"
--- Iteration 11 --
-bool(true)
-string(6) "string"
-string(6) "string"
--- Iteration 12 --
-bool(true)
-string(11) "some string"
-string(6) "string"
--- Iteration 13 --
-bool(true)
-string(6) "string"
-string(6) "string"
--- Iteration 14 --
-bool(true)
-string(14) "Resource id #5"
-string(6) "string"
--- Iteration 15 --
-bool(true)
-string(14) "Resource id #6"
-string(6) "string"
--- Iteration 16 --
-bool(true)
-string(6) "Object"
-string(6) "string"
-Done
---UEXPECT--
+--EXPECTF--
**** Testing gettype() and settype() functions ****
*** Testing gettype(): basic operations ***
echo "Done\n";
?>
---EXPECTF--
-**** Testing gettype() and settype() functions ****
-
-*** Testing gettype(): error conditions ***
-
-Warning: Wrong parameter count for gettype() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for gettype() in %s on line %d
-NULL
-
-*** Testing settype(): error conditions ***
-
-Warning: Wrong parameter count for settype() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for settype() in %s on line %d
-NULL
-
-Warning: settype(): Invalid type in %s on line %d
-bool(false)
-Done
---UEXPECTF--
+--EXPECTF--
**** Testing gettype() and settype() functions ****
*** Testing gettype(): error conditions ***
b"10string"
);
-/* test conversion to null type */
+/* test conversion to null type */
$type = "null";
echo "\n*** Testing gettype() & settype() functions : usage variations ***\n";
echo "Done\n";
?>
---EXPECTF--
-8: Undefined variable: unset_var
-8: Undefined variable: undef_var
-
-*** Testing gettype() & settype() functions : usage variations ***
-
--- Setting type of data to null --
--- Iteration 1 --
-string(4) "NULL"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 2 --
-string(7) "boolean"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 3 --
-string(7) "boolean"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 4 --
-string(7) "boolean"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 5 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 6 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 7 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 8 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 9 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 10 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 11 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 12 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 13 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 14 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 15 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 16 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 17 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 18 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 19 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 20 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 21 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 22 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 23 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 24 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 25 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 26 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 27 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 28 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 29 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 30 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 31 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 32 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 33 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 34 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 35 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 36 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 37 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 38 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 39 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 40 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 41 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 42 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 43 --
-string(5) "array"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 44 --
-string(5) "array"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 45 --
-string(5) "array"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 46 --
-string(5) "array"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 47 --
-string(5) "array"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 48 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 49 --
-string(7) "integer"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 50 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 51 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 52 --
-string(7) "integer"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 53 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 54 --
-string(7) "integer"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 55 --
-string(7) "integer"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 56 --
-string(7) "integer"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 57 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 58 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 59 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 60 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 61 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 62 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 63 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 64 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 65 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 66 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 67 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 68 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 69 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 70 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 71 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 72 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 73 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 74 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 75 --
-string(6) "double"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 76 --
-string(6) "object"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 77 --
-string(6) "object"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 78 --
-string(6) "object"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 79 --
-string(4) "NULL"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 80 --
-string(4) "NULL"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 81 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 82 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 83 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 84 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 85 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 86 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 87 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 88 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 89 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 90 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
--- Iteration 91 --
-string(6) "string"
-bool(true)
-NULL
-string(4) "NULL"
-Done
---UEXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
b"10string"
);
-// test conversion to these types
+// test conversion to these types
$types = array(
"integer",
"int"
echo "Done\n";
?>
---EXPECTF--
-8: Undefined variable: unset_var
-8: Undefined variable: undef_var
-
-*** Testing settype() & gettype() : usage variations ***
-
--- Setting type of data to integer --
--- Iteration 1 --
-string(4) "NULL"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 2 --
-string(7) "boolean"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 3 --
-string(7) "boolean"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 4 --
-string(7) "boolean"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 5 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 6 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 7 --
-string(6) "string"
-bool(true)
-int(3)
-string(7) "integer"
--- Iteration 8 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 9 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 10 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 11 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 12 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 13 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 14 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 15 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 16 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 17 --
-string(6) "string"
-bool(true)
-int(-1)
-string(7) "integer"
--- Iteration 18 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 19 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 20 --
-string(6) "string"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 21 --
-string(6) "string"
-bool(true)
-int(-1)
-string(7) "integer"
--- Iteration 22 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 23 --
-string(6) "string"
-bool(true)
-int(-1)
-string(7) "integer"
--- Iteration 24 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 25 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 26 --
-string(6) "string"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 27 --
-string(6) "string"
-bool(true)
-int(-1)
-string(7) "integer"
--- Iteration 28 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 29 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 30 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 31 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 32 --
-string(6) "string"
-bool(true)
-int(123)
-string(7) "integer"
--- Iteration 33 --
-string(6) "string"
-bool(true)
-int(123)
-string(7) "integer"
--- Iteration 34 --
-string(6) "string"
-bool(true)
-int(-123)
-string(7) "integer"
--- Iteration 35 --
-string(6) "string"
-bool(true)
-int(123)
-string(7) "integer"
--- Iteration 36 --
-string(6) "string"
-bool(true)
-int(-123)
-string(7) "integer"
--- Iteration 37 --
-string(6) "string"
-bool(true)
-int(123)
-string(7) "integer"
--- Iteration 38 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 39 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 40 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 41 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 42 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 43 --
-string(5) "array"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 44 --
-string(5) "array"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 45 --
-string(5) "array"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 46 --
-string(5) "array"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 47 --
-string(5) "array"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 48 --
-string(6) "double"
-bool(true)
-int(-2147483648)
-string(7) "integer"
--- Iteration 49 --
-string(7) "integer"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 50 --
-string(6) "double"
-bool(true)
-int(-2147483647)
-string(7) "integer"
--- Iteration 51 --
-string(6) "double"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 52 --
-string(7) "integer"
-bool(true)
-int(85)
-string(7) "integer"
--- Iteration 53 --
-string(6) "double"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 54 --
-string(7) "integer"
-bool(true)
-int(-21903)
-string(7) "integer"
--- Iteration 55 --
-string(7) "integer"
-bool(true)
-int(365)
-string(7) "integer"
--- Iteration 56 --
-string(7) "integer"
-bool(true)
-int(-365)
-string(7) "integer"
--- Iteration 57 --
-string(6) "double"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 58 --
-string(6) "double"
-bool(true)
-int(100000)
-string(7) "integer"
--- Iteration 59 --
-string(6) "double"
-bool(true)
-int(-100000)
-string(7) "integer"
--- Iteration 60 --
-string(6) "double"
-bool(true)
-int(100000)
-string(7) "integer"
--- Iteration 61 --
-string(6) "double"
-bool(true)
-int(-100000)
-string(7) "integer"
--- Iteration 62 --
-string(6) "double"
-bool(true)
-int(-1)
-string(7) "integer"
--- Iteration 63 --
-string(6) "double"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 64 --
-string(6) "double"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 65 --
-string(6) "double"
-bool(true)
-int(500000)
-string(7) "integer"
--- Iteration 66 --
-string(6) "double"
-bool(true)
-int(-500000)
-string(7) "integer"
--- Iteration 67 --
-string(6) "double"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 68 --
-string(6) "double"
-bool(true)
-int(500000)
-string(7) "integer"
--- Iteration 69 --
-string(6) "double"
-bool(true)
-int(-500000)
-string(7) "integer"
--- Iteration 70 --
-string(6) "double"
-bool(true)
-int(512000)
-string(7) "integer"
--- Iteration 71 --
-string(6) "double"
-bool(true)
-int(-512000)
-string(7) "integer"
--- Iteration 72 --
-string(6) "double"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 73 --
-string(6) "double"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 74 --
-string(6) "double"
-bool(true)
-int(512000)
-string(7) "integer"
--- Iteration 75 --
-string(6) "double"
-bool(true)
-int(-512000)
-string(7) "integer"
--- Iteration 76 --
-string(6) "object"
-8: Object of class point could not be converted to int
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 77 --
-string(6) "object"
-8: Object of class point could not be converted to int
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 78 --
-string(6) "object"
-8: Object of class point could not be converted to int
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 79 --
-string(4) "NULL"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 80 --
-string(4) "NULL"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 81 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 82 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 83 --
-string(6) "string"
-bool(true)
-int(123)
-string(7) "integer"
--- Iteration 84 --
-string(6) "string"
-bool(true)
-int(-123)
-string(7) "integer"
--- Iteration 85 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 86 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 87 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 88 --
-string(6) "string"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 89 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 90 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 91 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
-
--- Setting type of data to int --
--- Iteration 1 --
-string(4) "NULL"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 2 --
-string(7) "boolean"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 3 --
-string(7) "boolean"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 4 --
-string(7) "boolean"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 5 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 6 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 7 --
-string(6) "string"
-bool(true)
-int(3)
-string(7) "integer"
--- Iteration 8 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 9 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 10 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 11 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 12 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 13 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 14 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 15 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 16 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 17 --
-string(6) "string"
-bool(true)
-int(-1)
-string(7) "integer"
--- Iteration 18 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 19 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 20 --
-string(6) "string"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 21 --
-string(6) "string"
-bool(true)
-int(-1)
-string(7) "integer"
--- Iteration 22 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 23 --
-string(6) "string"
-bool(true)
-int(-1)
-string(7) "integer"
--- Iteration 24 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 25 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 26 --
-string(6) "string"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 27 --
-string(6) "string"
-bool(true)
-int(-1)
-string(7) "integer"
--- Iteration 28 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 29 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 30 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 31 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 32 --
-string(6) "string"
-bool(true)
-int(123)
-string(7) "integer"
--- Iteration 33 --
-string(6) "string"
-bool(true)
-int(123)
-string(7) "integer"
--- Iteration 34 --
-string(6) "string"
-bool(true)
-int(-123)
-string(7) "integer"
--- Iteration 35 --
-string(6) "string"
-bool(true)
-int(123)
-string(7) "integer"
--- Iteration 36 --
-string(6) "string"
-bool(true)
-int(-123)
-string(7) "integer"
--- Iteration 37 --
-string(6) "string"
-bool(true)
-int(123)
-string(7) "integer"
--- Iteration 38 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 39 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 40 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 41 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 42 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 43 --
-string(5) "array"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 44 --
-string(5) "array"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 45 --
-string(5) "array"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 46 --
-string(5) "array"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 47 --
-string(5) "array"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 48 --
-string(6) "double"
-bool(true)
-int(-2147483648)
-string(7) "integer"
--- Iteration 49 --
-string(7) "integer"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 50 --
-string(6) "double"
-bool(true)
-int(-2147483647)
-string(7) "integer"
--- Iteration 51 --
-string(6) "double"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 52 --
-string(7) "integer"
-bool(true)
-int(85)
-string(7) "integer"
--- Iteration 53 --
-string(6) "double"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 54 --
-string(7) "integer"
-bool(true)
-int(-21903)
-string(7) "integer"
--- Iteration 55 --
-string(7) "integer"
-bool(true)
-int(365)
-string(7) "integer"
--- Iteration 56 --
-string(7) "integer"
-bool(true)
-int(-365)
-string(7) "integer"
--- Iteration 57 --
-string(6) "double"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 58 --
-string(6) "double"
-bool(true)
-int(100000)
-string(7) "integer"
--- Iteration 59 --
-string(6) "double"
-bool(true)
-int(-100000)
-string(7) "integer"
--- Iteration 60 --
-string(6) "double"
-bool(true)
-int(100000)
-string(7) "integer"
--- Iteration 61 --
-string(6) "double"
-bool(true)
-int(-100000)
-string(7) "integer"
--- Iteration 62 --
-string(6) "double"
-bool(true)
-int(-1)
-string(7) "integer"
--- Iteration 63 --
-string(6) "double"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 64 --
-string(6) "double"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 65 --
-string(6) "double"
-bool(true)
-int(500000)
-string(7) "integer"
--- Iteration 66 --
-string(6) "double"
-bool(true)
-int(-500000)
-string(7) "integer"
--- Iteration 67 --
-string(6) "double"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 68 --
-string(6) "double"
-bool(true)
-int(500000)
-string(7) "integer"
--- Iteration 69 --
-string(6) "double"
-bool(true)
-int(-500000)
-string(7) "integer"
--- Iteration 70 --
-string(6) "double"
-bool(true)
-int(512000)
-string(7) "integer"
--- Iteration 71 --
-string(6) "double"
-bool(true)
-int(-512000)
-string(7) "integer"
--- Iteration 72 --
-string(6) "double"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 73 --
-string(6) "double"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 74 --
-string(6) "double"
-bool(true)
-int(512000)
-string(7) "integer"
--- Iteration 75 --
-string(6) "double"
-bool(true)
-int(-512000)
-string(7) "integer"
--- Iteration 76 --
-string(6) "object"
-8: Object of class point could not be converted to int
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 77 --
-string(6) "object"
-8: Object of class point could not be converted to int
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 78 --
-string(6) "object"
-8: Object of class point could not be converted to int
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 79 --
-string(4) "NULL"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 80 --
-string(4) "NULL"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 81 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 82 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 83 --
-string(6) "string"
-bool(true)
-int(123)
-string(7) "integer"
--- Iteration 84 --
-string(6) "string"
-bool(true)
-int(-123)
-string(7) "integer"
--- Iteration 85 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 86 --
-string(6) "string"
-bool(true)
-int(0)
-string(7) "integer"
--- Iteration 87 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 88 --
-string(6) "string"
-bool(true)
-int(2147483647)
-string(7) "integer"
--- Iteration 89 --
-string(6) "string"
-bool(true)
-int(1)
-string(7) "integer"
--- Iteration 90 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
--- Iteration 91 --
-string(6) "string"
-bool(true)
-int(10)
-string(7) "integer"
-Done
---UEXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
-8: Undefined variable: unset_var
-8: Undefined variable: undef_var
-
-*** Testing settype() & gettype() : usage variations ***
-
--- Setting type of data to float --
--- Iteration 1 --
-string(4) "NULL"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 2 --
-string(7) "boolean"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 3 --
-string(7) "boolean"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 4 --
-string(7) "boolean"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 5 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 6 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 7 --
-string(6) "string"
-bool(true)
-float(3)
-string(6) "double"
--- Iteration 8 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 9 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 10 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 11 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 12 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 13 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 14 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 15 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 16 --
-string(6) "string"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 17 --
-string(6) "string"
-bool(true)
-float(-1)
-string(6) "double"
--- Iteration 18 --
-string(6) "string"
-bool(true)
-float(100)
-string(6) "double"
--- Iteration 19 --
-string(6) "string"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 20 --
-string(6) "string"
-bool(true)
-float(2.9743947493287E+21)
-string(6) "double"
--- Iteration 21 --
-string(6) "string"
-bool(true)
-float(-0.01)
-string(6) "double"
--- Iteration 22 --
-string(6) "string"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 23 --
-string(6) "string"
-bool(true)
-float(-1)
-string(6) "double"
--- Iteration 24 --
-string(6) "string"
-bool(true)
-float(100)
-string(6) "double"
--- Iteration 25 --
-string(6) "string"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 26 --
-string(6) "string"
-bool(true)
-float(2.9743947493287E+21)
-string(6) "double"
--- Iteration 27 --
-string(6) "string"
-bool(true)
-float(-0.01)
-string(6) "double"
--- Iteration 28 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 29 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 30 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 31 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 32 --
-string(6) "string"
-bool(true)
-float(123)
-string(6) "double"
--- Iteration 33 --
-string(6) "string"
-bool(true)
-float(123)
-string(6) "double"
--- Iteration 34 --
-string(6) "string"
-bool(true)
-float(-123)
-string(6) "double"
--- Iteration 35 --
-string(6) "string"
-bool(true)
-float(123)
-string(6) "double"
--- Iteration 36 --
-string(6) "string"
-bool(true)
-float(-123)
-string(6) "double"
--- Iteration 37 --
-string(6) "string"
-bool(true)
-float(123)
-string(6) "double"
--- Iteration 38 --
-string(6) "string"
-bool(true)
-float(-0)
-string(6) "double"
--- Iteration 39 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 40 --
-string(6) "string"
-bool(true)
-float(-0)
-string(6) "double"
--- Iteration 41 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 42 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 43 --
-string(5) "array"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 44 --
-string(5) "array"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 45 --
-string(5) "array"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 46 --
-string(5) "array"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 47 --
-string(5) "array"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 48 --
-string(6) "double"
-bool(true)
-float(-2147483648)
-string(6) "double"
--- Iteration 49 --
-string(7) "integer"
-bool(true)
-float(2147483647)
-string(6) "double"
--- Iteration 50 --
-string(6) "double"
-bool(true)
-float(2147483649)
-string(6) "double"
--- Iteration 51 --
-string(6) "double"
-bool(true)
-float(1232147483649)
-string(6) "double"
--- Iteration 52 --
-string(7) "integer"
-bool(true)
-float(85)
-string(6) "double"
--- Iteration 53 --
-string(6) "double"
-bool(true)
-float(1058513956921)
-string(6) "double"
--- Iteration 54 --
-string(7) "integer"
-bool(true)
-float(-21903)
-string(6) "double"
--- Iteration 55 --
-string(7) "integer"
-bool(true)
-float(365)
-string(6) "double"
--- Iteration 56 --
-string(7) "integer"
-bool(true)
-float(-365)
-string(6) "double"
--- Iteration 57 --
-string(6) "double"
-bool(true)
-float(80561044571754)
-string(6) "double"
--- Iteration 58 --
-string(6) "double"
-bool(true)
-float(100000)
-string(6) "double"
--- Iteration 59 --
-string(6) "double"
-bool(true)
-float(-100000)
-string(6) "double"
--- Iteration 60 --
-string(6) "double"
-bool(true)
-float(100000)
-string(6) "double"
--- Iteration 61 --
-string(6) "double"
-bool(true)
-float(-100000)
-string(6) "double"
--- Iteration 62 --
-string(6) "double"
-bool(true)
-float(-1.5)
-string(6) "double"
--- Iteration 63 --
-string(6) "double"
-bool(true)
-float(0.5)
-string(6) "double"
--- Iteration 64 --
-string(6) "double"
-bool(true)
-float(-0.5)
-string(6) "double"
--- Iteration 65 --
-string(6) "double"
-bool(true)
-float(500000)
-string(6) "double"
--- Iteration 66 --
-string(6) "double"
-bool(true)
-float(-500000)
-string(6) "double"
--- Iteration 67 --
-string(6) "double"
-bool(true)
-float(-5.0E-7)
-string(6) "double"
--- Iteration 68 --
-string(6) "double"
-bool(true)
-float(500000)
-string(6) "double"
--- Iteration 69 --
-string(6) "double"
-bool(true)
-float(-500000)
-string(6) "double"
--- Iteration 70 --
-string(6) "double"
-bool(true)
-float(512000)
-string(6) "double"
--- Iteration 71 --
-string(6) "double"
-bool(true)
-float(-512000)
-string(6) "double"
--- Iteration 72 --
-string(6) "double"
-bool(true)
-float(5.12E-7)
-string(6) "double"
--- Iteration 73 --
-string(6) "double"
-bool(true)
-float(5.12E-7)
-string(6) "double"
--- Iteration 74 --
-string(6) "double"
-bool(true)
-float(512000)
-string(6) "double"
--- Iteration 75 --
-string(6) "double"
-bool(true)
-float(-512000)
-string(6) "double"
--- Iteration 76 --
-string(6) "object"
-8: Object of class point could not be converted to double
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 77 --
-string(6) "object"
-8: Object of class point could not be converted to double
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 78 --
-string(6) "object"
-8: Object of class point could not be converted to double
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 79 --
-string(4) "NULL"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 80 --
-string(4) "NULL"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 81 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 82 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 83 --
-string(6) "string"
-bool(true)
-float(123)
-string(6) "double"
--- Iteration 84 --
-string(6) "string"
-bool(true)
-float(-123)
-string(6) "double"
--- Iteration 85 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 86 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 87 --
-string(6) "string"
-bool(true)
-float(100)
-string(6) "double"
--- Iteration 88 --
-string(6) "string"
-bool(true)
-float(2.9743947493287E+21)
-string(6) "double"
--- Iteration 89 --
-string(6) "string"
-bool(true)
-float(100)
-string(6) "double"
--- Iteration 90 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 91 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
-
--- Setting type of data to double --
--- Iteration 1 --
-string(4) "NULL"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 2 --
-string(7) "boolean"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 3 --
-string(7) "boolean"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 4 --
-string(7) "boolean"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 5 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 6 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 7 --
-string(6) "string"
-bool(true)
-float(3)
-string(6) "double"
--- Iteration 8 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 9 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 10 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 11 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 12 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 13 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 14 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 15 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 16 --
-string(6) "string"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 17 --
-string(6) "string"
-bool(true)
-float(-1)
-string(6) "double"
--- Iteration 18 --
-string(6) "string"
-bool(true)
-float(100)
-string(6) "double"
--- Iteration 19 --
-string(6) "string"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 20 --
-string(6) "string"
-bool(true)
-float(2.9743947493287E+21)
-string(6) "double"
--- Iteration 21 --
-string(6) "string"
-bool(true)
-float(-0.01)
-string(6) "double"
--- Iteration 22 --
-string(6) "string"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 23 --
-string(6) "string"
-bool(true)
-float(-1)
-string(6) "double"
--- Iteration 24 --
-string(6) "string"
-bool(true)
-float(100)
-string(6) "double"
--- Iteration 25 --
-string(6) "string"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 26 --
-string(6) "string"
-bool(true)
-float(2.9743947493287E+21)
-string(6) "double"
--- Iteration 27 --
-string(6) "string"
-bool(true)
-float(-0.01)
-string(6) "double"
--- Iteration 28 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 29 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 30 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 31 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 32 --
-string(6) "string"
-bool(true)
-float(123)
-string(6) "double"
--- Iteration 33 --
-string(6) "string"
-bool(true)
-float(123)
-string(6) "double"
--- Iteration 34 --
-string(6) "string"
-bool(true)
-float(-123)
-string(6) "double"
--- Iteration 35 --
-string(6) "string"
-bool(true)
-float(123)
-string(6) "double"
--- Iteration 36 --
-string(6) "string"
-bool(true)
-float(-123)
-string(6) "double"
--- Iteration 37 --
-string(6) "string"
-bool(true)
-float(123)
-string(6) "double"
--- Iteration 38 --
-string(6) "string"
-bool(true)
-float(-0)
-string(6) "double"
--- Iteration 39 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 40 --
-string(6) "string"
-bool(true)
-float(-0)
-string(6) "double"
--- Iteration 41 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 42 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 43 --
-string(5) "array"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 44 --
-string(5) "array"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 45 --
-string(5) "array"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 46 --
-string(5) "array"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 47 --
-string(5) "array"
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 48 --
-string(6) "double"
-bool(true)
-float(-2147483648)
-string(6) "double"
--- Iteration 49 --
-string(7) "integer"
-bool(true)
-float(2147483647)
-string(6) "double"
--- Iteration 50 --
-string(6) "double"
-bool(true)
-float(2147483649)
-string(6) "double"
--- Iteration 51 --
-string(6) "double"
-bool(true)
-float(1232147483649)
-string(6) "double"
--- Iteration 52 --
-string(7) "integer"
-bool(true)
-float(85)
-string(6) "double"
--- Iteration 53 --
-string(6) "double"
-bool(true)
-float(1058513956921)
-string(6) "double"
--- Iteration 54 --
-string(7) "integer"
-bool(true)
-float(-21903)
-string(6) "double"
--- Iteration 55 --
-string(7) "integer"
-bool(true)
-float(365)
-string(6) "double"
--- Iteration 56 --
-string(7) "integer"
-bool(true)
-float(-365)
-string(6) "double"
--- Iteration 57 --
-string(6) "double"
-bool(true)
-float(80561044571754)
-string(6) "double"
--- Iteration 58 --
-string(6) "double"
-bool(true)
-float(100000)
-string(6) "double"
--- Iteration 59 --
-string(6) "double"
-bool(true)
-float(-100000)
-string(6) "double"
--- Iteration 60 --
-string(6) "double"
-bool(true)
-float(100000)
-string(6) "double"
--- Iteration 61 --
-string(6) "double"
-bool(true)
-float(-100000)
-string(6) "double"
--- Iteration 62 --
-string(6) "double"
-bool(true)
-float(-1.5)
-string(6) "double"
--- Iteration 63 --
-string(6) "double"
-bool(true)
-float(0.5)
-string(6) "double"
--- Iteration 64 --
-string(6) "double"
-bool(true)
-float(-0.5)
-string(6) "double"
--- Iteration 65 --
-string(6) "double"
-bool(true)
-float(500000)
-string(6) "double"
--- Iteration 66 --
-string(6) "double"
-bool(true)
-float(-500000)
-string(6) "double"
--- Iteration 67 --
-string(6) "double"
-bool(true)
-float(-5.0E-7)
-string(6) "double"
--- Iteration 68 --
-string(6) "double"
-bool(true)
-float(500000)
-string(6) "double"
--- Iteration 69 --
-string(6) "double"
-bool(true)
-float(-500000)
-string(6) "double"
--- Iteration 70 --
-string(6) "double"
-bool(true)
-float(512000)
-string(6) "double"
--- Iteration 71 --
-string(6) "double"
-bool(true)
-float(-512000)
-string(6) "double"
--- Iteration 72 --
-string(6) "double"
-bool(true)
-float(5.12E-7)
-string(6) "double"
--- Iteration 73 --
-string(6) "double"
-bool(true)
-float(5.12E-7)
-string(6) "double"
--- Iteration 74 --
-string(6) "double"
-bool(true)
-float(512000)
-string(6) "double"
--- Iteration 75 --
-string(6) "double"
-bool(true)
-float(-512000)
-string(6) "double"
--- Iteration 76 --
-string(6) "object"
-8: Object of class point could not be converted to double
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 77 --
-string(6) "object"
-8: Object of class point could not be converted to double
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 78 --
-string(6) "object"
-8: Object of class point could not be converted to double
-bool(true)
-float(1)
-string(6) "double"
--- Iteration 79 --
-string(4) "NULL"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 80 --
-string(4) "NULL"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 81 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 82 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 83 --
-string(6) "string"
-bool(true)
-float(123)
-string(6) "double"
--- Iteration 84 --
-string(6) "string"
-bool(true)
-float(-123)
-string(6) "double"
--- Iteration 85 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 86 --
-string(6) "string"
-bool(true)
-float(0)
-string(6) "double"
--- Iteration 87 --
-string(6) "string"
-bool(true)
-float(100)
-string(6) "double"
--- Iteration 88 --
-string(6) "string"
-bool(true)
-float(2.9743947493287E+21)
-string(6) "double"
--- Iteration 89 --
-string(6) "string"
-bool(true)
-float(100)
-string(6) "double"
--- Iteration 90 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
--- Iteration 91 --
-string(6) "string"
-bool(true)
-float(10)
-string(6) "double"
-Done
---UEXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
b"10string"
);
-// test conversion to these types
+// test conversion to these types
$types = array(
"boolean",
"bool"
echo "Done\n";
?>
---EXPECTF--
-8: Undefined variable: unset_var
-8: Undefined variable: undef_var
-
-*** Testing settype() & gettype() : usage variations ***
-
--- Setting type of data to boolean --
--- Iteration 1 --
-string(4) "NULL"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 2 --
-string(7) "boolean"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 3 --
-string(7) "boolean"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 4 --
-string(7) "boolean"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 5 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 6 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 7 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 8 --
-string(6) "string"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 9 --
-string(6) "string"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 10 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 11 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 12 --
-string(6) "string"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 13 --
-string(6) "string"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 14 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 15 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 16 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 17 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 18 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 19 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 20 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 21 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 22 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 23 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 24 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 25 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 26 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 27 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 28 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 29 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 30 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 31 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 32 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 33 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 34 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 35 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 36 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 37 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 38 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 39 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 40 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 41 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 42 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 43 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 44 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 45 --
-string(5) "array"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 46 --
-string(5) "array"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 47 --
-string(5) "array"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 48 --
-string(5) "array"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 49 --
-string(5) "array"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 50 --
-string(7) "integer"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 51 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 52 --
-string(7) "integer"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 53 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 54 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 55 --
-string(7) "integer"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 56 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 57 --
-string(7) "integer"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 58 --
-string(7) "integer"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 59 --
-string(7) "integer"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 60 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 61 --
-string(6) "double"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 62 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 63 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 64 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 65 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 66 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 67 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 68 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 69 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 70 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 71 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 72 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 73 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 74 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 75 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 76 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 77 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 78 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 79 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 80 --
-string(6) "object"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 81 --
-string(6) "object"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 82 --
-string(6) "object"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 83 --
-string(6) "object"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 84 --
-string(4) "NULL"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 85 --
-string(4) "NULL"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 86 --
-string(6) "string"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 87 --
-string(6) "string"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 88 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 89 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 90 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 91 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 92 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 93 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 94 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 95 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 96 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 97 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 98 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
-
--- Setting type of data to bool --
--- Iteration 1 --
-string(4) "NULL"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 2 --
-string(7) "boolean"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 3 --
-string(7) "boolean"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 4 --
-string(7) "boolean"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 5 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 6 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 7 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 8 --
-string(6) "string"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 9 --
-string(6) "string"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 10 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 11 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 12 --
-string(6) "string"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 13 --
-string(6) "string"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 14 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 15 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 16 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 17 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 18 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 19 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 20 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 21 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 22 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 23 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 24 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 25 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 26 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 27 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 28 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 29 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 30 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 31 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 32 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 33 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 34 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 35 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 36 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 37 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 38 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 39 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 40 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 41 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 42 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 43 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 44 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 45 --
-string(5) "array"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 46 --
-string(5) "array"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 47 --
-string(5) "array"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 48 --
-string(5) "array"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 49 --
-string(5) "array"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 50 --
-string(7) "integer"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 51 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 52 --
-string(7) "integer"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 53 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 54 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 55 --
-string(7) "integer"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 56 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 57 --
-string(7) "integer"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 58 --
-string(7) "integer"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 59 --
-string(7) "integer"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 60 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 61 --
-string(6) "double"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 62 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 63 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 64 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 65 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 66 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 67 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 68 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 69 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 70 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 71 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 72 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 73 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 74 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 75 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 76 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 77 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 78 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 79 --
-string(6) "double"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 80 --
-string(6) "object"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 81 --
-string(6) "object"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 82 --
-string(6) "object"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 83 --
-string(6) "object"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 84 --
-string(4) "NULL"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 85 --
-string(4) "NULL"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 86 --
-string(6) "string"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 87 --
-string(6) "string"
-bool(true)
-bool(false)
-string(7) "boolean"
--- Iteration 88 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 89 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 90 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 91 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 92 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 93 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 94 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 95 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 96 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 97 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
--- Iteration 98 --
-string(6) "string"
-bool(true)
-bool(true)
-string(7) "boolean"
-Done
---UEXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
-8: Undefined variable: unset_var
-8: Undefined variable: undef_var
-
-*** Testing gettype() & settype() functions : usage variations ***
-
--- Setting type of data to resource --
--- Iteration 1 --
-string(4) "NULL"
-2: settype(): Cannot convert to resource type
-bool(false)
-NULL
-string(4) "NULL"
--- Iteration 2 --
-string(7) "boolean"
-2: settype(): Cannot convert to resource type
-bool(false)
-bool(false)
-string(7) "boolean"
--- Iteration 3 --
-string(7) "boolean"
-2: settype(): Cannot convert to resource type
-bool(false)
-bool(true)
-string(7) "boolean"
--- Iteration 4 --
-string(7) "boolean"
-2: settype(): Cannot convert to resource type
-bool(false)
-bool(true)
-string(7) "boolean"
--- Iteration 5 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(1) "ÿ"
-string(6) "string"
--- Iteration 6 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(1) "f"
-string(6) "string"
--- Iteration 7 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(2) "
-3"
-string(6) "string"
--- Iteration 8 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(0) ""
-string(6) "string"
--- Iteration 9 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(0) ""
-string(6) "string"
--- Iteration 10 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(1) " "
-string(6) "string"
--- Iteration 11 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(1) " "
-string(6) "string"
--- Iteration 12 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(2) "10"
-string(6) "string"
--- Iteration 13 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(2) "10"
-string(6) "string"
--- Iteration 14 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(8) "10string"
-string(6) "string"
--- Iteration 15 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(8) "10string"
-string(6) "string"
--- Iteration 16 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(1) "1"
-string(6) "string"
--- Iteration 17 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(2) "-1"
-string(6) "string"
--- Iteration 18 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(3) "1e2"
-string(6) "string"
--- Iteration 19 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(2) " 1"
-string(6) "string"
--- Iteration 20 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(22) "2974394749328742328432"
-string(6) "string"
--- Iteration 21 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(5) "-1e-2"
-string(6) "string"
--- Iteration 22 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(1) "1"
-string(6) "string"
--- Iteration 23 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(2) "-1"
-string(6) "string"
--- Iteration 24 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(3) "1e2"
-string(6) "string"
--- Iteration 25 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(2) " 1"
-string(6) "string"
--- Iteration 26 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(22) "2974394749328742328432"
-string(6) "string"
--- Iteration 27 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(5) "-1e-2"
-string(6) "string"
--- Iteration 28 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(4) "0xff"
-string(6) "string"
--- Iteration 29 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(4) "0x55"
-string(6) "string"
--- Iteration 30 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(5) "0XA55"
-string(6) "string"
--- Iteration 31 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(5) "0X123"
-string(6) "string"
--- Iteration 32 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(4) "0123"
-string(6) "string"
--- Iteration 33 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(4) "0123"
-string(6) "string"
--- Iteration 34 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(5) "-0123"
-string(6) "string"
--- Iteration 35 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(5) "+0123"
-string(6) "string"
--- Iteration 36 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(5) "-0123"
-string(6) "string"
--- Iteration 37 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(5) "+0123"
-string(6) "string"
--- Iteration 38 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(8) "-0x80001"
-string(6) "string"
--- Iteration 39 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(8) "+0x80001"
-string(6) "string"
--- Iteration 40 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(10) "-0x80001.5"
-string(6) "string"
--- Iteration 41 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(9) "0x80001.5"
-string(6) "string"
--- Iteration 42 --
-string(6) "string"
-2: settype(): Cannot convert to resource type
-bool(false)
-string(12) "@$%#$%^$%^&^"
-string(6) "string"
--- Iteration 43 --
-string(5) "array"
-2: settype(): Cannot convert to resource type
-bool(false)
-array(0) {
-}
-string(5) "array"
--- Iteration 44 --
-string(5) "array"
-2: settype(): Cannot convert to resource type
-bool(false)
-array(1) {
- [0]=>
- NULL
-}
-string(5) "array"
--- Iteration 45 --
-string(5) "array"
-2: settype(): Cannot convert to resource type
-bool(false)
-array(4) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
- [3]=>
- int(4)
-}
-string(5) "array"
--- Iteration 46 --
-string(5) "array"
-2: settype(): Cannot convert to resource type
-bool(false)
-array(4) {
- [1]=>
- string(3) "one"
- [2]=>
- string(3) "two"
- [3]=>
- string(5) "three"
- ["four"]=>
- int(4)
-}
-string(5) "array"
--- Iteration 47 --
-string(5) "array"
-2: settype(): Cannot convert to resource type
-bool(false)
-array(3) {
- [0]=>
- float(1.5)
- [1]=>
- float(2.4)
- [2]=>
- float(6500000)
-}
-string(5) "array"
--- Iteration 48 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(-2147483648)
-string(6) "double"
--- Iteration 49 --
-string(7) "integer"
-2: settype(): Cannot convert to resource type
-bool(false)
-int(2147483647)
-string(7) "integer"
--- Iteration 50 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(2147483649)
-string(6) "double"
--- Iteration 51 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(1232147483649)
-string(6) "double"
--- Iteration 52 --
-string(7) "integer"
-2: settype(): Cannot convert to resource type
-bool(false)
-int(85)
-string(7) "integer"
--- Iteration 53 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(1058513956921)
-string(6) "double"
--- Iteration 54 --
-string(7) "integer"
-2: settype(): Cannot convert to resource type
-bool(false)
-int(-21903)
-string(7) "integer"
--- Iteration 55 --
-string(7) "integer"
-2: settype(): Cannot convert to resource type
-bool(false)
-int(365)
-string(7) "integer"
--- Iteration 56 --
-string(7) "integer"
-2: settype(): Cannot convert to resource type
-bool(false)
-int(-365)
-string(7) "integer"
--- Iteration 57 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(80561044571754)
-string(6) "double"
--- Iteration 58 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(100000)
-string(6) "double"
--- Iteration 59 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(-100000)
-string(6) "double"
--- Iteration 60 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(100000)
-string(6) "double"
--- Iteration 61 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(-100000)
-string(6) "double"
--- Iteration 62 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(-1.5)
-string(6) "double"
--- Iteration 63 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(0.5)
-string(6) "double"
--- Iteration 64 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(-0.5)
-string(6) "double"
--- Iteration 65 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(500000)
-string(6) "double"
--- Iteration 66 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(-500000)
-string(6) "double"
--- Iteration 67 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(-5.0E-7)
-string(6) "double"
--- Iteration 68 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(500000)
-string(6) "double"
--- Iteration 69 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(-500000)
-string(6) "double"
--- Iteration 70 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(512000)
-string(6) "double"
--- Iteration 71 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(-512000)
-string(6) "double"
--- Iteration 72 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(5.12E-7)
-string(6) "double"
--- Iteration 73 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(5.12E-7)
-string(6) "double"
--- Iteration 74 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(512000)
-string(6) "double"
--- Iteration 75 --
-string(6) "double"
-2: settype(): Cannot convert to resource type
-bool(false)
-float(-512000)
-string(6) "double"
--- Iteration 76 --
-string(6) "object"
-2: settype(): Cannot convert to resource type
-bool(false)
-object(point)#1 (2) {
- ["x"]=>
- NULL
- ["y"]=>
- NULL
-}
-string(6) "object"
--- Iteration 77 --
-string(6) "object"
-2: settype(): Cannot convert to resource type
-bool(false)
-object(point)#2 (2) {
- ["x"]=>
- float(2.5)
- ["y"]=>
- float(40.5)
-}
-string(6) "object"
--- Iteration 78 --
-string(6) "object"
-2: settype(): Cannot convert to resource type
-bool(false)
-object(point)#3 (2) {
- ["x"]=>
- int(0)
- ["y"]=>
- int(0)
-}
-string(6) "object"
--- Iteration 79 --
-string(4) "NULL"
-2: settype(): Cannot convert to resource type
-bool(false)
-NULL
-string(4) "NULL"
--- Iteration 80 --
-string(4) "NULL"
-2: settype(): Cannot convert to resource type
-bool(false)
-NULL
-string(4) "NULL"
-Done
-
---UEXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
-8: Undefined variable: unset_var
-8: Undefined variable: undef_var
-
-*** Testing gettype() & settype() functions : usage variations ***
-
--- Setting type of data to array --
--- Iteration 1 --
-string(4) "NULL"
-bool(true)
-array(0) {
-}
-string(5) "array"
--- Iteration 2 --
-string(7) "boolean"
-bool(true)
-array(1) {
- [0]=>
- bool(false)
-}
-string(5) "array"
--- Iteration 3 --
-string(7) "boolean"
-bool(true)
-array(1) {
- [0]=>
- bool(true)
-}
-string(5) "array"
--- Iteration 4 --
-string(7) "boolean"
-bool(true)
-array(1) {
- [0]=>
- bool(true)
-}
-string(5) "array"
--- Iteration 5 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(1) "ÿ"
-}
-string(5) "array"
--- Iteration 6 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(1) "f"
-}
-string(5) "array"
--- Iteration 7 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(2) "
-3"
-}
-string(5) "array"
--- Iteration 8 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(0) ""
-}
-string(5) "array"
--- Iteration 9 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(0) ""
-}
-string(5) "array"
--- Iteration 10 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(1) " "
-}
-string(5) "array"
--- Iteration 11 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(1) " "
-}
-string(5) "array"
--- Iteration 12 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(2) "10"
-}
-string(5) "array"
--- Iteration 13 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(2) "10"
-}
-string(5) "array"
--- Iteration 14 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(8) "10string"
-}
-string(5) "array"
--- Iteration 15 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(8) "10string"
-}
-string(5) "array"
--- Iteration 16 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(1) "1"
-}
-string(5) "array"
--- Iteration 17 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(2) "-1"
-}
-string(5) "array"
--- Iteration 18 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(3) "1e2"
-}
-string(5) "array"
--- Iteration 19 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(2) " 1"
-}
-string(5) "array"
--- Iteration 20 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(22) "2974394749328742328432"
-}
-string(5) "array"
--- Iteration 21 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(5) "-1e-2"
-}
-string(5) "array"
--- Iteration 22 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(1) "1"
-}
-string(5) "array"
--- Iteration 23 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(2) "-1"
-}
-string(5) "array"
--- Iteration 24 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(3) "1e2"
-}
-string(5) "array"
--- Iteration 25 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(2) " 1"
-}
-string(5) "array"
--- Iteration 26 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(22) "2974394749328742328432"
-}
-string(5) "array"
--- Iteration 27 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(5) "-1e-2"
-}
-string(5) "array"
--- Iteration 28 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(4) "0xff"
-}
-string(5) "array"
--- Iteration 29 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(4) "0x55"
-}
-string(5) "array"
--- Iteration 30 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(5) "0XA55"
-}
-string(5) "array"
--- Iteration 31 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(5) "0X123"
-}
-string(5) "array"
--- Iteration 32 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(4) "0123"
-}
-string(5) "array"
--- Iteration 33 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(4) "0123"
-}
-string(5) "array"
--- Iteration 34 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(5) "-0123"
-}
-string(5) "array"
--- Iteration 35 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(5) "+0123"
-}
-string(5) "array"
--- Iteration 36 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(5) "-0123"
-}
-string(5) "array"
--- Iteration 37 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(5) "+0123"
-}
-string(5) "array"
--- Iteration 38 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(8) "-0x80001"
-}
-string(5) "array"
--- Iteration 39 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(8) "+0x80001"
-}
-string(5) "array"
--- Iteration 40 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(10) "-0x80001.5"
-}
-string(5) "array"
--- Iteration 41 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(9) "0x80001.5"
-}
-string(5) "array"
--- Iteration 42 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(12) "@$%#$%^$%^&^"
-}
-string(5) "array"
--- Iteration 43 --
-string(5) "array"
-bool(true)
-array(0) {
-}
-string(5) "array"
--- Iteration 44 --
-string(5) "array"
-bool(true)
-array(1) {
- [0]=>
- NULL
-}
-string(5) "array"
--- Iteration 45 --
-string(5) "array"
-bool(true)
-array(4) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
- [3]=>
- int(4)
-}
-string(5) "array"
--- Iteration 46 --
-string(5) "array"
-bool(true)
-array(4) {
- [1]=>
- string(3) "one"
- [2]=>
- string(3) "two"
- [3]=>
- string(5) "three"
- ["four"]=>
- int(4)
-}
-string(5) "array"
--- Iteration 47 --
-string(5) "array"
-bool(true)
-array(3) {
- [0]=>
- float(1.5)
- [1]=>
- float(2.4)
- [2]=>
- float(6500000)
-}
-string(5) "array"
--- Iteration 48 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(-2147483648)
-}
-string(5) "array"
--- Iteration 49 --
-string(7) "integer"
-bool(true)
-array(1) {
- [0]=>
- int(2147483647)
-}
-string(5) "array"
--- Iteration 50 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(2147483649)
-}
-string(5) "array"
--- Iteration 51 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(1232147483649)
-}
-string(5) "array"
--- Iteration 52 --
-string(7) "integer"
-bool(true)
-array(1) {
- [0]=>
- int(85)
-}
-string(5) "array"
--- Iteration 53 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(1058513956921)
-}
-string(5) "array"
--- Iteration 54 --
-string(7) "integer"
-bool(true)
-array(1) {
- [0]=>
- int(-21903)
-}
-string(5) "array"
--- Iteration 55 --
-string(7) "integer"
-bool(true)
-array(1) {
- [0]=>
- int(365)
-}
-string(5) "array"
--- Iteration 56 --
-string(7) "integer"
-bool(true)
-array(1) {
- [0]=>
- int(-365)
-}
-string(5) "array"
--- Iteration 57 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(80561044571754)
-}
-string(5) "array"
--- Iteration 58 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(100000)
-}
-string(5) "array"
--- Iteration 59 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(-100000)
-}
-string(5) "array"
--- Iteration 60 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(100000)
-}
-string(5) "array"
--- Iteration 61 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(-100000)
-}
-string(5) "array"
--- Iteration 62 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(-1.5)
-}
-string(5) "array"
--- Iteration 63 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(0.5)
-}
-string(5) "array"
--- Iteration 64 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(-0.5)
-}
-string(5) "array"
--- Iteration 65 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(500000)
-}
-string(5) "array"
--- Iteration 66 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(-500000)
-}
-string(5) "array"
--- Iteration 67 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(-5.0E-7)
-}
-string(5) "array"
--- Iteration 68 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(500000)
-}
-string(5) "array"
--- Iteration 69 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(-500000)
-}
-string(5) "array"
--- Iteration 70 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(512000)
-}
-string(5) "array"
--- Iteration 71 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(-512000)
-}
-string(5) "array"
--- Iteration 72 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(5.12E-7)
-}
-string(5) "array"
--- Iteration 73 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(5.12E-7)
-}
-string(5) "array"
--- Iteration 74 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(512000)
-}
-string(5) "array"
--- Iteration 75 --
-string(6) "double"
-bool(true)
-array(1) {
- [0]=>
- float(-512000)
-}
-string(5) "array"
--- Iteration 76 --
-string(6) "object"
-bool(true)
-array(2) {
- ["x"]=>
- NULL
- ["y"]=>
- NULL
-}
-string(5) "array"
--- Iteration 77 --
-string(6) "object"
-bool(true)
-array(2) {
- ["x"]=>
- float(2.5)
- ["y"]=>
- float(40.5)
-}
-string(5) "array"
--- Iteration 78 --
-string(6) "object"
-bool(true)
-array(2) {
- ["x"]=>
- int(0)
- ["y"]=>
- int(0)
-}
-string(5) "array"
--- Iteration 79 --
-string(4) "NULL"
-bool(true)
-array(0) {
-}
-string(5) "array"
--- Iteration 80 --
-string(4) "NULL"
-bool(true)
-array(0) {
-}
-string(5) "array"
--- Iteration 81 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(8) "10string"
-}
-string(5) "array"
--- Iteration 82 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(8) "10string"
-}
-string(5) "array"
--- Iteration 83 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(5) "+0123"
-}
-string(5) "array"
--- Iteration 84 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(5) "-0123"
-}
-string(5) "array"
--- Iteration 85 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(4) "0xff"
-}
-string(5) "array"
--- Iteration 86 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(4) "0x55"
-}
-string(5) "array"
--- Iteration 87 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(3) "1e2"
-}
-string(5) "array"
--- Iteration 88 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(22) "2974394749328742328432"
-}
-string(5) "array"
--- Iteration 89 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(3) "1e2"
-}
-string(5) "array"
--- Iteration 90 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(8) "10string"
-}
-string(5) "array"
--- Iteration 91 --
-string(6) "string"
-bool(true)
-array(1) {
- [0]=>
- string(8) "10string"
-}
-string(5) "array"
-Done
---UEXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
-8: Undefined variable: unset_var
-8: Undefined variable: undef_var
-
-*** Testing gettype() & settype() functions : usage variations ***
-
--- Setting type of data to object --
--- Iteration 1 --
-string(4) "NULL"
-bool(true)
-object(stdClass)#4 (0) {
-}
-string(6) "object"
--- Iteration 2 --
-string(7) "boolean"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- bool(false)
-}
-string(6) "object"
--- Iteration 3 --
-string(7) "boolean"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- bool(true)
-}
-string(6) "object"
--- Iteration 4 --
-string(7) "boolean"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- bool(true)
-}
-string(6) "object"
--- Iteration 5 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(1) "ÿ"
-}
-string(6) "object"
--- Iteration 6 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(1) "f"
-}
-string(6) "object"
--- Iteration 7 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(2) "
-3"
-}
-string(6) "object"
--- Iteration 8 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(0) ""
-}
-string(6) "object"
--- Iteration 9 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(0) ""
-}
-string(6) "object"
--- Iteration 10 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(1) " "
-}
-string(6) "object"
--- Iteration 11 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(1) " "
-}
-string(6) "object"
--- Iteration 12 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(2) "10"
-}
-string(6) "object"
--- Iteration 13 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(2) "10"
-}
-string(6) "object"
--- Iteration 14 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(8) "10string"
-}
-string(6) "object"
--- Iteration 15 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(8) "10string"
-}
-string(6) "object"
--- Iteration 16 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(1) "1"
-}
-string(6) "object"
--- Iteration 17 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(2) "-1"
-}
-string(6) "object"
--- Iteration 18 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(3) "1e2"
-}
-string(6) "object"
--- Iteration 19 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(2) " 1"
-}
-string(6) "object"
--- Iteration 20 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(22) "2974394749328742328432"
-}
-string(6) "object"
--- Iteration 21 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(5) "-1e-2"
-}
-string(6) "object"
--- Iteration 22 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(1) "1"
-}
-string(6) "object"
--- Iteration 23 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(2) "-1"
-}
-string(6) "object"
--- Iteration 24 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(3) "1e2"
-}
-string(6) "object"
--- Iteration 25 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(2) " 1"
-}
-string(6) "object"
--- Iteration 26 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(22) "2974394749328742328432"
-}
-string(6) "object"
--- Iteration 27 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(5) "-1e-2"
-}
-string(6) "object"
--- Iteration 28 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(4) "0xff"
-}
-string(6) "object"
--- Iteration 29 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(4) "0x55"
-}
-string(6) "object"
--- Iteration 30 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(5) "0XA55"
-}
-string(6) "object"
--- Iteration 31 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(5) "0X123"
-}
-string(6) "object"
--- Iteration 32 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(4) "0123"
-}
-string(6) "object"
--- Iteration 33 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(4) "0123"
-}
-string(6) "object"
--- Iteration 34 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(5) "-0123"
-}
-string(6) "object"
--- Iteration 35 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(5) "+0123"
-}
-string(6) "object"
--- Iteration 36 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(5) "-0123"
-}
-string(6) "object"
--- Iteration 37 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(5) "+0123"
-}
-string(6) "object"
--- Iteration 38 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(8) "-0x80001"
-}
-string(6) "object"
--- Iteration 39 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(8) "+0x80001"
-}
-string(6) "object"
--- Iteration 40 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(10) "-0x80001.5"
-}
-string(6) "object"
--- Iteration 41 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(9) "0x80001.5"
-}
-string(6) "object"
--- Iteration 42 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(12) "@$%#$%^$%^&^"
-}
-string(6) "object"
--- Iteration 43 --
-string(5) "array"
-bool(true)
-object(stdClass)#4 (0) {
-}
-string(6) "object"
--- Iteration 44 --
-string(5) "array"
-bool(true)
-object(stdClass)#4 (1) {
- [0]=>
- NULL
-}
-string(6) "object"
--- Iteration 45 --
-string(5) "array"
-bool(true)
-object(stdClass)#4 (4) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
- [3]=>
- int(4)
-}
-string(6) "object"
--- Iteration 46 --
-string(5) "array"
-bool(true)
-object(stdClass)#4 (4) {
- [1]=>
- string(3) "one"
- [2]=>
- string(3) "two"
- [3]=>
- string(5) "three"
- ["four"]=>
- int(4)
-}
-string(6) "object"
--- Iteration 47 --
-string(5) "array"
-bool(true)
-object(stdClass)#4 (3) {
- [0]=>
- float(1.5)
- [1]=>
- float(2.4)
- [2]=>
- float(6500000)
-}
-string(6) "object"
--- Iteration 48 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(-2147483648)
-}
-string(6) "object"
--- Iteration 49 --
-string(7) "integer"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- int(2147483647)
-}
-string(6) "object"
--- Iteration 50 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(2147483649)
-}
-string(6) "object"
--- Iteration 51 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(1232147483649)
-}
-string(6) "object"
--- Iteration 52 --
-string(7) "integer"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- int(85)
-}
-string(6) "object"
--- Iteration 53 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(1058513956921)
-}
-string(6) "object"
--- Iteration 54 --
-string(7) "integer"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- int(-21903)
-}
-string(6) "object"
--- Iteration 55 --
-string(7) "integer"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- int(365)
-}
-string(6) "object"
--- Iteration 56 --
-string(7) "integer"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- int(-365)
-}
-string(6) "object"
--- Iteration 57 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(80561044571754)
-}
-string(6) "object"
--- Iteration 58 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(100000)
-}
-string(6) "object"
--- Iteration 59 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(-100000)
-}
-string(6) "object"
--- Iteration 60 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(100000)
-}
-string(6) "object"
--- Iteration 61 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(-100000)
-}
-string(6) "object"
--- Iteration 62 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(-1.5)
-}
-string(6) "object"
--- Iteration 63 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(0.5)
-}
-string(6) "object"
--- Iteration 64 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(-0.5)
-}
-string(6) "object"
--- Iteration 65 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(500000)
-}
-string(6) "object"
--- Iteration 66 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(-500000)
-}
-string(6) "object"
--- Iteration 67 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(-5.0E-7)
-}
-string(6) "object"
--- Iteration 68 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(500000)
-}
-string(6) "object"
--- Iteration 69 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(-500000)
-}
-string(6) "object"
--- Iteration 70 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(512000)
-}
-string(6) "object"
--- Iteration 71 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(-512000)
-}
-string(6) "object"
--- Iteration 72 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(5.12E-7)
-}
-string(6) "object"
--- Iteration 73 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(5.12E-7)
-}
-string(6) "object"
--- Iteration 74 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(512000)
-}
-string(6) "object"
--- Iteration 75 --
-string(6) "double"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- float(-512000)
-}
-string(6) "object"
--- Iteration 76 --
-string(6) "object"
-bool(true)
-object(point)#1 (2) {
- ["x"]=>
- NULL
- ["y"]=>
- NULL
-}
-string(6) "object"
--- Iteration 77 --
-string(6) "object"
-bool(true)
-object(point)#2 (2) {
- ["x"]=>
- float(2.5)
- ["y"]=>
- float(40.5)
-}
-string(6) "object"
--- Iteration 78 --
-string(6) "object"
-bool(true)
-object(point)#3 (2) {
- ["x"]=>
- int(0)
- ["y"]=>
- int(0)
-}
-string(6) "object"
--- Iteration 79 --
-string(4) "NULL"
-bool(true)
-object(stdClass)#4 (0) {
-}
-string(6) "object"
--- Iteration 80 --
-string(4) "NULL"
-bool(true)
-object(stdClass)#4 (0) {
-}
-string(6) "object"
--- Iteration 81 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(8) "10string"
-}
-string(6) "object"
--- Iteration 82 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(8) "10string"
-}
-string(6) "object"
--- Iteration 83 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(5) "+0123"
-}
-string(6) "object"
--- Iteration 84 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(5) "-0123"
-}
-string(6) "object"
--- Iteration 85 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(4) "0xff"
-}
-string(6) "object"
--- Iteration 86 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(4) "0x55"
-}
-string(6) "object"
--- Iteration 87 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(3) "1e2"
-}
-string(6) "object"
--- Iteration 88 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(22) "2974394749328742328432"
-}
-string(6) "object"
--- Iteration 89 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(3) "1e2"
-}
-string(6) "object"
--- Iteration 90 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(8) "10string"
-}
-string(6) "object"
--- Iteration 91 --
-string(6) "string"
-bool(true)
-object(stdClass)#4 (1) {
- ["scalar"]=>
- string(8) "10string"
-}
-string(6) "object"
-Done
---UEXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
-8: Undefined variable: unset_var
-8: Undefined variable: undef_var
-
-*** Testing gettype() & settype() functions : usage variations ***
-
--- Setting type of data to string --
--- Iteration 1 --
-string(4) "NULL"
-bool(true)
-string(0) ""
-string(6) "string"
--- Iteration 2 --
-string(7) "boolean"
-bool(true)
-string(0) ""
-string(6) "string"
--- Iteration 3 --
-string(7) "boolean"
-bool(true)
-string(1) "1"
-string(6) "string"
--- Iteration 4 --
-string(7) "boolean"
-bool(true)
-string(1) "1"
-string(6) "string"
--- Iteration 5 --
-string(6) "string"
-bool(true)
-string(1) "ÿ"
-string(6) "string"
--- Iteration 6 --
-string(6) "string"
-bool(true)
-string(1) "f"
-string(6) "string"
--- Iteration 7 --
-string(6) "string"
-bool(true)
-string(2) "
-3"
-string(6) "string"
--- Iteration 8 --
-string(6) "string"
-bool(true)
-string(0) ""
-string(6) "string"
--- Iteration 9 --
-string(6) "string"
-bool(true)
-string(0) ""
-string(6) "string"
--- Iteration 10 --
-string(6) "string"
-bool(true)
-string(1) " "
-string(6) "string"
--- Iteration 11 --
-string(6) "string"
-bool(true)
-string(1) " "
-string(6) "string"
--- Iteration 12 --
-string(6) "string"
-bool(true)
-string(2) "10"
-string(6) "string"
--- Iteration 13 --
-string(6) "string"
-bool(true)
-string(2) "10"
-string(6) "string"
--- Iteration 14 --
-string(6) "string"
-bool(true)
-string(8) "10string"
-string(6) "string"
--- Iteration 15 --
-string(6) "string"
-bool(true)
-string(8) "10string"
-string(6) "string"
--- Iteration 16 --
-string(6) "string"
-bool(true)
-string(1) "1"
-string(6) "string"
--- Iteration 17 --
-string(6) "string"
-bool(true)
-string(2) "-1"
-string(6) "string"
--- Iteration 18 --
-string(6) "string"
-bool(true)
-string(3) "1e2"
-string(6) "string"
--- Iteration 19 --
-string(6) "string"
-bool(true)
-string(2) " 1"
-string(6) "string"
--- Iteration 20 --
-string(6) "string"
-bool(true)
-string(22) "2974394749328742328432"
-string(6) "string"
--- Iteration 21 --
-string(6) "string"
-bool(true)
-string(5) "-1e-2"
-string(6) "string"
--- Iteration 22 --
-string(6) "string"
-bool(true)
-string(1) "1"
-string(6) "string"
--- Iteration 23 --
-string(6) "string"
-bool(true)
-string(2) "-1"
-string(6) "string"
--- Iteration 24 --
-string(6) "string"
-bool(true)
-string(3) "1e2"
-string(6) "string"
--- Iteration 25 --
-string(6) "string"
-bool(true)
-string(2) " 1"
-string(6) "string"
--- Iteration 26 --
-string(6) "string"
-bool(true)
-string(22) "2974394749328742328432"
-string(6) "string"
--- Iteration 27 --
-string(6) "string"
-bool(true)
-string(5) "-1e-2"
-string(6) "string"
--- Iteration 28 --
-string(6) "string"
-bool(true)
-string(4) "0xff"
-string(6) "string"
--- Iteration 29 --
-string(6) "string"
-bool(true)
-string(4) "0x55"
-string(6) "string"
--- Iteration 30 --
-string(6) "string"
-bool(true)
-string(5) "0XA55"
-string(6) "string"
--- Iteration 31 --
-string(6) "string"
-bool(true)
-string(5) "0X123"
-string(6) "string"
--- Iteration 32 --
-string(6) "string"
-bool(true)
-string(4) "0123"
-string(6) "string"
--- Iteration 33 --
-string(6) "string"
-bool(true)
-string(4) "0123"
-string(6) "string"
--- Iteration 34 --
-string(6) "string"
-bool(true)
-string(5) "-0123"
-string(6) "string"
--- Iteration 35 --
-string(6) "string"
-bool(true)
-string(5) "+0123"
-string(6) "string"
--- Iteration 36 --
-string(6) "string"
-bool(true)
-string(5) "-0123"
-string(6) "string"
--- Iteration 37 --
-string(6) "string"
-bool(true)
-string(5) "+0123"
-string(6) "string"
--- Iteration 38 --
-string(6) "string"
-bool(true)
-string(8) "-0x80001"
-string(6) "string"
--- Iteration 39 --
-string(6) "string"
-bool(true)
-string(8) "+0x80001"
-string(6) "string"
--- Iteration 40 --
-string(6) "string"
-bool(true)
-string(10) "-0x80001.5"
-string(6) "string"
--- Iteration 41 --
-string(6) "string"
-bool(true)
-string(9) "0x80001.5"
-string(6) "string"
--- Iteration 42 --
-string(6) "string"
-bool(true)
-string(12) "@$%#$%^$%^&^"
-string(6) "string"
--- Iteration 43 --
-string(5) "array"
-8: Array to string conversion
-bool(true)
-string(5) "Array"
-string(6) "string"
--- Iteration 44 --
-string(5) "array"
-8: Array to string conversion
-bool(true)
-string(5) "Array"
-string(6) "string"
--- Iteration 45 --
-string(5) "array"
-8: Array to string conversion
-bool(true)
-string(5) "Array"
-string(6) "string"
--- Iteration 46 --
-string(5) "array"
-8: Array to string conversion
-bool(true)
-string(5) "Array"
-string(6) "string"
--- Iteration 47 --
-string(5) "array"
-8: Array to string conversion
-bool(true)
-string(5) "Array"
-string(6) "string"
--- Iteration 48 --
-string(6) "double"
-bool(true)
-string(11) "-2147483648"
-string(6) "string"
--- Iteration 49 --
-string(7) "integer"
-bool(true)
-string(10) "2147483647"
-string(6) "string"
--- Iteration 50 --
-string(6) "double"
-bool(true)
-string(10) "2147483649"
-string(6) "string"
--- Iteration 51 --
-string(6) "double"
-bool(true)
-string(13) "1232147483649"
-string(6) "string"
--- Iteration 52 --
-string(7) "integer"
-bool(true)
-string(2) "85"
-string(6) "string"
--- Iteration 53 --
-string(6) "double"
-bool(true)
-string(13) "1058513956921"
-string(6) "string"
--- Iteration 54 --
-string(7) "integer"
-bool(true)
-string(6) "-21903"
-string(6) "string"
--- Iteration 55 --
-string(7) "integer"
-bool(true)
-string(3) "365"
-string(6) "string"
--- Iteration 56 --
-string(7) "integer"
-bool(true)
-string(4) "-365"
-string(6) "string"
--- Iteration 57 --
-string(6) "double"
-bool(true)
-string(14) "80561044571754"
-string(6) "string"
--- Iteration 58 --
-string(6) "double"
-bool(true)
-string(6) "100000"
-string(6) "string"
--- Iteration 59 --
-string(6) "double"
-bool(true)
-string(7) "-100000"
-string(6) "string"
--- Iteration 60 --
-string(6) "double"
-bool(true)
-string(6) "100000"
-string(6) "string"
--- Iteration 61 --
-string(6) "double"
-bool(true)
-string(7) "-100000"
-string(6) "string"
--- Iteration 62 --
-string(6) "double"
-bool(true)
-string(4) "-1.5"
-string(6) "string"
--- Iteration 63 --
-string(6) "double"
-bool(true)
-string(3) "0.5"
-string(6) "string"
--- Iteration 64 --
-string(6) "double"
-bool(true)
-string(4) "-0.5"
-string(6) "string"
--- Iteration 65 --
-string(6) "double"
-bool(true)
-string(6) "500000"
-string(6) "string"
--- Iteration 66 --
-string(6) "double"
-bool(true)
-string(7) "-500000"
-string(6) "string"
--- Iteration 67 --
-string(6) "double"
-bool(true)
-string(7) "-5.0E-7"
-string(6) "string"
--- Iteration 68 --
-string(6) "double"
-bool(true)
-string(6) "500000"
-string(6) "string"
--- Iteration 69 --
-string(6) "double"
-bool(true)
-string(7) "-500000"
-string(6) "string"
--- Iteration 70 --
-string(6) "double"
-bool(true)
-string(6) "512000"
-string(6) "string"
--- Iteration 71 --
-string(6) "double"
-bool(true)
-string(7) "-512000"
-string(6) "string"
--- Iteration 72 --
-string(6) "double"
-bool(true)
-string(7) "5.12E-7"
-string(6) "string"
--- Iteration 73 --
-string(6) "double"
-bool(true)
-string(7) "5.12E-7"
-string(6) "string"
--- Iteration 74 --
-string(6) "double"
-bool(true)
-string(6) "512000"
-string(6) "string"
--- Iteration 75 --
-string(6) "double"
-bool(true)
-string(7) "-512000"
-string(6) "string"
--- Iteration 76 --
-string(6) "object"
-bool(true)
-string(11) "ObjectPoint"
-string(6) "string"
--- Iteration 77 --
-string(6) "object"
-bool(true)
-string(11) "ObjectPoint"
-string(6) "string"
--- Iteration 78 --
-string(6) "object"
-bool(true)
-string(11) "ObjectPoint"
-string(6) "string"
--- Iteration 79 --
-string(4) "NULL"
-bool(true)
-string(0) ""
-string(6) "string"
--- Iteration 80 --
-string(4) "NULL"
-bool(true)
-string(0) ""
-string(6) "string"
--- Iteration 81 --
-string(6) "string"
-bool(true)
-string(8) "10string"
-string(6) "string"
--- Iteration 82 --
-string(6) "string"
-bool(true)
-string(8) "10string"
-string(6) "string"
--- Iteration 83 --
-string(6) "string"
-bool(true)
-string(5) "+0123"
-string(6) "string"
--- Iteration 84 --
-string(6) "string"
-bool(true)
-string(5) "-0123"
-string(6) "string"
--- Iteration 85 --
-string(6) "string"
-bool(true)
-string(4) "0xff"
-string(6) "string"
--- Iteration 86 --
-string(6) "string"
-bool(true)
-string(4) "0x55"
-string(6) "string"
--- Iteration 87 --
-string(6) "string"
-bool(true)
-string(3) "1e2"
-string(6) "string"
--- Iteration 88 --
-string(6) "string"
-bool(true)
-string(22) "2974394749328742328432"
-string(6) "string"
--- Iteration 89 --
-string(6) "string"
-bool(true)
-string(3) "1e2"
-string(6) "string"
--- Iteration 90 --
-string(6) "string"
-bool(true)
-string(8) "10string"
-string(6) "string"
--- Iteration 91 --
-string(6) "string"
-bool(true)
-string(8) "10string"
-string(6) "string"
-Done
---UEXPECT--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
NULL
bool(false)
array(0) {
echo "Done\n";
?>
---EXPECTF--
-Warning: import_request_variables() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-NULL
-
-Notice: import_request_variables(): No prefix specified - possible security hazard in %s on line %d
-NULL
-
-Notice: import_request_variables(): No prefix specified - possible security hazard in %s on line %d
-
-Warning: import_request_variables(): Attempted GLOBALS variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Numeric key detected - possible security hazard in %s on line %d
-NULL
-
-Notice: Undefined variable: ap in %s on line %d
-string(1) "1"
-string(3) "heh"
-string(1) "3"
-NULL
-NULL
-
-Notice: Undefined variable: g_ap in %s on line %d
-string(1) "1"
-string(3) "heh"
-string(1) "3"
-NULL
-string(2) "hm"
-NULL
-string(1) "1"
-string(3) "heh"
-string(1) "3"
-string(2) "25"
-string(4) "test"
-string(5) "blah3"
-array(1) {
- [0]=>
- string(2) "ar"
-}
-NULL
-
-Notice: Undefined variable: r_ap in %s on line %d
-string(1) "1"
-string(3) "heh"
-string(1) "3"
-NULL
-Done
---UEXPECTF--
+--EXPECTF--
Warning: import_request_variables() expects at least 1 parameter, 0 given in %s on line %d
NULL
NULL
Warning: import_request_variables(): Attempted super-global (_FILES) variable overwrite in %s on line %d
-Warning: import_request_variables(): Attempted super-global (_REQUEST) variable overwrite in %s on line %d
-array(5) {
- ["GET"]=>
- string(1) "0"
- ["POST"]=>
- string(1) "1"
- ["COOKIE"]=>
- string(1) "2"
- ["FILES"]=>
- string(1) "3"
- ["REQUEST"]=>
- string(1) "4"
-}
-array(5) {
- ["GET"]=>
- string(1) "5"
- ["POST"]=>
- string(1) "6"
- ["COOKIE"]=>
- string(1) "7"
- ["FILES"]=>
- string(1) "8"
- ["REQUEST"]=>
- string(1) "9"
-}
-array(5) {
- ["GET"]=>
- string(2) "10"
- ["POST"]=>
- string(2) "11"
- ["COOKIE"]=>
- string(2) "12"
- ["FILES"]=>
- string(2) "13"
- ["REQUEST"]=>
- string(2) "14"
-}
-array(0) {
-}
-array(5) {
- ["GET"]=>
- string(1) "5"
- ["POST"]=>
- string(1) "6"
- ["COOKIE"]=>
- string(1) "7"
- ["FILES"]=>
- string(1) "8"
- ["REQUEST"]=>
- string(1) "9"
-}
-Done
---UEXPECTF--
-Warning: import_request_variables(): Attempted super-global (_GET) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_POST) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_COOKIE) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_FILES) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_REQUEST) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_GET) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_POST) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_COOKIE) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_FILES) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_REQUEST) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_GET) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_POST) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_COOKIE) variable overwrite in %s on line %d
-
-Warning: import_request_variables(): Attempted super-global (_FILES) variable overwrite in %s on line %d
-
Warning: import_request_variables(): Attempted super-global (_REQUEST) variable overwrite in %s on line %d
array(5) {
[u"GET"]=>
echo "Done\n";
?>
---EXPECTF--
-string(2) "10"
-string(2) "11"
-string(2) "12"
-string(2) "13"
-string(2) "14"
-Done
---UEXPECTF--
+--EXPECT--
unicode(2) "10"
unicode(2) "11"
unicode(2) "12"
echo "Done\n";
?>
---EXPECTF--
-string(1) "5"
-string(1) "6"
-string(1) "7"
-string(1) "8"
-string(1) "9"
-Done
---UEXPECTF--
+--EXPECT--
unicode(1) "5"
unicode(1) "6"
unicode(1) "7"
echo "Done\n";
?>
---EXPECTF--
-string(1) "."
-
-Warning: get_include_path() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-NULL
-
-Warning: restore_include_path() expects exactly 0 parameters, 1 given in %s on line %d
-NULL
-
-Warning: set_include_path() expects exactly 1 parameter, 0 given in %s on line %d
-NULL
-string(1) "."
-string(1) "."
-string(3) "var"
-NULL
-string(1) "."
-string(1) "."
-string(14) ".:/path/to/dir"
-NULL
-string(1) "."
-string(1) "."
-string(1) "."
-NULL
-string(1) "."
-
-Warning: set_include_path() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d
-NULL
-string(1) "."
-NULL
-string(1) "."
-Done
---UEXPECTF--
+--EXPECTF--
unicode(1) "."
Warning: get_include_path() expects exactly 0 parameters, 1 given in %s on line %d
echo "Done\n";
?>
---EXPECTF--
-string(5) "array"
-
-Warning: ini_get_all(): Unable to find extension '' in %s on line %d
-bool(false)
-
-Warning: ini_get_all(): Unable to find extension 'nosuchextension' in %s on line %d
-bool(false)
-array(0) {
-}
-array(2) {
- ["pcre.backtrack_limit"]=>
- array(3) {
- ["global_value"]=>
- string(6) "100000"
- ["local_value"]=>
- string(6) "100000"
- ["access"]=>
- int(7)
- }
- ["pcre.recursion_limit"]=>
- array(3) {
- ["global_value"]=>
- string(6) "100000"
- ["local_value"]=>
- string(6) "100000"
- ["access"]=>
- int(7)
- }
-}
-array(2) {
- ["pcre.backtrack_limit"]=>
- string(6) "100000"
- ["pcre.recursion_limit"]=>
- string(6) "100000"
-}
-array(0) {
-}
-
-Warning: ini_get_all(): Unable to find extension '' in %sini_get_all.php on line %d
-bool(false)
-Done
---UEXPECTF--
+--EXPECTF--
unicode(5) "array"
Warning: ini_get_all(): Unable to find extension '' in %s on line %d
NULL
--- Done ---
---UEXPECTF--
-*** Testing intval() with valid integer values ***
-
-***Output with default base value ie 10 ***
-int(0)
-int(1)
-int(-1)
-int(-2147483648)
-int(-2147483647)
-int(2147483647)
-int(2147483640)
-int(4667)
-int(0)
-int(0)
-int(0)
-int(-2147483648)
-int(0)
-int(2147483647)
-int(123)
-int(1)
-int(-2147483648)
-int(2147483647)
-
-***Output with base value of 10( explicitly passed as argument) ***
-int(0)
-int(1)
-int(-1)
-int(-2147483648)
-int(-2147483647)
-int(2147483647)
-int(2147483640)
-int(4667)
-int(0)
-int(0)
-int(0)
-int(-2147483648)
-int(0)
-int(2147483647)
-int(123)
-int(1)
-int(-2147483648)
-int(2147483647)
-
-***Output with base value of 16 ***
-int(0)
-int(1)
-int(-1)
-int(-2147483648)
-int(-2147483648)
-int(2147483647)
-int(2147483640)
-int(4667)
-int(4779)
-int(4095)
-int(250)
-int(-2147483648)
-int(2147483647)
-int(2147483647)
-int(291)
-int(1)
-int(-2147483648)
-int(2147483647)
-
-***Output with base value of 8 ***
-int(0)
-int(1)
-int(-1)
-int(-9020)
-int(-9020)
-int(2147483647)
-int(2147483640)
-int(4667)
-int(0)
-int(0)
-int(0)
-int(-2147483648)
-int(0)
-int(2147483647)
-int(83)
-int(1)
-int(-2147483648)
-int(2147483647)
-
-*** Testing intval() on non integer types ***
-int(-2147483648)
-int(2147483647)
-int(0)
-int(0)
-int(2147483647)
-int(-2147483648)
-int(0)
-int(0)
-int(1)
-int(100000)
-int(-1000000)
-int(100000000)
-int(-1000000000)
-int(10)
-int(1050000)
-int(5)
-int(6)
-int(0)
-int(1)
-int(1)
-int(1)
-int(1)
-int(1)
-int(1)
-int(1)
-int(1)
-int(1)
-int(1)
-int(1)
-int(0)
-int(0)
-int(0)
-int(0)
-int(1)
-int(1)
-int(0)
-int(0)
-int(0)
-int(0)
-int(0)
-int(0)
-int(0)
-int(0)
-int(0)
-int(0)
-int(0)
-int(0)
-int(1)
-int(0)
-int(1)
-int(0)
-int(0)
-int(0)
-
-*** Testing error conditions ***
-
-Warning: Wrong parameter count for intval() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for intval() in %s on line %d
-NULL
-
---- Done ---
Warning: is_bool() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Done
-
Warning: is_long() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Done
-
Warning: is_null() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Done
-
echo "Done.\n";
?>
---EXPECTF--
-array(25) {
- ["basic"]=>
- array(15) {
- ["basicval"]=>
- string(3) "bar"
- ["longval"]=>
- string(5) "12345"
- ["with.dot"]=>
- string(7) "fooobar"
- ["boolon"]=>
- string(1) "1"
- ["booltrue"]=>
- string(1) "1"
- ["boolyes"]=>
- string(1) "1"
- ["booloff"]=>
- string(0) ""
- ["boolfalse"]=>
- string(0) ""
- ["boolnone"]=>
- string(0) ""
- ["boolno"]=>
- string(0) ""
- ["string"]=>
- string(34) "asdadfsdjkslkj ¡@£$$ { }[ ]/%#¤"
- ["sqstring"]=>
- string(14) "adsasdadasdasd"
- ["dqstring"]=>
- string(51) "asdadfsdjkslkj ¡@£$$ { } !^~|¥¥{[()/)&/% ¤ # #"
- ["php_constant"]=>
- string(5) "16383"
- ["user_constant"]=>
- string(21) "this_is_test_constant"
- }
- ["basic with whitespace"]=>
- array(13) {
- ["basicval"]=>
- string(3) "bar"
- ["longval"]=>
- string(5) "12345"
- ["with.dot"]=>
- string(7) "fooobar"
- ["boolon"]=>
- string(1) "1"
- ["booltrue"]=>
- string(1) "1"
- ["boolyes"]=>
- string(1) "1"
- ["booloff"]=>
- string(0) ""
- ["boolfalse"]=>
- string(0) ""
- ["boolnone"]=>
- string(0) ""
- ["boolno"]=>
- string(0) ""
- ["sqstring"]=>
- string(14) "adsasdadasdasd"
- ["dqstring"]=>
- string(41) "asdadfsdjkslkj ¡@£$$€¥¥{[()/)&/%#¤"
- ["php_constant"]=>
- string(5) "16383"
- }
- ["comments"]=>
- array(1) {
- ["somecomment"]=>
- string(15) "comment follows"
- }
- ["variables"]=>
- array(8) {
- ["var1"]=>
- string(14) "FUBAR_VARIABLE"
- ["var2"]=>
- string(18) "FUBAR_VARIABLE/foo"
- ["var3"]=>
- string(18) "foo/FUBAR_VARIABLE"
- ["var4"]=>
- string(22) "foo/FUBAR_VARIABLE/foo"
- ["quoted_var1"]=>
- string(21) "FUBAR_QUOTES_VARIABLE"
- ["quoted_var2"]=>
- string(25) "FUBAR_QUOTES_VARIABLE/foo"
- ["quoted_var3"]=>
- string(25) "foo/FUBAR_QUOTES_VARIABLE"
- ["quoted_var4"]=>
- string(29) "foo/FUBAR_QUOTES_VARIABLE/foo"
- }
- ["offset values"]=>
- array(6) {
- ["foo1"]=>
- array(2) {
- [0]=>
- string(14) "basic offset 1"
- [1]=>
- string(14) "basic offset 2"
- }
- ["foo2"]=>
- array(1) {
- [123]=>
- string(11) "long offset"
- }
- ["foo3"]=>
- array(1) {
- ["abc"]=>
- string(13) "string offset"
- }
- ["foo4"]=>
- array(4) {
- [0]=>
- string(15) "quoted offset 1"
- [" "]=>
- string(15) "quoted offset 2"
- ["sqfoobar"]=>
- string(20) "quoted string offset"
- ["dqfoobar"]=>
- string(20) "single quoted offset"
- }
- ["foo6"]=>
- array(4) {
- ["FUBAR_VARIABLE"]=>
- string(8) "variable"
- ["FUBAR_VARIABLE/foo"]=>
- string(22) "variable with string 1"
- ["foo/FUBAR_VARIABLE"]=>
- string(22) "variable with string 2"
- ["foo/FUBAR_VARIABLE/foo"]=>
- string(22) "variable with string 3"
- }
- ["foo7"]=>
- array(4) {
- ["FUBAR_QUOTES_VARIABLE"]=>
- string(17) "quoted variable 1"
- ["FUBAR_QUOTES_VARIABLE/foo"]=>
- string(17) "quoted variable 2"
- ["foo/FUBAR_QUOTES_VARIABLE"]=>
- string(17) "quoted variable 3"
- ["foo/FUBAR_QUOTES_VARIABLE/foo"]=>
- string(17) "quoted variable 4"
- }
- }
- ["non value"]=>
- array(4) {
- ["novalue_option1"]=>
- string(0) ""
- ["novalue_option2"]=>
- string(0) ""
- ["novalue_option3"]=>
- string(0) ""
- ["novalue_option4"]=>
- array(3) {
- [0]=>
- string(0) ""
- [1]=>
- string(0) ""
- [2]=>
- string(0) ""
- }
- }
- ["Quoted strings and variables in sections"]=>
- array(0) {
- }
- ["FUBAR_VARIABLE"]=>
- array(0) {
- }
- ["FUBAR_VARIABLE/foo"]=>
- array(0) {
- }
- ["foo/FUBAR_VARIABLE"]=>
- array(0) {
- }
- ["foo/FUBAR_VARIABLE/foo"]=>
- array(0) {
- }
- ["FUBAR_QUOTES_VARIABLE"]=>
- array(0) {
- }
- ["FUBAR_QUOTES_VARIABLE/foo"]=>
- array(0) {
- }
- ["foo/FUBAR_QUOTES_VARIABLE"]=>
- array(0) {
- }
- ["foo/FUBAR_QUOTES_VARIABLE/foo"]=>
- array(0) {
- }
- ["PATH=FUBAR_VARIABLE/no/quotes"]=>
- array(0) {
- }
- ["PATH=FUBAR_VARIABLE/all/quoted"]=>
- array(0) {
- }
- ["01"]=>
- array(2) {
- ["e"]=>
- string(1) "e"
- ["f"]=>
- string(1) "f"
- }
- ["02"]=>
- array(2) {
- ["g"]=>
- string(1) "g"
- ["h"]=>
- string(1) "h"
- }
- [1]=>
- array(2) {
- ["a"]=>
- string(1) "a"
- ["b"]=>
- string(1) "b"
- }
- [2]=>
- array(2) {
- ["c"]=>
- string(1) "c"
- ["d"]=>
- string(1) "d"
- }
- ["0815"]=>
- array(1) {
- ["bla"]=>
- string(3) "bla"
- }
- ["bug #43923"]=>
- array(3) {
- ["curly1"]=>
- string(1) "{"
- ["curly2"]=>
- string(1) "{"
- ["curly3"]=>
- string(1) "{"
- }
- ["bug #44019"]=>
- array(6) {
- ["concatenation_before"]=>
- string(37) "this_is_test_constant+some_text_after"
- ["concatenation_middle"]=>
- string(54) "some_text_before+this_is_test_constant+some_text_after"
- ["concatenation_after"]=>
- string(38) "some_text_before+this_is_test_constant"
- ["concatenation_nows_before"]=>
- string(37) "this_is_test_constant+some_text_after"
- ["concatenation_nows_middle"]=>
- string(54) "some_text_before+this_is_test_constant+some_text_after"
- ["concatenation_nows_after"]=>
- string(38) "some_text_before+this_is_test_constant"
- }
- ["bug #43915"]=>
- array(3) {
- ["ini_with-hyphen"]=>
- string(26) "with hyphen and underscore"
- ["ini.with-hyphen"]=>
- string(14) "dot and hyphen"
- ["ini-with.hyphen"]=>
- string(14) "hyphen and dot"
- }
-}
-Done.
---UEXPECTF--
+--EXPECT--
array(25) {
[u"basic"]=>
array(15) {
echo "Done.\n";
?>
---EXPECTF--
-array(3) {
- ["error_reporting values"]=>
- array(6) {
- ["foo"]=>
- string(7) "16383 8"
- ["error_reporting"]=>
- string(5) "16383"
- ["error_reporting1"]=>
- string(4) "4177"
- ["error_reporting2"]=>
- string(5) "16375"
- ["error_reporting3"]=>
- string(5) "16375"
- ["error_reporting4"]=>
- string(5) "16375"
- }
- ["true or false"]=>
- array(8) {
- ["bool_true"]=>
- string(1) "1"
- ["bool_yes"]=>
- string(1) "1"
- ["bool_on"]=>
- string(1) "1"
- ["bool_false"]=>
- string(0) ""
- ["bool_off"]=>
- string(0) ""
- ["bool_no"]=>
- string(0) ""
- ["bool_none"]=>
- string(0) ""
- ["bool_null"]=>
- string(0) ""
- }
- ["strings"]=>
- array(8) {
- ["string_true"]=>
- string(4) "true"
- ["string_yes"]=>
- string(4) " yes"
- ["string_on"]=>
- string(5) " on "
- ["string_false"]=>
- string(5) "false"
- ["string_off"]=>
- string(4) "Off "
- ["string_no"]=>
- string(4) "No "
- ["string_none"]=>
- string(5) " NoNe"
- ["string_null"]=>
- string(4) "NULl"
- }
-}
-Done.
---UEXPECTF--
+--EXPECT--
array(3) {
[u"error_reporting values"]=>
array(6) {
@unlink($filename);
echo "Done\n";
?>
---EXPECTF--
-Warning: parse_ini_file() expects at least 1 parameter, 0 given in %sparse_ini_file.php on line 6
-bool(false)
-
-Warning: parse_ini_file() expects at most 3 parameters, 4 given in %sparse_ini_file.php on line 7
-bool(false)
-
-Warning: parse_ini_file(%sparse_ini_file.dat): failed to open stream: No such file or directory in %sparse_ini_file.php on line 8
-array(0) {
-}
-
-Warning: parse_ini_file(%sparse_ini_file.dat): failed to open stream: No such file or directory in %sparse_ini_file.php on line 9
-array(0) {
-}
-array(1) {
- ["test"]=>
- string(0) ""
-}
-
-Warning: syntax error, unexpected '=' in %sparse_ini_file.dat on line 2
- in %sparse_ini_file.php on line 20
-array(1) {
- ["test"]=>
- string(0) ""
-}
-
-Warning: syntax error, unexpected '=' in %sparse_ini_file.dat on line 2
- in %sparse_ini_file.php on line 26
-array(1) {
- ["test"]=>
- string(4) "test"
-}
-array(1) {
- ["test"]=>
- string(8) "new
-line"
-}
-array(1) {
- ["test"]=>
- string(16) "test const value"
-}
-array(1) {
- ["section"]=>
- array(1) {
- ["test"]=>
- string(5) "hello"
- }
-}
-array(1) {
- ["test"]=>
- string(5) "hello"
-}
-array(1) {
- ["section.test"]=>
- string(5) "hello"
-}
-array(1) {
- ["section"]=>
- array(1) {
- ["section.test"]=>
- string(5) "hello"
- }
-}
-array(1) {
- ["section"]=>
- array(1) {
- [1]=>
- string(1) "2"
- }
-}
-array(1) {
- [1]=>
- string(1) "2"
-}
-array(1) {
- ["test"]=>
- string(5) "test4"
-}
-array(1) {
- ["section1"]=>
- array(1) {
- ["name"]=>
- string(5) "value"
- }
-}
-Done
---UEXPECTF--
+--EXPECTF--
Warning: parse_ini_file() expects at least 1 parameter, 0 given in %sparse_ini_file.php on line 6
bool(false)
unicode(0) ""
}
-Warning: syntax error, unexpected '=' in %sparse_ini_file.dat on line 2
+Warning: %s error%sin %sparse_ini_file.dat on line 2
in %sparse_ini_file.php on line 20
array(1) {
[u"test"]=>
unicode(0) ""
}
-Warning: syntax error, unexpected '=' in %sparse_ini_file.dat on line 2
+Warning: %serror%sin %sparse_ini_file.dat on line 2
in %sparse_ini_file.php on line 26
array(1) {
[u"test"]=>
?>
--EXPECTF--
bool(true)
-array(8) {
- ["command"]=>
- string(28) "/usr/bin/nohup /bin/sleep 50"
- ["pid"]=>
- int(%d)
- ["running"]=>
- bool(true)
- ["signaled"]=>
- bool(false)
- ["stopped"]=>
- bool(false)
- ["exitcode"]=>
- int(-1)
- ["termsig"]=>
- int(0)
- ["stopsig"]=>
- int(0)
-}
-bool(true)
-array(8) {
- ["command"]=>
- string(28) "/usr/bin/nohup /bin/sleep 50"
- ["pid"]=>
- int(%d)
- ["running"]=>
- bool(false)
- ["signaled"]=>
- bool(true)
- ["stopped"]=>
- bool(false)
- ["exitcode"]=>
- int(-1)
- ["termsig"]=>
- int(15)
- ["stopsig"]=>
- int(0)
-}
-Done!
---UEXPECTF--
-bool(true)
array(8) {
[u"command"]=>
unicode(28) "/usr/bin/nohup /bin/sleep 50"
echo "Done\n";
?>
---EXPECTF--
-bool(false)
-bool(true)
-string(5) "value"
-bool(true)
-string(0) ""
-bool(true)
-bool(false)
-Done
---UEXPECTF--
+--EXPECTF--
bool(false)
bool(true)
unicode(5) "value"
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(%d)
Warning: mt_rand() expects exactly 2 parameters, 1 given in %s on line %d
--EXPECTF--
*** Testing str_val() with scalar values***
-- Iteration 1 --
-string(1) "0"
--- Iteration 2 --
-string(1) "1"
--- Iteration 3 --
-string(2) "-1"
--- Iteration 4 --
-string(11) "-2147483648"
--- Iteration 5 --
-string(11) "-2147483647"
--- Iteration 6 --
-string(10) "2147483647"
--- Iteration 7 --
-string(10) "2147483640"
--- Iteration 8 --
-string(4) "4667"
--- Iteration 9 --
-string(4) "4779"
--- Iteration 10 --
-string(4) "4095"
--- Iteration 11 --
-string(3) "250"
--- Iteration 12 --
-string(11) "-2147483648"
--- Iteration 13 --
-string(10) "2147483647"
--- Iteration 14 --
-string(10) "2147483647"
--- Iteration 15 --
-string(2) "83"
--- Iteration 16 --
-string(1) "1"
--- Iteration 17 --
-string(11) "-2147483648"
--- Iteration 18 --
-string(10) "2147483647"
--- Iteration 19 --
-string(11) "-2147483649"
--- Iteration 20 --
-string(10) "2147483648"
--- Iteration 21 --
-string(11) "-2147483649"
--- Iteration 22 --
-string(11) "34359738369"
--- Iteration 23 --
-string(10) "2147483649"
--- Iteration 24 --
-string(11) "-2147483649"
--- Iteration 25 --
-string(1) "0"
--- Iteration 26 --
-string(4) "-0.1"
--- Iteration 27 --
-string(2) "10"
--- Iteration 28 --
-string(7) "1050000"
--- Iteration 29 --
-string(6) "1.0E-5"
--- Iteration 30 --
-string(7) "5000000"
--- Iteration 31 --
-string(7) "6.0E-20"
--- Iteration 32 --
-string(7) "5.0E+42"
--- Iteration 33 --
-string(7) "3.4E-33"
--- Iteration 34 --
-string(1) "1"
--- Iteration 35 --
-string(1) "1"
--- Iteration 36 --
-string(0) ""
--- Iteration 37 --
-string(0) ""
--- Iteration 38 --
-string(0) ""
--- Iteration 39 --
-string(0) ""
--- Iteration 40 --
-string(1) " "
--- Iteration 41 --
-string(1) " "
--- Iteration 42 --
-string(1) "0"
--- Iteration 43 --
-string(1) "0"
--- Iteration 44 --
-string(7) "testing"
--- Iteration 45 --
-string(5) "0x564"
--- Iteration 46 --
-string(4) "0123"
--- Iteration 47 --
-string(4) "new
-"
--- Iteration 48 --
-string(5) "new\n"
--- Iteration 49 --
-string(11) "@#$$%^&&*()"
--- Iteration 50 --
-string(8) " "
--- Iteration 51 --
-string(4) "null"
--- Iteration 52 --
-string(4) "null"
--- Iteration 53 --
-string(4) "true"
--- Iteration 54 --
-string(4) "true"
--- Iteration 55 --
-string(54) "This is a multiline heredoc
-string. Numeric = 1232455."
--- Iteration 56 --
-string(10) "12345
-2345"
--- Iteration 57 --
-string(0) ""
-
-*** Testing strval() with non_scalar values ***
--- Iteration 1 --
-string(6) "Object"
--- Iteration 2 --
-string(14) "Resource id #%d"
--- Iteration 3 --
-string(14) "Resource id #%d"
--- Iteration 4 --
-
-Notice: Array to string conversion in %s on line %d
-string(5) "Array"
--- Iteration 5 --
-
-Notice: Array to string conversion in %s on line %d
-string(5) "Array"
--- Iteration 6 --
-
-Notice: Array to string conversion in %s on line %d
-string(5) "Array"
--- Iteration 7 --
-
-Notice: Array to string conversion in %s on line %d
-string(5) "Array"
--- Iteration 8 --
-string(0) ""
--- Iteration 9 --
-string(0) ""
--- Iteration 10 --
-string(0) ""
--- Iteration 11 --
-string(0) ""
-
-*** Testing error conditions ***
-
-Warning: Wrong parameter count for strval() in %s on line %d
-NULL
-
-Warning: Wrong parameter count for strval() in %s on line %d
-NULL
-Done
---UEXPECTF--
-*** Testing str_val() with scalar values***
--- Iteration 1 --
unicode(1) "0"
-- Iteration 2 --
unicode(1) "1"
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
array(3) {
[0]=>
float(%f)
echo "Done\n";
?>
---EXPECTF--
-string(5) "array"
-string(6) "string"
-string(5) "array"
-string(7) "integer"
-string(6) "double"
-string(4) "NULL"
-string(7) "boolean"
-string(6) "string"
-string(12) "unknown type"
-string(8) "resource"
-string(6) "object"
-bool(true)
-NULL
-bool(true)
-NULL
-bool(true)
-NULL
-bool(true)
-NULL
-bool(true)
-NULL
-bool(true)
-NULL
-bool(true)
-NULL
-bool(true)
-NULL
-bool(true)
-NULL
-bool(true)
-NULL
-bool(true)
-NULL
-bool(true)
-int(1)
-bool(true)
-int(0)
-bool(true)
-int(1)
-bool(true)
-int(1)
-bool(true)
-int(2)
-bool(true)
-int(0)
-bool(true)
-int(0)
-bool(true)
-int(0)
-bool(true)
-int(%d)
-bool(true)
-int(%d)
-string(54) "Object of class stdClass could not be converted to int"
-bool(true)
-int(%d)
-bool(true)
-float(1)
-bool(true)
-float(0)
-bool(true)
-float(1)
-bool(true)
-float(1)
-bool(true)
-float(2)
-bool(true)
-float(0)
-bool(true)
-float(0)
-bool(true)
-float(0)
-bool(true)
-float(%d)
-bool(true)
-float(%d)
-string(57) "Object of class stdClass could not be converted to double"
-bool(true)
-float(%d)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(false)
-bool(true)
-bool(false)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-string(42) "settype(): Cannot convert to resource type"
-bool(false)
-array(3) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
-}
-string(42) "settype(): Cannot convert to resource type"
-bool(false)
-string(14) "another string"
-string(42) "settype(): Cannot convert to resource type"
-bool(false)
-array(3) {
- [0]=>
- int(2)
- [1]=>
- int(3)
- [2]=>
- int(4)
-}
-string(42) "settype(): Cannot convert to resource type"
-bool(false)
-int(1)
-string(42) "settype(): Cannot convert to resource type"
-bool(false)
-float(2)
-string(42) "settype(): Cannot convert to resource type"
-bool(false)
-NULL
-string(42) "settype(): Cannot convert to resource type"
-bool(false)
-bool(false)
-string(42) "settype(): Cannot convert to resource type"
-bool(false)
-string(11) "some string"
-string(42) "settype(): Cannot convert to resource type"
-bool(false)
-resource(%d) of type (Unknown)
-string(42) "settype(): Cannot convert to resource type"
-bool(false)
-resource(%d) of type (stream)
-string(42) "settype(): Cannot convert to resource type"
-bool(false)
-object(stdClass)#%d (0) {
-}
-bool(true)
-array(3) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
-}
-bool(true)
-array(1) {
- [0]=>
- string(14) "another string"
-}
-bool(true)
-array(3) {
- [0]=>
- int(2)
- [1]=>
- int(3)
- [2]=>
- int(4)
-}
-bool(true)
-array(1) {
- [0]=>
- int(1)
-}
-bool(true)
-array(1) {
- [0]=>
- float(2)
-}
-bool(true)
-array(0) {
-}
-bool(true)
-array(1) {
- [0]=>
- bool(false)
-}
-bool(true)
-array(1) {
- [0]=>
- string(11) "some string"
-}
-bool(true)
-array(1) {
- [0]=>
- resource(%d) of type (Unknown)
-}
-bool(true)
-array(1) {
- [0]=>
- resource(%d) of type (stream)
-}
-bool(true)
-array(0) {
-}
-bool(true)
-object(stdClass)#%d (3) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
-}
-bool(true)
-object(stdClass)#%d (1) {
- ["scalar"]=>
- string(14) "another string"
-}
-bool(true)
-object(stdClass)#%d (3) {
- [0]=>
- int(2)
- [1]=>
- int(3)
- [2]=>
- int(4)
-}
-bool(true)
-object(stdClass)#%d (1) {
- ["scalar"]=>
- int(1)
-}
-bool(true)
-object(stdClass)#%d (1) {
- ["scalar"]=>
- float(2)
-}
-bool(true)
-object(stdClass)#%d (0) {
-}
-bool(true)
-object(stdClass)#%d (1) {
- ["scalar"]=>
- bool(false)
-}
-bool(true)
-object(stdClass)#%d (1) {
- ["scalar"]=>
- string(11) "some string"
-}
-bool(true)
-object(stdClass)#%d (1) {
- ["scalar"]=>
- resource(%d) of type (Unknown)
-}
-bool(true)
-object(stdClass)#%d (1) {
- ["scalar"]=>
- resource(%d) of type (stream)
-}
-bool(true)
-object(stdClass)#%d (0) {
-}
-string(26) "Array to string conversion"
-bool(true)
-string(5) "Array"
-bool(true)
-string(14) "another string"
-string(26) "Array to string conversion"
-bool(true)
-string(5) "Array"
-bool(true)
-string(1) "1"
-bool(true)
-string(1) "2"
-bool(true)
-string(0) ""
-bool(true)
-string(0) ""
-bool(true)
-string(11) "some string"
-bool(true)
-string(14) "Resource id #%d"
-bool(true)
-string(14) "Resource id #%d"
-string(57) "Object of class stdClass could not be converted to string"
-string(45) "Object of class stdClass to string conversion"
-bool(true)
-string(6) "Object"
-Done
---UEXPECTF--
+--EXPECTF--
unicode(5) "array"
unicode(7) "unicode"
unicode(5) "array"
-- Iteration 32 --
float(-2147483649)
-*** Testing var_dump() on string variables ***
--- Iteration 1 --
-string(0) ""
--- Iteration 2 --
-string(0) ""
--- Iteration 3 --
-string(1) " "
--- Iteration 4 --
-string(1) " "
--- Iteration 5 --
-string(1) "0"
--- Iteration 6 --
-string(1) "\0"
--- Iteration 7 --
-string(2) "\0"
--- Iteration 8 --
-string(1) " "
--- Iteration 9 --
-string(2) "\t"
--- Iteration 10 --
-string(3) "PHP"
--- Iteration 11 --
-string(3) "PHP"
--- Iteration 12 --
-string(29) "abcd\0n1234\005678\000efgh\xijkl"
--- Iteration 13 --
-string(34) "abcd\0efgh\0ijkl\0mnop\00qrst\0uvwx\00yz"
--- Iteration 14 --
-string(22) "1234
-5678
- 9100
-abcda"
-
-*** Testing var_dump() on boolean variables ***
--- Iteration 1 --
-bool(true)
--- Iteration 2 --
-bool(false)
--- Iteration 3 --
-bool(true)
--- Iteration 4 --
-bool(false)
-
-*** Testing var_dump() on array variables ***
--- Iteration 1 --
-array(0) {
-}
--- Iteration 2 --
-array(1) {
- [0]=>
- NULL
-}
--- Iteration 3 --
-array(1) {
- [0]=>
- NULL
-}
--- Iteration 4 --
-array(1) {
- [0]=>
- bool(true)
-}
--- Iteration 5 --
-array(1) {
- [0]=>
- string(0) ""
-}
--- Iteration 6 --
-array(1) {
- [0]=>
- string(0) ""
-}
--- Iteration 7 --
-array(2) {
- [0]=>
- array(0) {
- }
- [1]=>
- array(0) {
- }
-}
--- Iteration 8 --
-array(2) {
- [0]=>
- array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- }
- [1]=>
- array(2) {
- [0]=>
- string(1) "a"
- [1]=>
- string(1) "b"
- }
-}
--- Iteration 9 --
-array(1) {
- [1]=>
- string(3) "One"
-}
--- Iteration 10 --
-array(1) {
- ["test"]=>
- string(8) "is_array"
-}
--- Iteration 11 --
-array(1) {
- [0]=>
- int(0)
-}
--- Iteration 12 --
-array(1) {
- [0]=>
- int(-1)
-}
--- Iteration 13 --
-array(2) {
- [0]=>
- float(10.5)
- [1]=>
- float(5.6)
-}
--- Iteration 14 --
-array(2) {
- [0]=>
- string(6) "string"
- [1]=>
- string(4) "test"
-}
--- Iteration 15 --
-array(2) {
- [0]=>
- string(6) "string"
- [1]=>
- string(4) "test"
-}
-
-*** Testing var_dump() on object variables ***
--- Iteration 1 --
-object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
-}
--- Iteration 2 --
-object(no_member_class)#%d (0) {
-}
--- Iteration 3 --
-object(contains_object_class)#%d (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#%d (0) {
- }
- ["class_object5"]=>
- object(contains_object_class)#%d (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#%d (0) {
- }
- ["class_object5"]=>
- *RECURSION*
- }
-}
--- Iteration 4 --
-object(contains_object_class)#%d (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#%d (0) {
- }
- ["class_object5"]=>
- object(contains_object_class)#%d (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#%d (0) {
- }
- ["class_object5"]=>
- *RECURSION*
- }
-}
--- Iteration 5 --
-object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
-}
--- Iteration 6 --
-object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
-}
--- Iteration 7 --
-object(no_member_class)#%d (0) {
-}
--- Iteration 8 --
-object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
-}
--- Iteration 9 --
-NULL
-
-** Testing var_dump() on objects having circular reference **
-object(object_class)#%d (8) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- ["obj"]=>
- &object(object_class)#%d (8) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- ["obj"]=>
- &object(object_class)#%d (8) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- ["obj"]=>
- &object(object_class)#%d (8) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- ["obj"]=>
- *RECURSION*
- }
- }
- }
-}
-
-*** Testing var_dump() on resources ***
--- Iteration 1 --
-resource(%d) of type (stream)
--- Iteration 2 --
-resource(%d) of type (stream)
-
-*** Testing var_dump() on different combinations of scalar
- and non-scalar variables ***
--- Iteration 1 --
-array(3) {
- [0]=>
- int(123)
- [1]=>
- float(-1.2345)
- [2]=>
- string(1) "a"
-}
--- Iteration 2 --
-array(4) {
- [0]=>
- string(1) "d"
- [1]=>
- array(3) {
- [0]=>
- int(1)
- [1]=>
- int(3)
- [2]=>
- int(5)
- }
- [2]=>
- bool(true)
- [3]=>
- NULL
-}
--- Iteration 3 --
-array(4) {
- [0]=>
- object(no_member_class)#%d (0) {
- }
- [1]=>
- array(0) {
- }
- [2]=>
- bool(false)
- [3]=>
- int(0)
-}
--- Iteration 4 --
-array(6) {
- [0]=>
- float(0)
- [1]=>
- string(11) "Where am I?"
- [2]=>
- array(3) {
- [0]=>
- int(7)
- [1]=>
- int(8)
- [2]=>
- int(9)
- }
- [3]=>
- bool(true)
- [4]=>
- string(1) "A"
- [5]=>
- int(987654321)
-}
--- Iteration 5 --
-array(4) {
- [0]=>
- NULL
- [1]=>
- float(20000000000)
- [2]=>
- float(79.1)
- [3]=>
- float(4.599998)
-}
--- Iteration 6 --
-array(4) {
- [0]=>
- string(27) "array(1,2,3,4)1.0000002TRUE"
- [1]=>
- NULL
- [2]=>
- float(4611333)
- [3]=>
- string(5) "/00\7"
-}
-
-*** Testing var_dump() on miscelleneous input arguments ***
--- Iteration 1 --
-NULL
--- Iteration 2 --
-NULL
--- Iteration 3 --
-NULL
--- Iteration 4 --
-NULL
-
-*** Testing var_dump() on multiple arguments ***
-array(15) {
- [0]=>
- int(0)
- [1]=>
- int(83)
- [2]=>
- int(123000000)
- [3]=>
- int(-83)
- [4]=>
- int(-12300000)
- [5]=>
- array(10) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
- [3]=>
- int(4)
- [4]=>
- int(5)
- [5]=>
- int(6)
- [6]=>
- int(7)
- [7]=>
- int(8)
- [8]=>
- int(9)
- [9]=>
- int(10)
- }
- [6]=>
- array(10) {
- [0]=>
- int(-1)
- [1]=>
- int(-2)
- [2]=>
- int(-3)
- [3]=>
- int(-4)
- [4]=>
- int(-5)
- [5]=>
- int(-6)
- [6]=>
- int(-7)
- [7]=>
- int(-8)
- [8]=>
- int(-9)
- [9]=>
- int(-10)
- }
- [7]=>
- int(2147483647)
- [8]=>
- float(2147483648)
- [9]=>
- float(-2147483648)
- [10]=>
- int(-2147483647)
- [11]=>
- int(2147483647)
- [12]=>
- float(-2147483648)
- [13]=>
- int(2147483647)
- [14]=>
- float(-2147483648)
-}
-array(32) {
- [0]=>
- float(0)
- [1]=>
- float(0)
- [2]=>
- float(1.234)
- [3]=>
- float(-1.234)
- [4]=>
- float(-2)
- [5]=>
- float(2)
- [6]=>
- float(-0.5)
- [7]=>
- float(0.567)
- [8]=>
- float(-0.00067)
- [9]=>
- float(-670)
- [10]=>
- float(670)
- [11]=>
- float(670)
- [12]=>
- float(-0.00410003)
- [13]=>
- float(-4100.03)
- [14]=>
- float(0.004100003)
- [15]=>
- float(4100.003)
- [16]=>
- float(100000)
- [17]=>
- float(-100000)
- [18]=>
- float(1.0E-5)
- [19]=>
- float(-1.0E-5)
- [20]=>
- float(100000)
- [21]=>
- float(-100000)
- [22]=>
- float(100000)
- [23]=>
- float(-100000)
- [24]=>
- float(100000)
- [25]=>
- float(-100000)
- [26]=>
- float(1.0E-5)
- [27]=>
- float(-1.0E-5)
- [28]=>
- float(-2147483649)
- [29]=>
- float(2147483649)
- [30]=>
- float(2147483649)
- [31]=>
- float(-2147483649)
-}
-array(14) {
- [0]=>
- string(0) ""
- [1]=>
- string(0) ""
- [2]=>
- string(1) " "
- [3]=>
- string(1) " "
- [4]=>
- string(1) "0"
- [5]=>
- string(1) "\0"
- [6]=>
- string(2) "\0"
- [7]=>
- string(1) " "
- [8]=>
- string(2) "\t"
- [9]=>
- string(3) "PHP"
- [10]=>
- string(3) "PHP"
- [11]=>
- string(29) "abcd\0n1234\005678\000efgh\xijkl"
- [12]=>
- string(34) "abcd\0efgh\0ijkl\0mnop\00qrst\0uvwx\00yz"
- [13]=>
- string(22) "1234
-5678
- 9100
-abcda"
-}
-array(15) {
- [0]=>
- array(0) {
- }
- [1]=>
- array(1) {
- [0]=>
- NULL
- }
- [2]=>
- array(1) {
- [0]=>
- NULL
- }
- [3]=>
- array(1) {
- [0]=>
- bool(true)
- }
- [4]=>
- array(1) {
- [0]=>
- string(0) ""
- }
- [5]=>
- array(1) {
- [0]=>
- string(0) ""
- }
- [6]=>
- array(2) {
- [0]=>
- array(0) {
- }
- [1]=>
- array(0) {
- }
- }
- [7]=>
- array(2) {
- [0]=>
- array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- }
- [1]=>
- array(2) {
- [0]=>
- string(1) "a"
- [1]=>
- string(1) "b"
- }
- }
- [8]=>
- array(1) {
- [1]=>
- string(3) "One"
- }
- [9]=>
- array(1) {
- ["test"]=>
- string(8) "is_array"
- }
- [10]=>
- array(1) {
- [0]=>
- int(0)
- }
- [11]=>
- array(1) {
- [0]=>
- int(-1)
- }
- [12]=>
- array(2) {
- [0]=>
- float(10.5)
- [1]=>
- float(5.6)
- }
- [13]=>
- array(2) {
- [0]=>
- string(6) "string"
- [1]=>
- string(4) "test"
- }
- [14]=>
- array(2) {
- [0]=>
- string(6) "string"
- [1]=>
- string(4) "test"
- }
-}
-array(4) {
- [0]=>
- bool(true)
- [1]=>
- bool(false)
- [2]=>
- bool(true)
- [3]=>
- bool(false)
-}
-array(2) {
- [0]=>
- resource(%d) of type (stream)
- [1]=>
- resource(%d) of type (stream)
-}
-array(9) {
- [0]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- [1]=>
- object(no_member_class)#%d (0) {
- }
- [2]=>
- object(contains_object_class)#%d (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#%d (0) {
- }
- ["class_object5"]=>
- object(contains_object_class)#%d (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#%d (0) {
- }
- ["class_object5"]=>
- *RECURSION*
- }
- }
- [3]=>
- object(contains_object_class)#%d (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#%d (0) {
- }
- ["class_object5"]=>
- object(contains_object_class)#%d (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#%d (0) {
- }
- ["class_object5"]=>
- *RECURSION*
- }
- }
- [4]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- [5]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- [6]=>
- object(no_member_class)#%d (0) {
- }
- [7]=>
- object(object_class)#%d (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- [8]=>
- NULL
-}
-array(4) {
- [0]=>
- NULL
- [1]=>
- NULL
- [2]=>
- NULL
- [3]=>
- NULL
-}
-array(6) {
- [0]=>
- array(3) {
- [0]=>
- int(123)
- [1]=>
- float(-1.2345)
- [2]=>
- string(1) "a"
- }
- [1]=>
- array(4) {
- [0]=>
- string(1) "d"
- [1]=>
- array(3) {
- [0]=>
- int(1)
- [1]=>
- int(3)
- [2]=>
- int(5)
- }
- [2]=>
- bool(true)
- [3]=>
- NULL
- }
- [2]=>
- array(4) {
- [0]=>
- object(no_member_class)#%d (0) {
- }
- [1]=>
- array(0) {
- }
- [2]=>
- bool(false)
- [3]=>
- int(0)
- }
- [3]=>
- array(6) {
- [0]=>
- float(0)
- [1]=>
- string(11) "Where am I?"
- [2]=>
- array(3) {
- [0]=>
- int(7)
- [1]=>
- int(8)
- [2]=>
- int(9)
- }
- [3]=>
- bool(true)
- [4]=>
- string(1) "A"
- [5]=>
- int(987654321)
- }
- [4]=>
- array(4) {
- [0]=>
- NULL
- [1]=>
- float(20000000000)
- [2]=>
- float(79.1)
- [3]=>
- float(4.599998)
- }
- [5]=>
- array(4) {
- [0]=>
- string(27) "array(1,2,3,4)1.0000002TRUE"
- [1]=>
- NULL
- [2]=>
- float(4611333)
- [3]=>
- string(5) "/00\7"
- }
-}
-
-*** Testing var_dump() on anonymous functions ***
-New anonymous function: \0lambda_1
-string(9) "2 * 3 = 6"
-string(9) "\0lambda_2"
-
-*** Testing error conditions ***
-
-Warning: Wrong parameter count for var_dump() in %s on line %d
-Done
---UEXPECTF--
-*** Testing var_dump() on integer variables ***
--- Iteration 1 --
-int(0)
--- Iteration 2 --
-int(83)
--- Iteration 3 --
-int(123000000)
--- Iteration 4 --
-int(-83)
--- Iteration 5 --
-int(-12300000)
--- Iteration 6 --
-array(10) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
- [3]=>
- int(4)
- [4]=>
- int(5)
- [5]=>
- int(6)
- [6]=>
- int(7)
- [7]=>
- int(8)
- [8]=>
- int(9)
- [9]=>
- int(10)
-}
--- Iteration 7 --
-array(10) {
- [0]=>
- int(-1)
- [1]=>
- int(-2)
- [2]=>
- int(-3)
- [3]=>
- int(-4)
- [4]=>
- int(-5)
- [5]=>
- int(-6)
- [6]=>
- int(-7)
- [7]=>
- int(-8)
- [8]=>
- int(-9)
- [9]=>
- int(-10)
-}
--- Iteration 8 --
-int(2147483647)
--- Iteration 9 --
-float(2147483648)
--- Iteration 10 --
-float(-2147483648)
--- Iteration 11 --
-int(-2147483647)
--- Iteration 12 --
-int(2147483647)
--- Iteration 13 --
-float(-2147483648)
--- Iteration 14 --
-int(2147483647)
--- Iteration 15 --
-float(-2147483648)
-
-*** Testing var_dump() on float variables ***
--- Iteration 1 --
-float(0)
--- Iteration 2 --
-float(0)
--- Iteration 3 --
-float(1.234)
--- Iteration 4 --
-float(-1.234)
--- Iteration 5 --
-float(-2)
--- Iteration 6 --
-float(2)
--- Iteration 7 --
-float(-0.5)
--- Iteration 8 --
-float(0.567)
--- Iteration 9 --
-float(-0.00067)
--- Iteration 10 --
-float(-670)
--- Iteration 11 --
-float(670)
--- Iteration 12 --
-float(670)
--- Iteration 13 --
-float(-0.00410003)
--- Iteration 14 --
-float(-4100.03)
--- Iteration 15 --
-float(0.004100003)
--- Iteration 16 --
-float(4100.003)
--- Iteration 17 --
-float(100000)
--- Iteration 18 --
-float(-100000)
--- Iteration 19 --
-float(1.0E-5)
--- Iteration 20 --
-float(-1.0E-5)
--- Iteration 21 --
-float(100000)
--- Iteration 22 --
-float(-100000)
--- Iteration 23 --
-float(100000)
--- Iteration 24 --
-float(-100000)
--- Iteration 25 --
-float(100000)
--- Iteration 26 --
-float(-100000)
--- Iteration 27 --
-float(1.0E-5)
--- Iteration 28 --
-float(-1.0E-5)
--- Iteration 29 --
-float(-2147483649)
--- Iteration 30 --
-float(2147483649)
--- Iteration 31 --
-float(2147483649)
--- Iteration 32 --
-float(-2147483649)
-
*** Testing var_dump() on string variables ***
-- Iteration 1 --
unicode(0) ""
-- Iteration 32 --
int(-2147483649)
-*** Testing var_dump() on string variables ***
--- Iteration 1 --
-string(0) ""
--- Iteration 2 --
-string(0) ""
--- Iteration 3 --
-string(1) " "
--- Iteration 4 --
-string(1) " "
--- Iteration 5 --
-string(1) "0"
--- Iteration 6 --
-string(1) "\0"
--- Iteration 7 --
-string(2) "\0"
--- Iteration 8 --
-string(1) " "
--- Iteration 9 --
-string(2) "\t"
--- Iteration 10 --
-string(3) "PHP"
--- Iteration 11 --
-string(3) "PHP"
--- Iteration 12 --
-string(29) "abcd\0n1234\005678\000efgh\xijkl"
--- Iteration 13 --
-string(34) "abcd\0efgh\0ijkl\0mnop\00qrst\0uvwx\00yz"
--- Iteration 14 --
-string(22) "1234
-5678
- 9100
-abcda"
-
-*** Testing var_dump() on boolean variables ***
--- Iteration 1 --
-bool(true)
--- Iteration 2 --
-bool(false)
--- Iteration 3 --
-bool(true)
--- Iteration 4 --
-bool(false)
-
-*** Testing var_dump() on array variables ***
--- Iteration 1 --
-array(0) {
-}
--- Iteration 2 --
-array(1) {
- [0]=>
- NULL
-}
--- Iteration 3 --
-array(1) {
- [0]=>
- NULL
-}
--- Iteration 4 --
-array(1) {
- [0]=>
- bool(true)
-}
--- Iteration 5 --
-array(1) {
- [0]=>
- string(0) ""
-}
--- Iteration 6 --
-array(1) {
- [0]=>
- string(0) ""
-}
--- Iteration 7 --
-array(2) {
- [0]=>
- array(0) {
- }
- [1]=>
- array(0) {
- }
-}
--- Iteration 8 --
-array(2) {
- [0]=>
- array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- }
- [1]=>
- array(2) {
- [0]=>
- string(1) "a"
- [1]=>
- string(1) "b"
- }
-}
--- Iteration 9 --
-array(1) {
- [1]=>
- string(3) "One"
-}
--- Iteration 10 --
-array(1) {
- ["test"]=>
- string(8) "is_array"
-}
--- Iteration 11 --
-array(1) {
- [0]=>
- int(0)
-}
--- Iteration 12 --
-array(1) {
- [0]=>
- int(-1)
-}
--- Iteration 13 --
-array(2) {
- [0]=>
- float(10.5)
- [1]=>
- float(5.6)
-}
--- Iteration 14 --
-array(2) {
- [0]=>
- string(6) "string"
- [1]=>
- string(4) "test"
-}
--- Iteration 15 --
-array(2) {
- [0]=>
- string(6) "string"
- [1]=>
- string(4) "test"
-}
-
-*** Testing var_dump() on object variables ***
--- Iteration 1 --
-object(object_class)#6 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
-}
--- Iteration 2 --
-object(no_member_class)#7 (0) {
-}
--- Iteration 3 --
-object(contains_object_class)#8 (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#9 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#10 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#9 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#10 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#11 (0) {
- }
- ["class_object5"]=>
- object(contains_object_class)#8 (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#9 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#10 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#9 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#10 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#11 (0) {
- }
- ["class_object5"]=>
- *RECURSION*
- }
-}
--- Iteration 4 --
-object(contains_object_class)#1 (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#2 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#3 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#2 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#3 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#4 (0) {
- }
- ["class_object5"]=>
- object(contains_object_class)#1 (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#2 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#3 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#2 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#3 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#4 (0) {
- }
- ["class_object5"]=>
- *RECURSION*
- }
-}
--- Iteration 5 --
-object(object_class)#2 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
-}
--- Iteration 6 --
-object(object_class)#3 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
-}
--- Iteration 7 --
-object(no_member_class)#4 (0) {
-}
--- Iteration 8 --
-object(object_class)#5 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
-}
--- Iteration 9 --
-NULL
-
-** Testing var_dump() on objects having circular reference **
-object(object_class)#13 (8) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- ["obj"]=>
- &object(object_class)#12 (8) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- ["obj"]=>
- &object(object_class)#13 (8) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- ["obj"]=>
- &object(object_class)#12 (8) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- ["obj"]=>
- *RECURSION*
- }
- }
- }
-}
-
-*** Testing var_dump() on resources ***
--- Iteration 1 --
-resource(5) of type (stream)
--- Iteration 2 --
-resource(6) of type (stream)
-
-*** Testing var_dump() on different combinations of scalar
- and non-scalar variables ***
--- Iteration 1 --
-array(3) {
- [0]=>
- int(123)
- [1]=>
- float(-1.2345)
- [2]=>
- string(1) "a"
-}
--- Iteration 2 --
-array(4) {
- [0]=>
- string(1) "d"
- [1]=>
- array(3) {
- [0]=>
- int(1)
- [1]=>
- int(3)
- [2]=>
- int(5)
- }
- [2]=>
- bool(true)
- [3]=>
- NULL
-}
--- Iteration 3 --
-array(4) {
- [0]=>
- object(no_member_class)#14 (0) {
- }
- [1]=>
- array(0) {
- }
- [2]=>
- bool(false)
- [3]=>
- int(0)
-}
--- Iteration 4 --
-array(6) {
- [0]=>
- float(0)
- [1]=>
- string(11) "Where am I?"
- [2]=>
- array(3) {
- [0]=>
- int(7)
- [1]=>
- int(8)
- [2]=>
- int(9)
- }
- [3]=>
- bool(true)
- [4]=>
- string(1) "A"
- [5]=>
- int(987654321)
-}
--- Iteration 5 --
-array(4) {
- [0]=>
- NULL
- [1]=>
- float(20000000000)
- [2]=>
- float(79.1)
- [3]=>
- float(4.599998)
-}
--- Iteration 6 --
-array(4) {
- [0]=>
- string(27) "array(1,2,3,4)1.0000002TRUE"
- [1]=>
- NULL
- [2]=>
- float(4611333)
- [3]=>
- string(5) "/00\7"
-}
-
-*** Testing var_dump() on miscelleneous input arguments ***
--- Iteration 1 --
-NULL
--- Iteration 2 --
-NULL
--- Iteration 3 --
-NULL
--- Iteration 4 --
-NULL
-
-*** Testing var_dump() on multiple arguments ***
-array(15) {
- [0]=>
- int(0)
- [1]=>
- int(83)
- [2]=>
- int(123000000)
- [3]=>
- int(-83)
- [4]=>
- int(-12300000)
- [5]=>
- array(10) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
- [3]=>
- int(4)
- [4]=>
- int(5)
- [5]=>
- int(6)
- [6]=>
- int(7)
- [7]=>
- int(8)
- [8]=>
- int(9)
- [9]=>
- int(10)
- }
- [6]=>
- array(10) {
- [0]=>
- int(-1)
- [1]=>
- int(-2)
- [2]=>
- int(-3)
- [3]=>
- int(-4)
- [4]=>
- int(-5)
- [5]=>
- int(-6)
- [6]=>
- int(-7)
- [7]=>
- int(-8)
- [8]=>
- int(-9)
- [9]=>
- int(-10)
- }
- [7]=>
- int(2147483647)
- [8]=>
- int(2147483648)
- [9]=>
- int(-2147483648)
- [10]=>
- int(-2147483647)
- [11]=>
- int(2147483647)
- [12]=>
- int(-2147483648)
- [13]=>
- int(2147483647)
- [14]=>
- int(-2147483648)
-}
-array(32) {
- [0]=>
- float(0)
- [1]=>
- float(0)
- [2]=>
- float(1.234)
- [3]=>
- float(-1.234)
- [4]=>
- float(-2)
- [5]=>
- float(2)
- [6]=>
- float(-0.5)
- [7]=>
- float(0.567)
- [8]=>
- float(-0.00067)
- [9]=>
- float(-670)
- [10]=>
- float(670)
- [11]=>
- float(670)
- [12]=>
- float(-0.00410003)
- [13]=>
- float(-4100.03)
- [14]=>
- float(0.004100003)
- [15]=>
- float(4100.003)
- [16]=>
- float(100000)
- [17]=>
- float(-100000)
- [18]=>
- float(1.0E-5)
- [19]=>
- float(-1.0E-5)
- [20]=>
- float(100000)
- [21]=>
- float(-100000)
- [22]=>
- float(100000)
- [23]=>
- float(-100000)
- [24]=>
- float(100000)
- [25]=>
- float(-100000)
- [26]=>
- float(1.0E-5)
- [27]=>
- float(-1.0E-5)
- [28]=>
- int(-2147483649)
- [29]=>
- int(2147483649)
- [30]=>
- int(2147483649)
- [31]=>
- int(-2147483649)
-}
-array(14) {
- [0]=>
- string(0) ""
- [1]=>
- string(0) ""
- [2]=>
- string(1) " "
- [3]=>
- string(1) " "
- [4]=>
- string(1) "0"
- [5]=>
- string(1) "\0"
- [6]=>
- string(2) "\0"
- [7]=>
- string(1) " "
- [8]=>
- string(2) "\t"
- [9]=>
- string(3) "PHP"
- [10]=>
- string(3) "PHP"
- [11]=>
- string(29) "abcd\0n1234\005678\000efgh\xijkl"
- [12]=>
- string(34) "abcd\0efgh\0ijkl\0mnop\00qrst\0uvwx\00yz"
- [13]=>
- string(22) "1234
-5678
- 9100
-abcda"
-}
-array(15) {
- [0]=>
- array(0) {
- }
- [1]=>
- array(1) {
- [0]=>
- NULL
- }
- [2]=>
- array(1) {
- [0]=>
- NULL
- }
- [3]=>
- array(1) {
- [0]=>
- bool(true)
- }
- [4]=>
- array(1) {
- [0]=>
- string(0) ""
- }
- [5]=>
- array(1) {
- [0]=>
- string(0) ""
- }
- [6]=>
- array(2) {
- [0]=>
- array(0) {
- }
- [1]=>
- array(0) {
- }
- }
- [7]=>
- array(2) {
- [0]=>
- array(2) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- }
- [1]=>
- array(2) {
- [0]=>
- string(1) "a"
- [1]=>
- string(1) "b"
- }
- }
- [8]=>
- array(1) {
- [1]=>
- string(3) "One"
- }
- [9]=>
- array(1) {
- ["test"]=>
- string(8) "is_array"
- }
- [10]=>
- array(1) {
- [0]=>
- int(0)
- }
- [11]=>
- array(1) {
- [0]=>
- int(-1)
- }
- [12]=>
- array(2) {
- [0]=>
- float(10.5)
- [1]=>
- float(5.6)
- }
- [13]=>
- array(2) {
- [0]=>
- string(6) "string"
- [1]=>
- string(4) "test"
- }
- [14]=>
- array(2) {
- [0]=>
- string(6) "string"
- [1]=>
- string(4) "test"
- }
-}
-array(4) {
- [0]=>
- bool(true)
- [1]=>
- bool(false)
- [2]=>
- bool(true)
- [3]=>
- bool(false)
-}
-array(2) {
- [0]=>
- resource(5) of type (stream)
- [1]=>
- resource(6) of type (stream)
-}
-array(9) {
- [0]=>
- object(object_class)#6 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- [1]=>
- object(no_member_class)#7 (0) {
- }
- [2]=>
- object(contains_object_class)#8 (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#9 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#10 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#9 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#10 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#11 (0) {
- }
- ["class_object5"]=>
- object(contains_object_class)#8 (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#9 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#10 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#9 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#10 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#11 (0) {
- }
- ["class_object5"]=>
- *RECURSION*
- }
- }
- [3]=>
- object(contains_object_class)#1 (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#2 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#3 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#2 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#3 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#4 (0) {
- }
- ["class_object5"]=>
- object(contains_object_class)#1 (7) {
- ["p"]=>
- int(30)
- ["class_object1"]=>
- object(object_class)#2 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object2"]=>
- object(object_class)#3 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object3":"contains_object_class":private]=>
- object(object_class)#2 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["class_object4":protected]=>
- object(object_class)#3 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- ["no_member_class_object"]=>
- object(no_member_class)#4 (0) {
- }
- ["class_object5"]=>
- *RECURSION*
- }
- }
- [4]=>
- object(object_class)#2 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- [5]=>
- object(object_class)#3 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- [6]=>
- object(no_member_class)#4 (0) {
- }
- [7]=>
- object(object_class)#5 (7) {
- ["value"]=>
- int(50)
- ["public_var1"]=>
- int(10)
- ["private_var1":"object_class":private]=>
- int(20)
- ["private_var2":"object_class":private]=>
- int(21)
- ["protected_var1":protected]=>
- string(8) "string_1"
- ["protected_var2":protected]=>
- string(8) "string_2"
- ["public_var2"]=>
- int(11)
- }
- [8]=>
- NULL
-}
-array(4) {
- [0]=>
- NULL
- [1]=>
- NULL
- [2]=>
- NULL
- [3]=>
- NULL
-}
-array(6) {
- [0]=>
- array(3) {
- [0]=>
- int(123)
- [1]=>
- float(-1.2345)
- [2]=>
- string(1) "a"
- }
- [1]=>
- array(4) {
- [0]=>
- string(1) "d"
- [1]=>
- array(3) {
- [0]=>
- int(1)
- [1]=>
- int(3)
- [2]=>
- int(5)
- }
- [2]=>
- bool(true)
- [3]=>
- NULL
- }
- [2]=>
- array(4) {
- [0]=>
- object(no_member_class)#14 (0) {
- }
- [1]=>
- array(0) {
- }
- [2]=>
- bool(false)
- [3]=>
- int(0)
- }
- [3]=>
- array(6) {
- [0]=>
- float(0)
- [1]=>
- string(11) "Where am I?"
- [2]=>
- array(3) {
- [0]=>
- int(7)
- [1]=>
- int(8)
- [2]=>
- int(9)
- }
- [3]=>
- bool(true)
- [4]=>
- string(1) "A"
- [5]=>
- int(987654321)
- }
- [4]=>
- array(4) {
- [0]=>
- NULL
- [1]=>
- float(20000000000)
- [2]=>
- float(79.1)
- [3]=>
- float(4.599998)
- }
- [5]=>
- array(4) {
- [0]=>
- string(27) "array(1,2,3,4)1.0000002TRUE"
- [1]=>
- NULL
- [2]=>
- float(4611333)
- [3]=>
- string(5) "/00\7"
- }
-}
-
-*** Testing var_dump() on anonymous functions ***
-New anonymous function: \0lambda_1
-string(9) "2 * 3 = 6"
-string(9) "\0lambda_2"
-
-*** Testing error conditions ***
-
-Warning: Wrong parameter count for var_dump() in %s on line %d
-Done
---UEXPECTF--
-*** Testing var_dump() on integer variables ***
--- Iteration 1 --
-int(0)
--- Iteration 2 --
-int(83)
--- Iteration 3 --
-int(123000000)
--- Iteration 4 --
-int(-83)
--- Iteration 5 --
-int(-12300000)
--- Iteration 6 --
-array(10) {
- [0]=>
- int(1)
- [1]=>
- int(2)
- [2]=>
- int(3)
- [3]=>
- int(4)
- [4]=>
- int(5)
- [5]=>
- int(6)
- [6]=>
- int(7)
- [7]=>
- int(8)
- [8]=>
- int(9)
- [9]=>
- int(10)
-}
--- Iteration 7 --
-array(10) {
- [0]=>
- int(-1)
- [1]=>
- int(-2)
- [2]=>
- int(-3)
- [3]=>
- int(-4)
- [4]=>
- int(-5)
- [5]=>
- int(-6)
- [6]=>
- int(-7)
- [7]=>
- int(-8)
- [8]=>
- int(-9)
- [9]=>
- int(-10)
-}
--- Iteration 8 --
-int(2147483647)
--- Iteration 9 --
-int(2147483648)
--- Iteration 10 --
-int(-2147483648)
--- Iteration 11 --
-int(-2147483647)
--- Iteration 12 --
-int(2147483647)
--- Iteration 13 --
-int(-2147483648)
--- Iteration 14 --
-int(2147483647)
--- Iteration 15 --
-int(-2147483648)
-
-*** Testing var_dump() on float variables ***
--- Iteration 1 --
-float(0)
--- Iteration 2 --
-float(0)
--- Iteration 3 --
-float(1.234)
--- Iteration 4 --
-float(-1.234)
--- Iteration 5 --
-float(-2)
--- Iteration 6 --
-float(2)
--- Iteration 7 --
-float(-0.5)
--- Iteration 8 --
-float(0.567)
--- Iteration 9 --
-float(-0.00067)
--- Iteration 10 --
-float(-670)
--- Iteration 11 --
-float(670)
--- Iteration 12 --
-float(670)
--- Iteration 13 --
-float(-0.00410003)
--- Iteration 14 --
-float(-4100.03)
--- Iteration 15 --
-float(0.004100003)
--- Iteration 16 --
-float(4100.003)
--- Iteration 17 --
-float(100000)
--- Iteration 18 --
-float(-100000)
--- Iteration 19 --
-float(1.0E-5)
--- Iteration 20 --
-float(-1.0E-5)
--- Iteration 21 --
-float(100000)
--- Iteration 22 --
-float(-100000)
--- Iteration 23 --
-float(100000)
--- Iteration 24 --
-float(-100000)
--- Iteration 25 --
-float(100000)
--- Iteration 26 --
-float(-100000)
--- Iteration 27 --
-float(1.0E-5)
--- Iteration 28 --
-float(-1.0E-5)
--- Iteration 29 --
-int(-2147483649)
--- Iteration 30 --
-int(2147483649)
--- Iteration 31 --
-int(2147483649)
--- Iteration 32 --
-int(-2147483649)
-
*** Testing var_dump() on string variables ***
-- Iteration 1 --
unicode(0) ""
string(3) "'8'"
-Iteration 16
-'' . "\0" . 'hello' . "\0" . 'this is an test, to work with \' and ' . "\0" . ' and
- and foreign chars too: blåbærøl'
-'' . "\0" . 'hello' . "\0" . 'this is an test, to work with \' and ' . "\0" . ' and
- and foreign chars too: blåbærøl'
-string(121) "'' . "\0" . 'hello' . "\0" . 'this is an test, to work with \' and ' . "\0" . ' and
- and foreign chars too: blåbærøl'"
-
-*** Testing var_export() with valid arrays ***
-
-*** Output for arrays ***
-
-Iteration 1
-array (
-)
-array (
-)
-string(9) "array (
-)"
-
-
-Iteration 2
-array (
- 0 => NULL,
-)
-array (
- 0 => NULL,
-)
-string(22) "array (
- 0 => NULL,
-)"
-
-
-Iteration 3
-array (
- 0 => NULL,
-)
-array (
- 0 => NULL,
-)
-string(22) "array (
- 0 => NULL,
-)"
-
-
-Iteration 4
-array (
- 0 => true,
-)
-array (
- 0 => true,
-)
-string(22) "array (
- 0 => true,
-)"
-
-
-Iteration 5
-array (
- 0 => '',
-)
-array (
- 0 => '',
-)
-string(20) "array (
- 0 => '',
-)"
-
-
-Iteration 6
-array (
- 0 => '',
-)
-array (
- 0 => '',
-)
-string(20) "array (
- 0 => '',
-)"
-
-
-Iteration 7
-array (
- 0 =>
- array (
- ),
- 1 =>
- array (
- ),
-)
-array (
- 0 =>
- array (
- ),
- 1 =>
- array (
- ),
-)
-string(55) "array (
- 0 =>
- array (
- ),
- 1 =>
- array (
- ),
-)"
-
-
-Iteration 8
-array (
- 0 =>
- array (
- 0 => 1,
- 1 => 2,
- ),
- 1 =>
- array (
- 0 => 'a',
- 1 => 'b',
- ),
-)
-array (
- 0 =>
- array (
- 0 => 1,
- 1 => 2,
- ),
- 1 =>
- array (
- 0 => 'a',
- 1 => 'b',
- ),
-)
-string(107) "array (
- 0 =>
- array (
- 0 => 1,
- 1 => 2,
- ),
- 1 =>
- array (
- 0 => 'a',
- 1 => 'b',
- ),
-)"
-
-
-Iteration 9
-array (
- 1 => 'One',
-)
-array (
- 1 => 'One',
-)
-string(23) "array (
- 1 => 'One',
-)"
-
-
-Iteration 10
-array (
- 'test' => 'is_array',
-)
-array (
- 'test' => 'is_array',
-)
-string(33) "array (
- 'test' => 'is_array',
-)"
-
-
-Iteration 11
-array (
- 0 => 0,
-)
-array (
- 0 => 0,
-)
-string(19) "array (
- 0 => 0,
-)"
-
-
-Iteration 12
-array (
- 0 => -1,
-)
-array (
- 0 => -1,
-)
-string(20) "array (
- 0 => -1,
-)"
-
-
-Iteration 13
-array (
- 0 => 10.5,
- 1 => 5.6,
-)
-array (
- 0 => 10.5,
- 1 => 5.6,
-)
-string(34) "array (
- 0 => 10.5,
- 1 => 5.6,
-)"
-
-
-Iteration 14
-array (
- 0 => 'string',
- 1 => 'test',
-)
-array (
- 0 => 'string',
- 1 => 'test',
-)
-string(41) "array (
- 0 => 'string',
- 1 => 'test',
-)"
-
-
-Iteration 15
-array (
- 0 => 'string',
- 1 => 'test',
-)
-array (
- 0 => 'string',
- 1 => 'test',
-)
-string(41) "array (
- 0 => 'string',
- 1 => 'test',
-)"
-
-*** Testing var_export() with valid objects ***
-
-*** Output for objects ***
-
-Iteration 1
-stdClass::__set_state(array(
-))
-stdClass::__set_state(array(
-))
-string(31) "stdClass::__set_state(array(
-))"
-
-
-Iteration 2
-foo::__set_state(array(
-))
-foo::__set_state(array(
-))
-string(26) "foo::__set_state(array(
-))"
-
-
-Iteration 3
-concreteClass::__set_state(array(
-))
-concreteClass::__set_state(array(
-))
-string(36) "concreteClass::__set_state(array(
-))"
-
-
-Iteration 4
-Value::__set_state(array(
- 'vars' =>
- array (
- ),
-))
-Value::__set_state(array(
- 'vars' =>
- array (
- ),
-))
-string(57) "Value::__set_state(array(
- 'vars' =>
- array (
- ),
-))"
-
-
-Iteration 5
-myClass::__set_state(array(
- 'foo_object' =>
- foo::__set_state(array(
- )),
- 'public_var' => 10,
- 'public_var1' =>
- foo::__set_state(array(
- )),
- 'private_var' =>
- foo::__set_state(array(
- )),
- 'protected_var' => NULL,
- 'proected_var' =>
- foo::__set_state(array(
- )),
-))
-myClass::__set_state(array(
- 'foo_object' =>
- foo::__set_state(array(
- )),
- 'public_var' => 10,
- 'public_var1' =>
- foo::__set_state(array(
- )),
- 'private_var' =>
- foo::__set_state(array(
- )),
- 'protected_var' => NULL,
- 'proected_var' =>
- foo::__set_state(array(
- )),
-))
-string(293) "myClass::__set_state(array(
- 'foo_object' =>
- foo::__set_state(array(
- )),
- 'public_var' => 10,
- 'public_var1' =>
- foo::__set_state(array(
- )),
- 'private_var' =>
- foo::__set_state(array(
- )),
- 'protected_var' => NULL,
- 'proected_var' =>
- foo::__set_state(array(
- )),
-))"
-
-
-Iteration 6
-myClass::__set_state(array(
- 'foo_object' =>
- foo::__set_state(array(
- )),
- 'public_var' => 10,
- 'public_var1' =>
- foo::__set_state(array(
- )),
- 'private_var' =>
- foo::__set_state(array(
- )),
- 'protected_var' => NULL,
- 'proected_var' =>
- foo::__set_state(array(
- )),
-))
-myClass::__set_state(array(
- 'foo_object' =>
- foo::__set_state(array(
- )),
- 'public_var' => 10,
- 'public_var1' =>
- foo::__set_state(array(
- )),
- 'private_var' =>
- foo::__set_state(array(
- )),
- 'protected_var' => NULL,
- 'proected_var' =>
- foo::__set_state(array(
- )),
-))
-string(293) "myClass::__set_state(array(
- 'foo_object' =>
- foo::__set_state(array(
- )),
- 'public_var' => 10,
- 'public_var1' =>
- foo::__set_state(array(
- )),
- 'private_var' =>
- foo::__set_state(array(
- )),
- 'protected_var' => NULL,
- 'proected_var' =>
- foo::__set_state(array(
- )),
-))"
-
-
-Iteration 7
-foo::__set_state(array(
-))
-foo::__set_state(array(
-))
-string(26) "foo::__set_state(array(
-))"
-
-
-Iteration 8
-foo::__set_state(array(
-))
-foo::__set_state(array(
-))
-string(26) "foo::__set_state(array(
-))"
-
-
-Iteration 9
-foo::__set_state(array(
-))
-foo::__set_state(array(
-))
-string(26) "foo::__set_state(array(
-))"
-
-
-Iteration 10
-Value::__set_state(array(
- 'vars' =>
- array (
- ),
-))
-Value::__set_state(array(
- 'vars' =>
- array (
- ),
-))
-string(57) "Value::__set_state(array(
- 'vars' =>
- array (
- ),
-))"
-
-
-Iteration 11
-concreteClass::__set_state(array(
-))
-concreteClass::__set_state(array(
-))
-string(36) "concreteClass::__set_state(array(
-))"
-
-*** Testing var_export() with valid null values ***
-
-*** Output for null values ***
-
-Iteration 1
-NULL
-NULL
-string(4) "NULL"
-
-
-Iteration 2
-NULL
-NULL
-string(4) "NULL"
-
-
-Iteration 3
-NULL
-NULL
-string(4) "NULL"
-
-
-*** Tesing with binary input ***
-'Sample_String'
-
-*** Testing error conditions ***
-
-Warning: var_export() expects at least 1 parameter, 0 given in %s on line %d
-NULL
-Warning: var_export() expects at most 2 parameters, 3 given in %s on line %d
-NULL
-
-Done
-
---UEXPECTF--
-*** Testing var_export() with integer values ***
-
-*** Output for integer values ***
-
-Iteration 1
-'0'
-'0'
-string(3) "'0'"
-
-
-Iteration 2
-'1'
-'1'
-string(3) "'1'"
-
-
-Iteration 3
-'-1'
-'-1'
-string(4) "'-1'"
-
-
-Iteration 4
-'-2147483648'
-'-2147483648'
-string(13) "'-2147483648'"
-
-
-Iteration 5
-'-2147483647'
-'-2147483647'
-string(13) "'-2147483647'"
-
-
-Iteration 6
-2147483647
-2147483647
-string(10) "2147483647"
-
-
-Iteration 7
-2147483640
-2147483640
-string(10) "2147483640"
-
-
-Iteration 8
-4667
-4667
-string(4) "4667"
-
-
-Iteration 9
-'0x12ab'
-'0x12ab'
-string(8) "'0x12ab'"
-
-
-Iteration 10
-'0Xfff'
-'0Xfff'
-string(7) "'0Xfff'"
-
-
-Iteration 11
-'0XFA'
-'0XFA'
-string(6) "'0XFA'"
-
-
-Iteration 12
--2147483648
--2147483648
-string(11) "-2147483648"
-
-
-Iteration 13
-'0x7fffffff'
-'0x7fffffff'
-string(12) "'0x7fffffff'"
-
-
-Iteration 14
-2147483647
-2147483647
-string(10) "2147483647"
-
-
-Iteration 15
-'0123'
-'0123'
-string(6) "'0123'"
-
-
-Iteration 16
-1
-1
-string(1) "1"
-
-
-Iteration 17
--2147483648
--2147483648
-string(11) "-2147483648"
-
-
-Iteration 18
-2147483647
-2147483647
-string(10) "2147483647"
-
-*** Testing var_export() with valid boolean values ***
-
-*** Output for boolean values ***
-
-Iteration 1
-1
-1
-string(1) "1"
-
-
-Iteration 2
-true
-true
-string(4) "true"
-
-
-Iteration 3
-true
-true
-string(4) "true"
-
-
-Iteration 4
-0
-0
-string(1) "0"
-
-
-Iteration 5
-false
-false
-string(5) "false"
-
-
-Iteration 6
-false
-false
-string(5) "false"
-
-*** Testing var_export() with valid float values ***
-
-*** Output for float values ***
-
-Iteration 1
-1
-1
-string(1) "1"
-
-
-Iteration 2
-true
-true
-string(4) "true"
-
-
-Iteration 3
-true
-true
-string(4) "true"
-
-
-Iteration 4
-0
-0
-string(1) "0"
-
-
-Iteration 5
-false
-false
-string(5) "false"
-
-
-Iteration 6
-false
-false
-string(5) "false"
-
-*** Testing var_export() with valid strings ***
-
-*** Output for strings ***
-
-Iteration 1
-''
-''
-string(2) "''"
-
-
-Iteration 2
-' '
-' '
-string(3) "' '"
-
-
-Iteration 3
-''
-''
-string(2) "''"
-
-
-Iteration 4
-' '
-' '
-string(3) "' '"
-
-
-Iteration 5
-'string'
-'string'
-string(8) "'string'"
-
-
-Iteration 6
-'string'
-'string'
-string(8) "'string'"
-
-
-Iteration 7
-'NULL'
-'NULL'
-string(6) "'NULL'"
-
-
-Iteration 8
-'null'
-'null'
-string(6) "'null'"
-
-
-Iteration 9
-'FALSE'
-'FALSE'
-string(7) "'FALSE'"
-
-
-Iteration 10
-'false'
-'false'
-string(7) "'false'"
-
-
-Iteration 11
-'\v'
-'\v'
-string(3) "'\v'"
-
-
-Iteration 12
-'' . "\0" . ''
-'' . "\0" . ''
-string(14) "'' . "\0" . ''"
-
-
-Iteration 13
-'\\0'
-'\\0'
-string(5) "'\\0'"
-
-
-Iteration 14
-'\\060'
-'\\060'
-string(7) "'\\060'"
-
-
-Iteration 15
-'8'
-'8'
-string(3) "'8'"
-
-
Iteration 16
'' . "\0" . 'hello' . "\0" . 'this is an test, to work with \' and ' . "\0" . ' and
and foreign chars too: bl' . "\u00E5" . 'b' . "\u00E6" . 'r' . "\u00F8" . 'l'