PHP CVS 19 CVS PHP SRC EXT SQLITE TESTS SQLITE SPL 001 PHPT
Date: Wed, 09 Jul 2003 17:05:09 -0000

Subject: cvs: php-src /ext/sqlite/tests sqlite_spl_001.phpt
From: helly@no-spam (Marcus Boerger)

helly Wed Jul 9 13:05:09 2003 EDT
Modified files: /php-src/ext/sqlite/tests sqlite_spl_001.phpt Log:
Don't use class_implements() for the moment Index: php-src/ext/sqlite/tests/sqlite_spl_001.phpt diff -u php-src/ext/sqlite/tests/sqlite_spl_001.phpt:1.1 php-src/ext/sqlite/tests/sqlite_spl_001.phpt:1.2

--- php-src/ext/sqlite/tests/sqlite_spl_001.phpt:1.1 Sun Jun 22 13:19:46 2003
+++ php-src/ext/sqlite/tests/sqlite_spl_001.phpt Wed Jul 9 13:05:09 2003
@@no-spam -5,7 +5,7 @@no-spam --SKIPIF--
<?php # vim:ft=php if (!extension_loaded("sqlite")) print "skip"; -if (!extension_loaded("spl")) print "skip: SPL is not installed"; +if (!class_exists("spl_forward")) print "skip: class spl_forward is not installed";
?>
--FILE--
<?php @@no-spam -25,7 +25,7 @@no-spam echo "====UNBUFFERED====\n";
$r = $db->unbuffered_query("SELECT a from strings", SQLITE_NUM);
-var_dump(class_implements($r));
+//var_dump(class_implements($r));
foreach($r as $row) {
var_dump($row);
}
@@no-spam -39,7 +39,7 @@no-spam }
echo "====BUFFERED====\n";
$r = $db->query("SELECT a from strings", SQLITE_NUM);
-var_dump(class_implements($r));
+//var_dump(class_implements($r));
foreach($r as $row) {
var_dump($row);
}
@@no-spam -51,10 +51,6 @@no-spam --EXPECT--
====UNBUFFERED====
array(1) {
- ["spl_forward"]=>
- string(11) "spl_forward"
-}
-array(1) {
[0]=>
string(3) "one"
}
@@no-spam -81,12 +77,6 @@no-spam string(5) "three"
}
====BUFFERED====
-array(2) {
- ["spl_forward"]=>
- string(11) "spl_forward"
- ["spl_sequence"]=>
- string(12) "spl_sequence"
-}
array(1) {
[0]=>
string(3) "one"