php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75453 Incorrect reflection on ibase_connect and ibase_pconnect
Submitted: 2017-10-29 08:13 UTC Modified: -
From: fabien dot villepinte at gmail dot com Assigned:
Status: Closed Package: InterBase related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2017-10-29 08:13 UTC] fabien dot villepinte at gmail dot com
Description:
------------
The number of required parameters returned by reflection is wrong for ibase_connect() and ibase_pconnect().

http://php.net/manual/en/function.ibase-connect.php
http://php.net/manual/en/function.ibase-pconnect.php


Test script:
---------------
<?php
$rf = new ReflectionFunction('ibase_connect');
var_dump($rf->getNumberOfRequiredParameters());

$rf = new ReflectionFunction('ibase_pconnect');
var_dump($rf->getNumberOfRequiredParameters());

Expected result:
----------------
int(0)
int(0)

Actual result:
--------------
int(1)
int(1)

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-30 06:57 UTC] krakjoe@php.net
Automatic comment on behalf of fabien.villepinte@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e6aea3dc78ca8ab1634163cdb82a1140b9b97eb4
Log: Fix bug #75453 Incorrect reflection on ibase_connect and ibase_pconnect
 [2017-10-30 06:57 UTC] krakjoe@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC