summaryrefslogtreecommitdiff
path: root/ext/sqlite3
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2008-11-20 10:22:55 +0000
committerPierre Joye <pajoye@php.net>2008-11-20 10:22:55 +0000
commit2295b682a4f4f272a4565d8836b495e5e43f38a6 (patch)
treed8962c9f897c6caf883d11dadf1e1fe6f02e45c7 /ext/sqlite3
parent756aef0607eaf4a7b655688ebe0b980144244557 (diff)
downloadphp-git-2295b682a4f4f272a4565d8836b495e5e43f38a6.tar.gz
- MFH: declarations must be.. 1st
Diffstat (limited to 'ext/sqlite3')
-rw-r--r--ext/sqlite3/sqlite3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c
index 1506cef5a8..a5c4954bea 100644
--- a/ext/sqlite3/sqlite3.c
+++ b/ext/sqlite3/sqlite3.c
@@ -1380,9 +1380,11 @@ PHP_METHOD(sqlite3result, __construct)
{
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");