diff options
author | Georg Richter <georg@php.net> | 2003-02-22 07:31:01 +0000 |
---|---|---|
committer | Georg Richter <georg@php.net> | 2003-02-22 07:31:01 +0000 |
commit | b63fbf276303ad0e5f78c0302afe6c4e45b6d420 (patch) | |
tree | a15674fb03f2e0720094721bad01f8c20bb7e73e /ext/mysqli/php_mysqli.h | |
parent | a7df9995cc4209ad45b3f25b11488bbb2025fb66 (diff) | |
download | php-git-b63fbf276303ad0e5f78c0302afe6c4e45b6d420.tar.gz |
Fixed bug with stmt_close (libmysql bk version 1.1477 required)
Fixed bug with mysql_execute and float values
Diffstat (limited to 'ext/mysqli/php_mysqli.h')
-rw-r--r-- | ext/mysqli/php_mysqli.h | 12 |
1 files changed, 9 insertions, 3 deletions
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) \ { \ |