Bug #13924 Updated: PEAR erroneously thinks LOCK TABLES queries return errors

From: Date: Mon, 05 Nov 2001 02:56:28 +0000
Subject: Bug #13924 Updated: PEAR erroneously thinks LOCK TABLES queries return errors
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-2545@lists.php.net to get a copy of this message
ID: 13924 Updated by: cox Reported By: vigna@dsi.unimi.it Old Status: Open Status: Closed Bug Type: PEAR related Operating System: Red Hat Linux 7.2 PHP Version: 4.0.6 New Comment: This code works in the last CVS version, please try it and reopen the bug report if find any error. Tomas V.V.Cox Previous Comments: ------------------------------------------------------------------------ [2001-11-04 18:17:10] vigna@dsi.unimi.it When a query using the LOCK TABLES MySQL command is issued through PEAR, it believes it returns an error even if this is not true. For instance, <? require_once("DB.php"); $db = DB::connect("mysql://root@localhost/DSI"); $rs = $db->query("LOCK TABLE persona READ"); print_r($rs); ?> leaves in the log [04-Nov-2001 23:14:17] PHP Warning: Undefined offset: 0 in /usr/share/php/DB/common.php on line 126 and outputs db_error Object ( [error_message_prefix] => [error_prepend] => [error_append] => [mode] => 1 [level] => 1024 [code] => -1 [message] => DB Error: unknown error [debuginfo] => [userinfo] => LOCK TABLE persona READ [callback] => ) ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13924&edit=1

« previous php.pear.dev (#2545) next »