public $dummy = 2;
}
-var_dump(new pq\Result, get_object_vars(new r));
+var_dump(new pq\Result);
+
+echo "Test\n";
+$v = get_object_vars(new r);
+ksort($v);
+var_dump($v);
+
?>
Done
--EXPECTF--
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
+object(pq\Result)#%d (9) {
+ ["status"]=>
+ NULL
+ ["statusMessage"]=>
+ NULL
+ ["errorMessage"]=>
+ NULL
+ ["diag"]=>
+ NULL
+ ["numRows"]=>
+ int(0)
+ ["numCols"]=>
+ int(0)
+ ["affectedRows"]=>
+ int(0)
+ ["fetchType"]=>
+ int(0)
+ ["autoConvert"]=>
+ int(65535)
+}
+Test
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
-object(pq\Result)#%d (8) {
- ["status"]=>
- NULL
- ["statusMessage"]=>
- NULL
- ["errorMessage"]=>
- NULL
- ["numRows"]=>
- int(0)
- ["numCols"]=>
- int(0)
+
+Warning: pq\Result not initialized in %s on line %d
+
+Warning: pq\Result not initialized in %s on line %d
+array(10) {
["affectedRows"]=>
int(0)
- ["fetchType"]=>
- int(0)
["autoConvert"]=>
int(65535)
-}
-array(9) {
+ ["diag"]=>
+ NULL
["dummy"]=>
int(2)
- ["status"]=>
- NULL
- ["statusMessage"]=>
- NULL
["errorMessage"]=>
NULL
- ["numRows"]=>
+ ["fetchType"]=>
int(0)
["numCols"]=>
int(0)
- ["affectedRows"]=>
- int(0)
- ["fetchType"]=>
+ ["numRows"]=>
int(0)
- ["autoConvert"]=>
- int(65535)
+ ["status"]=>
+ NULL
+ ["statusMessage"]=>
+ NULL
}
Done