1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-30 04:19:49 +01:00
ext-pq/tests/res001.phpt

108 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2013-05-14 13:50:22 +02:00
--TEST--
empty result
--SKIPIF--
<?php
include "_skipif.inc";
?>
--FILE--
<?php
echo "Test\n";
include "_setup.inc";
2014-09-17 09:39:42 +02:00
set_error_handler(function($code, $error, $file, $line) {
printf("\nWarning: %s in %s on line %d\n", $error, $file, $line);
return true;
}, E_RECOVERABLE_ERROR);
2013-05-14 13:50:22 +02:00
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
2016-05-17 12:13:20 +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 (9) {
2013-05-14 13:50:22 +02:00
["status"]=>
NULL
["statusMessage"]=>
NULL
["errorMessage"]=>
NULL
2016-05-17 12:13:20 +02:00
["diag"]=>
NULL
2013-05-14 13:50:22 +02:00
["numRows"]=>
int(0)
["numCols"]=>
int(0)
["affectedRows"]=>
int(0)
["fetchType"]=>
int(0)
2014-09-12 16:52:39 +02:00
["autoConvert"]=>
2014-09-17 14:13:53 +02:00
int(65535)
2013-05-14 13:50:22 +02:00
}
2016-05-17 12:13:20 +02:00
array(10) {
2013-05-14 13:50:22 +02:00
["dummy"]=>
int(2)
["status"]=>
NULL
["statusMessage"]=>
NULL
["errorMessage"]=>
NULL
2016-05-17 12:13:20 +02:00
["diag"]=>
NULL
2013-05-14 13:50:22 +02:00
["numRows"]=>
int(0)
["numCols"]=>
int(0)
["affectedRows"]=>
int(0)
["fetchType"]=>
int(0)
2014-09-12 16:52:39 +02:00
["autoConvert"]=>
2014-09-17 14:13:53 +02:00
int(65535)
2013-05-14 13:50:22 +02:00
}
Done