Bug #68260 [NEW]: SQLite3Result::fetchArray declares wrong required_num_args
| From: | stesie at brokenpipe dot de | Date: | Sat, 18 Oct 2014 21:32:04 +0000 |
| Subject: | Bug #68260 [NEW]: SQLite3Result::fetchArray declares wrong required_num_args | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-188182@lists.php.net to get a copy of this message | ||
From: stesie at brokenpipe dot de
Operating system: unrelated
PHP version: master-Git-2014-10-18 (Git)
Package: SQLite related
Bug Type: Bug
Bug description:SQLite3Result::fetchArray declares wrong required_num_args
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 bug report at https://bugs.php.net/bug.php?id=68260&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68260&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68260&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68260&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68260&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68260&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68260&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68260&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68260&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68260&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68260&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68260&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68260&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68260&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68260&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68260&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68260&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68260&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68260&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68260&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68260&r=mysqlcfg