PHP 4.0 Bug #6311: MySQL: Unable to save result set after "INSERT" queries.
| From: | erik at ic dot chalmers dot se | Date: | Wed, 23 Aug 2000 13:22:55 +0000 |
| Subject: | PHP 4.0 Bug #6311: MySQL: Unable to save result set after "INSERT" queries. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-30362@lists.php.net to get a copy of this message | ||
From: erik@ic.chalmers.se
Operating system: Debian GNU/Linux
PHP version: 4.0.1pl2
PHP Bug Type: MySQL related
Bug description: MySQL: Unable to save result set after "INSERT" queries.
After upgrading PHP, Apache and MySQL simultaneously I noticed the following error all over my site
whenever mysql_query is called with an "INSERT" statement:
Warning: MySQL: Unable to save result set.
In this case mysql_query returns false. Looking near line 775 in ext/mysql/php_mysql.c it seems to
me that
PHP_MYSQL_VALID_RESULT is returning true when it should return false.
As a temporary fix I've disabled warnings but I find them very useful while writing new
scripts, so I'd like to be able to turn them back on.
Versions (last suffix is the Debian package version):
MySQL 3.23.21 - 3
PHP 4.0.1pl2 - 2
Apache 1.3.12 - 2