georg Tue Feb 18 03:49:00 2003 EDT Modified files: /php4/ext/mysqli php_mysqli.h mysqli_api.c mysqli_fe.c Log: added new function mysqli_stmt_store_result Index: php4/ext/mysqli/php_mysqli.h diff -u php4/ext/mysqli/php_mysqli.h:1.8 php4/ext/mysqli/php_mysqli.h:1.9 --- php4/ext/mysqli/php_mysqli.h:1.8 Sun Feb 16 10:56:57 2003 +++ php4/ext/mysqli/php_mysqli.h Tue Feb 18 03:49:00 2003 @@ -15,7 +15,7 @@ | Author: Georg Richter <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: php_mysqli.h,v 1.8 2003/02/16 15:56:57 iliaa Exp $ + $Id: php_mysqli.h,v 1.9 2003/02/18 08:49:00 georg Exp $ */ /* A little hack to prevent build break, when mysql is used together with @@ -231,6 +231,7 @@ PHP_FUNCTION(mysqli_stmt_close); PHP_FUNCTION(mysqli_stmt_errno); PHP_FUNCTION(mysqli_stmt_error); +PHP_FUNCTION(mysqli_stmt_store_result); PHP_FUNCTION(mysqli_store_result); PHP_FUNCTION(mysqli_thread_id); PHP_FUNCTION(mysqli_thread_safe); Index: php4/ext/mysqli/mysqli_api.c diff -u php4/ext/mysqli/mysqli_api.c:1.14 php4/ext/mysqli/mysqli_api.c:1.15 --- php4/ext/mysqli/mysqli_api.c:1.14 Mon Feb 17 22:12:38 2003 +++ php4/ext/mysqli/mysqli_api.c Tue Feb 18 03:49:00 2003 @@ -15,7 +15,7 @@ | Author: Georg Richter <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: mysqli_api.c,v 1.14 2003/02/18 03:12:38 iliaa Exp $ + $Id: mysqli_api.c,v 1.15 2003/02/18 08:49:00 georg Exp $ */ #ifdef HAVE_CONFIG_H @@ -1630,8 +1630,27 @@ } /* }}} */ +/* {{{ bool resource mysqli_stmt_store_result(stmt) +*/ +PHP_FUNCTION(mysqli_stmt_store_result) +{ + STMT *stmt; + zval *mysql_stmt; + + if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", +&mysql_stmt, mysqli_stmt_class_entry) == FAILURE) { + return; + } + MYSQLI_FETCH_RESOURCE(stmt, STMT *, &mysql_stmt, "mysqli_stmt"); + + if (mysql_stmt_store_result(stmt->stmt)){ + RETURN_FALSE; + } + RETURN_TRUE; +} +/* }}} */ /* {{{ proto int mysqli_thread_id(resource link) */ + PHP_FUNCTION(mysqli_thread_id) { MYSQL *mysql; Index: php4/ext/mysqli/mysqli_fe.c diff -u php4/ext/mysqli/mysqli_fe.c:1.6 php4/ext/mysqli/mysqli_fe.c:1.7 --- php4/ext/mysqli/mysqli_fe.c:1.6 Mon Feb 17 04:38:32 2003 +++ php4/ext/mysqli/mysqli_fe.c Tue Feb 18 03:49:00 2003 @@ -15,7 +15,7 @@ | Author: Georg Richter <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: mysqli_fe.c,v 1.6 2003/02/17 09:38:32 georg Exp $ + $Id: mysqli_fe.c,v 1.7 2003/02/18 08:49:00 georg Exp $ */ #ifdef HAVE_CONFIG_H @@ -110,6 +110,7 @@ PHP_FE(mysqli_stmt_errno, NULL) PHP_FE(mysqli_stmt_error, NULL) PHP_FE(mysqli_store_result, NULL) + PHP_FE(mysqli_stmt_store_result, NULL) PHP_FE(mysqli_thread_id, NULL) PHP_FE(mysqli_thread_safe, NULL) PHP_FE(mysqli_use_result, NULL) @@ -207,13 +208,14 @@ * Every user visible function must have an entry in mysqli_stmt_functions[]. */ function_entry mysqli_stmt_methods[] = { + PHP_FALIAS(affected_rows,mysqli_stmt_affected_rows,NULL) PHP_FALIAS(bind_param,mysqli_bind_param,NULL) PHP_FALIAS(bind_result,mysqli_bind_result,NULL) PHP_FALIAS(execute,mysqli_execute,NULL) PHP_FALIAS(fetch,mysqli_fetch,NULL) PHP_FALIAS(param_count,mysqli_param_count,NULL) PHP_FALIAS(send_long_data,mysqli_send_long_data,NULL) - PHP_FALIAS(affected_rows,mysqli_stmt_affected_rows,NULL) + PHP_FALIAS(store_result,mysqli_stmt_store_result,NULL) PHP_FALIAS(close,mysqli_stmt_close,NULL) PHP_FALIAS(errno,mysqli_stmt_errno,NULL) PHP_FALIAS(error,mysqli_stmt_error,NULL)
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php