2013-05-14 13:50:22 +02:00
|
|
|
--TEST--
|
|
|
|
empty result
|
|
|
|
--SKIPIF--
|
|
|
|
<?php
|
|
|
|
include "_skipif.inc";
|
|
|
|
?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
echo "Test\n";
|
|
|
|
|
|
|
|
include "_setup.inc";
|
|
|
|
|
|
|
|
class r extends pq\Result {
|
|
|
|
public $dummy = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
var_dump(new pq\Result, get_object_vars(new r));
|
|
|
|
?>
|
|
|
|
Done
|
|
|
|
--EXPECTF--
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
2014-09-12 16:52:39 +02:00
|
|
|
|
|
|
|
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) {
|
2013-05-14 13:50:22 +02:00
|
|
|
["status"]=>
|
|
|
|
NULL
|
|
|
|
["statusMessage"]=>
|
|
|
|
NULL
|
|
|
|
["errorMessage"]=>
|
|
|
|
NULL
|
|
|
|
["numRows"]=>
|
|
|
|
int(0)
|
|
|
|
["numCols"]=>
|
|
|
|
int(0)
|
|
|
|
["affectedRows"]=>
|
|
|
|
int(0)
|
|
|
|
["fetchType"]=>
|
|
|
|
int(0)
|
2014-09-12 16:52:39 +02:00
|
|
|
["autoConvert"]=>
|
|
|
|
int(0)
|
2013-05-14 13:50:22 +02:00
|
|
|
}
|
2014-09-12 16:52:39 +02:00
|
|
|
array(9) {
|
2013-05-14 13:50:22 +02:00
|
|
|
["dummy"]=>
|
|
|
|
int(2)
|
|
|
|
["status"]=>
|
|
|
|
NULL
|
|
|
|
["statusMessage"]=>
|
|
|
|
NULL
|
|
|
|
["errorMessage"]=>
|
|
|
|
NULL
|
|
|
|
["numRows"]=>
|
|
|
|
int(0)
|
|
|
|
["numCols"]=>
|
|
|
|
int(0)
|
|
|
|
["affectedRows"]=>
|
|
|
|
int(0)
|
|
|
|
["fetchType"]=>
|
|
|
|
int(0)
|
2014-09-12 16:52:39 +02:00
|
|
|
["autoConvert"]=>
|
|
|
|
int(0)
|
2013-05-14 13:50:22 +02:00
|
|
|
}
|
|
|
|
Done
|