Bug #74413 [Opn->Csd]: Wrong reflection on SQLite3::enableExceptions
| From: | krakjoe@php.net | Date: | Tue, 11 Apr 2017 11:17:12 +0000 |
| Subject: | Bug #74413 [Opn->Csd]: Wrong reflection on SQLite3::enableExceptions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-208477@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74413&edit=1
ID: 74413
Updated by: krakjoe@php.net
Reported by: fabien dot villepinte at gmail dot com
Summary: Wrong reflection on SQLite3::enableExceptions
-Status: Open
+Status: Closed
Type: Bug
Package: SQLite related
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of krakjoe
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b74b325aea79b281aff5369d461f5e2d748b0cfc
Log: fixed bug #74413 wrong reflection on SQLite3::enableExceptions
Previous Comments:
------------------------------------------------------------------------
[2017-04-11 10:50:54] fabien dot villepinte at gmail dot com
Description:
------------
The parameter of SQLite3::enableExceptions is optional (see: http://php.net/manual/fr/sqlite3.enableexceptions.php
), but it is described as required by reflection.
Test script:
---------------
<?php
$rm = new ReflectionMethod(SQLite3::class, "enableExceptions");
printf("%d\n%d\n", $rm->getNumberOfParameters(),
$rm->getNumberOfRequiredParameters());
foreach ($rm->getParameters() as $param) {
printf("Parameter #%d %s OPTIONAL\n", $param->getPosition(),
$param->isOptional() ? "IS" : "IS NOT");
}
Expected result:
----------------
1
0
Parameter #0 IS OPTIONAL
Actual result:
--------------
1
1
Parameter #0 IS NOT OPTIONAL
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74413&edit=1