From: Marcus Boerger Date: Fri, 29 Aug 2003 21:33:24 +0000 (+0000) Subject: Throw exception if user wants to pass arguments to an non existing constructor X-Git-Tag: RELEASE_0_7~368 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cb983885d11483c43db26bc28b9e0f707c16537;p=php Throw exception if user wants to pass arguments to an non existing constructor --- diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index ab431a9dc1..bac61c2ded 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -1725,7 +1725,7 @@ PHP_FUNCTION(sqlite_fetch_object) fci.symbol_table = NULL; fci.object_pp = &return_value; fci.retval_ptr_ptr = &retval_ptr; - if (ctor_params) { + if (ctor_params && Z_TYPE_P(ctor_params) != IS_NULL) { if (Z_TYPE_P(ctor_params) == IS_ARRAY) { HashTable *ht = Z_ARRVAL_P(ctor_params); Bucket *p;