cvs: php-src /ext/sqlite3 sqlite3.c
| From: | Pierre-Alain Joye | Date: | Thu, 20 Nov 2008 10:20:37 +0000 |
| Subject: | cvs: php-src /ext/sqlite3 sqlite3.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-54333@lists.php.net to get a copy of this message | ||
pajoye Thu Nov 20 10:20:37 2008 UTC
Modified files:
/php-src/ext/sqlite3 sqlite3.c
Log:
- declarations must be.. 1st
http://cvs.php.net/viewvc.cgi/php-src/ext/sqlite3/sqlite3.c?r1=1.20&r2=1.21&diff_format=u
Index: php-src/ext/sqlite3/sqlite3.c
diff -u php-src/ext/sqlite3/sqlite3.c:1.20 php-src/ext/sqlite3/sqlite3.c:1.21
--- php-src/ext/sqlite3/sqlite3.c:1.20 Wed Nov 19 01:59:07 2008
+++ php-src/ext/sqlite3/sqlite3.c Thu Nov 20 10:20:37 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sqlite3.c,v 1.20 2008/11/19 01:59:07 colder Exp $ */
+/* $Id: sqlite3.c,v 1.21 2008/11/20 10:20:37 pajoye Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1409,9 +1409,10 @@
{
php_sqlite3_result *result_obj;
zval *object = getThis();
- result_obj = (php_sqlite3_result *)zend_object_store_get_object(object TSRMLS_CC);
zend_error_handling error_handling;
+ result_obj = (php_sqlite3_result *)zend_object_store_get_object(object TSRMLS_CC);
+
zend_replace_error_handling(EH_THROW, NULL, &error_handling TSRMLS_CC);
php_error_docref(NULL TSRMLS_CC, E_WARNING, "SQLite3Result cannot be directly
instantiated");