mirror of
https://github.com/php/php-src.git
synced 2024-10-07 09:46:10 +00:00
53 lines
649 B
Plaintext
53 lines
649 B
Plaintext
|
--TEST--
|
||
|
PDO_SQLite2: fetch() and while()
|
||
|
--SKIPIF--
|
||
|
<?php # vim:ft=php
|
||
|
require_once('skipif.inc');
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
require_once('connection.inc');
|
||
|
require_once('prepare.inc');
|
||
|
|
||
|
require_once($PDO_TESTS . 'pdo_019.inc');
|
||
|
|
||
|
?>
|
||
|
===DONE===
|
||
|
<?php exit(0); ?>
|
||
|
--EXPECTF--
|
||
|
===INIT===
|
||
|
int(1)
|
||
|
int(1)
|
||
|
int(1)
|
||
|
int(1)
|
||
|
string(1) "4"
|
||
|
array(4) {
|
||
|
[0]=>
|
||
|
string(7) "String0"
|
||
|
[1]=>
|
||
|
string(7) "String1"
|
||
|
[2]=>
|
||
|
string(7) "String2"
|
||
|
[3]=>
|
||
|
string(7) "String3"
|
||
|
}
|
||
|
===WHILE===
|
||
|
array(1) {
|
||
|
[0]=>
|
||
|
string(7) "String0"
|
||
|
}
|
||
|
array(1) {
|
||
|
[1]=>
|
||
|
string(7) "String1"
|
||
|
}
|
||
|
array(1) {
|
||
|
[2]=>
|
||
|
string(7) "String2"
|
||
|
}
|
||
|
array(1) {
|
||
|
[3]=>
|
||
|
string(7) "String3"
|
||
|
}
|
||
|
===DONE===
|