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

From: Date: Fri, 09 Jan 2015 15:28:20 +0000
Subject: Bug #68260 [Fbk->Csd]: SQLite3Result::fetchArray declares wrong required_num_args
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189840@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: Feedback +Status: Closed Type: Bug Package: SQLite related Operating System: unrelated PHP Version: master-Git-2014-10-18 (Git) -Assigned To: +Assigned To: jpauli Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2015-01-09 15:27:56] jpauli@php.net Please try using this snapshot: http://snaps.php.net/php5.5-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2015-01-09 15:27:30] jpauli@php.net Automatic comment on behalf of jpauli Revision: http://git.php.net/?p=php-src.git;a=commit;h=dc810543cfaedd659a81507887e242a3680d5883 Log: Fix bug #68260 ------------------------------------------------------------------------ [2015-01-09 15:27:11] jpauli@php.net Automatic comment on behalf of jpauli Revision: http://git.php.net/?p=php-src.git;a=commit;h=dc810543cfaedd659a81507887e242a3680d5883 Log: Fix bug #68260 ------------------------------------------------------------------------ [2015-01-09 15:26:50] jpauli@php.net Automatic comment on behalf of jpauli Revision: http://git.php.net/?p=php-src.git;a=commit;h=dc810543cfaedd659a81507887e242a3680d5883 Log: Fix bug #68260 ------------------------------------------------------------------------ [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 (#189840) next »