Re: cvs: php-src /ext/sqlite sqlite.c

From: Date: Sat, 19 Jul 2003 11:16:16 +0000
Subject: Re: cvs: php-src /ext/sqlite sqlite.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-22649@lists.php.net to get a copy of this message
Why not use zend_list_find() (without the _)? Andi At 05:52 AM 14/7/2003 +0000, Sebastian Bergmann wrote:
sebastian               Mon Jul 14 01:52:57 2003 EDT
Modified files:
    /php-src/ext/sqlite sqlite.c
Log: ZTS fix. Index: php-src/ext/sqlite/sqlite.c diff -u php-src/ext/sqlite/sqlite.c:1.75 php-src/ext/sqlite/sqlite.c:1.76
--- php-src/ext/sqlite/sqlite.c:1.75    Sun Jul 13 05:38:33 2003
+++ php-src/ext/sqlite/sqlite.c Mon Jul 14 01:52:57 2003 @@ -17,7 +17,7 @@
    |          Marcus Boerger <helly@php.net>                              |
    +----------------------------------------------------------------------+
- $Id: sqlite.c,v 1.75 2003/07/13 09:38:33 wez Exp $ + $Id: sqlite.c,v 1.76 2003/07/14 05:52:57 sebastian Exp $ */ #ifdef HAVE_CONFIG_H @@ -953,7 +953,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.75 2003/07/13 09:38:33 wez Exp $");
+       php_info_print_table_row(2, "PECL Module version", PHP_SQLITE_MODULE_VERSION " $Id: sqlite.c,v 1.76 2003/07/14 05:52:57 sebastian 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();
@@ -1081,7 +1081,7 @@
                                int type;
                                /* sanity check to ensure that the resource is still a valid regular resource
                                * number */
-                               if (_zend_list_find(db->rsrc_id, &type) == db) {
+                               if (_zend_list_find(db->rsrc_id, &type TSRMLS_CC) == db) {
                                        /* already accessed this request; map it */
                                        zend_list_addref(db->rsrc_id);
                                        ZVAL_RESOURCE(return_value, db->rsrc_id);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.cvs (#22649) next »