diff options
author | Marcus Boerger <helly@php.net> | 2003-08-29 21:33:24 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-08-29 21:33:24 +0000 |
commit | 0cb983885d11483c43db26bc28b9e0f707c16537 (patch) | |
tree | a6f8a8da3bb9ef491ff724b37cea54c47ecc9604 /ext/sqlite/sqlite.c | |
parent | adaf6429a7af599d726377c5c272489c41dbc833 (diff) | |
download | php-git-0cb983885d11483c43db26bc28b9e0f707c16537.tar.gz |
Throw exception if user wants to pass arguments to an non existing constructor
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r-- | ext/sqlite/sqlite.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |