cvs: pecl(PECL_4_3) /sqlite php_sqlite.h sqlite.c

From: Date: Thu, 26 Jun 2003 21:10:10 +0000
Subject: cvs: pecl(PECL_4_3) /sqlite php_sqlite.h sqlite.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-327@lists.php.net to get a copy of this message
helly Thu Jun 26 17:10:10 2003 EDT Modified files: (Branch: PECL_4_3) /pecl/sqlite php_sqlite.h sqlite.c Log: MFH: Rename sqlite_fetch_string() to sqlite_fetch_single() + alias Index: pecl/sqlite/php_sqlite.h diff -u pecl/sqlite/php_sqlite.h:1.23.2.1 pecl/sqlite/php_sqlite.h:1.23.2.2 --- pecl/sqlite/php_sqlite.h:1.23.2.1 Thu Jun 26 08:11:29 2003 +++ pecl/sqlite/php_sqlite.h Thu Jun 26 17:10:10 2003 @@ -17,7 +17,7 @@ | Marcus Boerger <helly@php.net> | +----------------------------------------------------------------------+ - $Id: php_sqlite.h,v 1.23.2.1 2003/06/26 12:11:29 edink Exp $ + $Id: php_sqlite.h,v 1.23.2.2 2003/06/26 21:10:10 helly Exp $ */ #ifndef PHP_SQLITE_H @@ -51,7 +51,7 @@ PHP_FUNCTION(sqlite_single_query); PHP_FUNCTION(sqlite_fetch_array); -PHP_FUNCTION(sqlite_fetch_string); +PHP_FUNCTION(sqlite_fetch_single); PHP_FUNCTION(sqlite_fetch_all); PHP_FUNCTION(sqlite_current); PHP_FUNCTION(sqlite_column); Index: pecl/sqlite/sqlite.c diff -u pecl/sqlite/sqlite.c:1.62.2.3 pecl/sqlite/sqlite.c:1.62.2.4 --- pecl/sqlite/sqlite.c:1.62.2.3 Thu Jun 26 17:03:12 2003 +++ pecl/sqlite/sqlite.c Thu Jun 26 17:10:10 2003 @@ -17,7 +17,7 @@ | Marcus Boerger <helly@php.net> | +----------------------------------------------------------------------+ - $Id: sqlite.c,v 1.62.2.3 2003/06/26 21:03:12 helly Exp $ + $Id: sqlite.c,v 1.62.2.4 2003/06/26 21:10:10 helly Exp $ */ #ifdef HAVE_CONFIG_H @@ -121,7 +121,8 @@ PHP_FE(sqlite_array_query, NULL) PHP_FE(sqlite_single_query, NULL) PHP_FE(sqlite_fetch_array, NULL) - PHP_FE(sqlite_fetch_string, NULL) + PHP_FE(sqlite_fetch_single, NULL) + PHP_FALIAS(sqlite_fetch_string, sqlite_fetch_single, NULL) PHP_FE(sqlite_fetch_all, NULL) PHP_FE(sqlite_current, NULL) PHP_FE(sqlite_column, NULL) @@ -667,7 +668,7 @@ { php_info_print_table_start(); php_info_print_table_header(2, "SQLite support", "enabled"); - php_info_print_table_row(2, "PECL Module version", PHP_SQLITE_MODULE_VERSION " $Id: sqlite.c,v 1.62.2.3 2003/06/26 21:03:12 helly Exp $"); + php_info_print_table_row(2, "PECL Module version", PHP_SQLITE_MODULE_VERSION " $Id: sqlite.c,v 1.62.2.4 2003/06/26 21:10:10 helly Exp $"); php_info_print_table_row(2, "SQLite Library", sqlite_libversion()); php_info_print_table_row(2, "SQLite Encoding", sqlite_libencoding()); php_info_print_table_end(); @@ -1306,8 +1307,8 @@ } /* }}} */ -/* {{{ php_sqlite_fetch_string */ -static void php_sqlite_fetch_string(struct php_sqlite_result *res, zend_bool decode_binary, zval *return_value TSRMLS_DC) +/* {{{ php_sqlite_fetch_single */ +static void php_sqlite_fetch_single(struct php_sqlite_result *res, zend_bool decode_binary, zval *return_value TSRMLS_DC) { int j, buffered = res->buffered; const char **rowdata, **colnames; @@ -1402,7 +1403,7 @@ while (rres->curr_row < rres->nrows) { MAKE_STD_ZVAL(ent); - php_sqlite_fetch_string(rres, decode_binary, ent TSRMLS_CC); + php_sqlite_fetch_single(rres, decode_binary, ent TSRMLS_CC); /* if set and we only have 1 row in the result set, return the result as a string. */ if (srow) { @@ -1427,7 +1428,7 @@ /* {{{ proto string sqlite_fetch_array(resource result [, bool decode_binary]) Fetches first column of a result set as a string */ -PHP_FUNCTION(sqlite_fetch_string) +PHP_FUNCTION(sqlite_fetch_single) { zval *zres; zend_bool decode_binary = 1; @@ -1441,7 +1442,7 @@ } ZEND_FETCH_RESOURCE(res, struct php_sqlite_result *, &zres, -1, "sqlite result", le_sqlite_result); - php_sqlite_fetch_string(res, decode_binary, return_value TSRMLS_CC); + php_sqlite_fetch_single(res, decode_binary, return_value TSRMLS_CC); } /* }}} */

« previous php.pecl.cvs (#327) next »