cvs: pecl(PECL_4_3) /sqlite sqlite.c php-src NEWS
| From: | Marcus Boerger | Date: | Sat, 27 Dec 2003 22:20:57 +0000 |
| Subject: | cvs: pecl(PECL_4_3) /sqlite sqlite.c php-src NEWS | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-632@lists.php.net to get a copy of this message | ||
helly Sat Dec 27 17:20:57 2003 EDT
Modified files: (Branch: PECL_4_3)
/php-src NEWS
/pecl/sqlite sqlite.c
Log:
Fixed Bug #25329 sqlite_create_function with method and reference to $this
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.512 php-src/NEWS:1.1247.2.513
--- php-src/NEWS:1.1247.2.512 Thu Dec 25 17:33:50 2003
+++ php-src/NEWS Sat Dec 27 17:20:55 2003
@@ -87,6 +87,8 @@
- Fixed bug #25664 (calling ITypeInfo::Invoke with bogus params). (Wez)
- Fixed bug #25581 (getimagesize () return incorrect values on bitmap
(os2) files). (Marcus)
+- Fixed bug #25329 (sqlite_create_function with method and reference to $this).
+ (Marcus).
- Fixed bug #24773 (Unsetting string offsets crashes PHP). (Moriyoshi, Sara)
3 Nov 2003, Version 4.3.4
Index: pecl/sqlite/sqlite.c
diff -u pecl/sqlite/sqlite.c:1.62.2.12 pecl/sqlite/sqlite.c:1.62.2.13
--- pecl/sqlite/sqlite.c:1.62.2.12 Sun Dec 14 13:47:13 2003
+++ pecl/sqlite/sqlite.c Sat Dec 27 17:20:56 2003
@@ -17,7 +17,7 @@
| Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
- $Id: sqlite.c,v 1.62.2.12 2003/12/14 18:47:13 iliaa Exp $
+ $Id: sqlite.c,v 1.62.2.13 2003/12/27 22:20:56 helly Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -261,22 +261,20 @@
static int php_sqlite_forget_persistent_id_numbers(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
- struct php_sqlite_db *db;
+ struct php_sqlite_db *db = (struct php_sqlite_db*)rsrc->ptr;
+ /* prevent bad mojo if someone tries to use a previously registered function in the next request
*/
+ zend_hash_apply(&db->callbacks, (apply_func_t)php_sqlite_callback_invalidator TSRMLS_CC);
+
if (Z_TYPE_P(rsrc) != le_sqlite_pdb) {
return 0;
}
- db = (struct php_sqlite_db*)rsrc->ptr;
-
db->rsrc_id = FAILURE;
/* don't leave pending commits hanging around */
sqlite_exec(db->db, "ROLLBACK", NULL, NULL, NULL);
- /* prevent bad mojo if someone tries to use a previously registered function in the next request
*/
- zend_hash_apply(&db->callbacks, (apply_func_t)php_sqlite_callback_invalidator TSRMLS_CC);
-
return 0;
}
@@ -669,7 +667,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.12 2003/12/14 18:47:13 iliaa Exp $");
+ php_info_print_table_row(2, "PECL Module version", PHP_SQLITE_MODULE_VERSION " $Id:
sqlite.c,v 1.62.2.13 2003/12/27 22:20:56 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();