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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fabien dot villepinte at gmail dot com
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 15:01:29 2024 UTC