tony2001 Sat Apr 15 15:55:33 2006 UTC
Modified files:
/php-src/ext/sqlite sqlite.c
Log:
fix compile failure
http://cvs.php.net/viewcvs.cgi/php-src/ext/sqlite/sqlite.c?r1=1.189&r2=1.190&diff_format=u
Index: php-src/ext/sqlite/sqlite.c
diff -u php-src/ext/sqlite/sqlite.c:1.189 php-src/ext/sqlite/sqlite.c:1.190
--- php-src/ext/sqlite/sqlite.c:1.189 Wed Mar 29 15:08:52 2006
+++ php-src/ext/sqlite/sqlite.c Sat Apr 15 15:55:32 2006
@@ -17,7 +17,7 @@
| Marcus Boerger <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: sqlite.c,v 1.189 2006/03/29 15:08:52 tony2001 Exp $
+ $Id: sqlite.c,v 1.190 2006/04/15 15:55:32 tony2001 Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -995,6 +995,7 @@
zend_object_iterator *sqlite_get_iterator(zend_class_entry *ce, zval *object,
int by_ref TSRMLS_DC)
{
sqlite_object_iterator *iterator;
+ sqlite_object *obj = (sqlite_object*)
zend_object_store_get_object(object TSRMLS_CC);
if (by_ref) {
zend_error(E_ERROR, "An iterator cannot be used with foreach by
reference");
@@ -1002,8 +1003,6 @@
iterator = emalloc(sizeof(sqlite_object_iterator));
- sqlite_object *obj = (sqlite_object*)
zend_object_store_get_object(object TSRMLS_CC);
-
object->refcount++;
iterator->it.data = (void*)object;
iterator->it.funcs = ce->iterator_funcs.funcs;
@@ -1124,7 +1123,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.189 2006/03/29 15:08:52 tony2001
Exp $");
+ php_info_print_table_row(2, "PECL Module version",
PHP_SQLITE_MODULE_VERSION " $Id: sqlite.c,v 1.190 2006/04/15 15:55:32 tony2001
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();
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php