php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75001 Wrong reflection on mb_eregi_replace
Submitted: 2017-07-28 09:31 UTC Modified: -
From: fabien dot villepinte at gmail dot com Assigned:
Status: Closed Package: mbstring related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fabien dot villepinte at gmail dot com
New email:
PHP Version: OS:

 

 [2017-07-28 09:31 UTC] fabien dot villepinte at gmail dot com
Description:
------------
The number of parameters returned by reflection is wrong for mb_eregi_replace.

Test script:
---------------
<?php
$rf = new ReflectionFunction('mb_eregi_replace');
printf("%d / %d\n", $rf->getNumberOfParameters(), $rf->getNumberOfRequiredParameters());

Expected result:
----------------
4 / 3

Actual result:
--------------
3 / 3

Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-08-02 16:11 UTC] nikic@php.net
Automatic comment on behalf of fabien.villepinte@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=2cc1cbf2f424ce9d66fab00710f93409c75bf381
Log: Fix Bug #75001: Wrong reflection on mb_eregi_replace
 [2017-08-02 16:11 UTC] nikic@php.net
-Status: Open +Status: Closed
 [2017-08-02 16:18 UTC] nikic@php.net
Automatic comment on behalf of fabien.villepinte@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=2cc1cbf2f424ce9d66fab00710f93409c75bf381
Log: Fix Bug #75001: Wrong reflection on mb_eregi_replace
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC