cvs: php4 /ext/dba/tests dba_handler.inc
| From: | Ilia Alshanetsky | Date: | Fri, 27 Dec 2002 04:46:40 +0000 |
| Subject: | cvs: php4 /ext/dba/tests dba_handler.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17433@lists.php.net to get a copy of this message | ||
iliaa Thu Dec 26 23:46:40 2002 EDT
Modified files:
/php4/ext/dba/tests dba_handler.inc
Log:
Made DBA tests not dependant on error reporting settings.
Index: php4/ext/dba/tests/dba_handler.inc
diff -u php4/ext/dba/tests/dba_handler.inc:1.9 php4/ext/dba/tests/dba_handler.inc:1.10
--- php4/ext/dba/tests/dba_handler.inc:1.9 Fri Dec 20 12:47:58 2002
+++ php4/ext/dba/tests/dba_handler.inc Thu Dec 26 23:46:40 2002
@@ -67,7 +67,7 @@
} else {
echo "Error reading database\n";
}
- if ($dba_reader) {
+ if (!empty($dba_reader)) {
dba_close($dba_reader);
}
if (($db_file = dba_popen($db_filename,
'r'.($handler!='gdbm'?'-':''), $handler))!==FALSE) {