Bug #68260 [Opn->Csd]: SQLite3Result::fetchArray declares wrong required_num_args

From: Date: Fri, 09 Jan 2015 15:26:52 +0000
Subject: Bug #68260 [Opn->Csd]: SQLite3Result::fetchArray declares wrong required_num_args
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189838@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68260&edit=1 ID: 68260 Updated by: jpauli@php.net Reported by: stesie at brokenpipe dot de Summary: SQLite3Result::fetchArray declares wrong required_num_args -Status: Open +Status: Closed Type: Bug Package: SQLite related Operating System: unrelated PHP Version: master-Git-2014-10-18 (Git) Block user comment: N Private report: N New Comment: Automatic comment on behalf of jpauli Revision: http://git.php.net/?p=php-src.git;a=commit;h=dc810543cfaedd659a81507887e242a3680d5883 Log: Fix bug #68260 Previous Comments: ------------------------------------------------------------------------ [2014-10-18 21:32:03] stesie at brokenpipe dot de Description: ------------ The SQLite3Result::fetchArray has on *optional* argument, the implementation also handles it as an optional argument. However the corresponding ARG_INFO_EX block declares a mandatory argument (4th macro parameter): --- BEGIN --- ZEND_BEGIN_ARG_INFO_EX(arginfo_sqlite3result_fetcharray, 0, 0, 1) ZEND_ARG_INFO(0, mode) ZEND_END_ARG_INFO() --- END --- This does *not* cause problems with the PHP interpreter itself, since it allows calling a function with to few arguments ... after all it's up to the called function to handle that situation well. However there are extensions (namely "V8Js"), that aim at sandboxing user code and hence apply stricter rules. Namely V8Js throws an exception in case too few arguments are provided. Therefore I ask you to please fix the arg info. Link to bug report against V8Js: https://github.com/preillyme/v8js/issues/26 cheers ~stesie ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68260&edit=1

« previous php.bugs (#189838) next »