[Phplib-users] Bugs php-lib/php/...
Brought to you by:
nhruby,
richardarcher
From: Guillaume D. <gde...@pr...> - 2001-08-18 15:46:37
|
Hi, Bugs in : php-lib/php/db/mysql/db_sql.inc in line 186 : $q = sprintf('select p_nextid from %s where p_seq_name = '%s'', should be replace by : $q = sprintf("select p_nextid from %s where p_seq_name = '%s'", in line 195 : $q = sprintf('insert into %s ( p_seq_name, p_nextid ) values('%s', %s)', should be replace by : $q = sprintf("insert into %s ( p_seq_name, p_nextid ) values('%s', %s)", in line 204 : $q = sprintf('update %s set p_nextid = '%s' where p_seq_name = '%s'', should be replace by : $q = sprintf("update %s set p_nextid = '%s' where p_seq_name = '%s'", Moreover : /* private: error handling */ function halt($msg) { $this->Error = @mysql_error($this->Link_ID); $this->Errno = @mysql_errno($this->Link_ID); if ($this->Halt_On_Error == "no") return; $this->haltmsg($msg); if ($this->Halt_On_Error != "report") die("Session halted."); } function haltmsg($msg) { printf("</td></tr></table><b>Database error:</b> %s<br>\n", $msg); printf("<b>MySQL Error</b>: %s (%s)<br>\n", $this->Errno, $this->Error); } is missing in this file... Bugs in : php-lib/php/local4.inc in line 73 : var $mode = "user" should be : var $mode = "user"; Moreover in php-lib/php/ local4..inc and local.inc : class Example_Default_Auth extends Example_Auth { var $classname = "Example_Default_Auth"; var $nobody = true; } is missing... I hope that it helps you to upgrade the CVS repository. Bye Guillaume |