[Phplib-trackers] [ phplib-Bugs-445393 ] error handling problem in db_mysql.inc
Brought to you by:
nhruby,
richardarcher
|
From: <no...@so...> - 2001-08-13 23:01:43
|
Bugs item #445393, was opened at 2001-07-27 18:36 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=403611&aid=445393&group_id=31885 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 1 Submitted By: Chris Johnson (chaska) >Assigned to: Richard Archer (richardarcher) Summary: error handling problem in db_mysql.inc Initial Comment: db_mysql.inc -- lock() has the following error handling code: if (!$res) { $this->halt("lock($table, $mode) failed."); return 0; } This doesn't work well when $table is an array. ---------------------------------------------------------------------- >Comment By: Richard Archer (richardarcher) Date: 2001-08-13 16:01 Message: Logged In: YES user_id=279311 Resolved as per previous comment. This also prevents leakage of database configuration on error, which must be a good thing. Change made to both -stable and -devel. ---------------------------------------------------------------------- Comment By: Richard Archer (richardarcher) Date: 2001-08-12 02:23 Message: Logged In: YES user_id=279311 Perhaps the best way to approach this problem would be to change the error handling to: $this->halt("lock() failed."); This is the same behaviour as the following function unlock(). ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=403611&aid=445393&group_id=31885 |