Bug or intentional change?

From: Date: Tue, 10 Aug 1999 20:48:11 +0000
Subject: Bug or intentional change?
Groups: php.version4 
Request: Send a blank email to php-version4+get-3315@lists.php.net to get a copy of this message
I recently posted about a problem that has developed since upgrading php 4 to beta2 where phplib mysql connections were failing. The error message I would receive on any page where phplib was establishing a connection to mysql was: Database error: Invalid SQL: MySQL Error: 1065 (Query was empty) Session halted. Thanks to help from another list member I have been able to identify the code problem in db_mysql.inc and replace it with code that works. Here is the code that _did_ work in all prior versions of php but now yields the abover error: /* public: constructor */ function DB_Sql($query = "") { $this->query($query); } Here is the code supplied to me by another list member that appears to work with php4 beta2 (though I don't know if there are unexpected side effects of this change): /* public: constructor */ function DB_Sql($query = "") { if (!empty($query)) { $this->query($query); } } Is this the result of some intentional change in php4 beta2 or a bug? Anyone know if there are "surprise" effects of using this code with phplib 7? Regards, Eric Mings Ph.D.

« previous php.version4 (#3315) next »