From b63fbf276303ad0e5f78c0302afe6c4e45b6d420 Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Sat, 22 Feb 2003 07:31:01 +0000 Subject: Fixed bug with stmt_close (libmysql bk version 1.1477 required) Fixed bug with mysql_execute and float values --- ext/mysqli/php_mysqli.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'ext/mysqli/php_mysqli.h') diff --git a/ext/mysqli/php_mysqli.h b/ext/mysqli/php_mysqli.h index fb34f8f5fd..be3c67d439 100644 --- a/ext/mysqli/php_mysqli.h +++ b/ext/mysqli/php_mysqli.h @@ -1,8 +1,8 @@ /* +----------------------------------------------------------------------+ - | PHP Version 4 | + | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2002 The PHP Group | + | Copyright (c) 1997-2003 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -113,7 +113,13 @@ PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry * TSRML php_error(E_WARNING, "Couldn't fetch %s", intern->zo.ce->name);\ RETURN_NULL();\ }\ -} + if (!strcmp((char *)__name, "mysqli_stmt")) {\ + if (!((STMT *)__ptr)->stmt->mysql) {\ + php_error(E_WARNING, "Statement isn't valid anymore");\ + RETURN_NULL();\ + }\ + }\ +} #define MYSQLI_CLEAR_RESOURCE(__id) \ { \ -- cgit v1.2.1