Bug #71416 [Asn->Csd]: Reflection for ReflectionMethod::invoke considers second parameter as required

From: Date: Sun, 10 Feb 2019 16:33:12 +0000
Subject: Bug #71416 [Asn->Csd]: Reflection for ReflectionMethod::invoke considers second parameter as required
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219467@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71416&edit=1

 ID:                 71416
 Updated by:         carusogabriel@php.net
 Reported by:        ondrej at mirtes dot cz
 Summary:            Reflection for ReflectionMethod::invoke considers
                     second parameter as required
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            Reflection related
 Operating System:   all
 PHP Version:        Next major version
 Assigned To:        carusogabriel
 Block user comment: N
 Private report:     N

 New Comment:

This was fixed and will be available at PHP 8.0

http://git.php.net/?p=php-src.git;a=commit;h=35db1ccdd


Previous Comments:
------------------------------------------------------------------------
[2018-09-21 05:39:39] carusogabriel@php.net

This is only taking place in our next major version, as discussed in https://github.com/php/php-src/pull/3443

------------------------------------------------------------------------
[2018-02-23 18:58:53] cmb@php.net

Related To: Bug #74421

------------------------------------------------------------------------
[2017-04-14 09:26:44] cmb@php.net

The arginfo[1] is obviously wrong. We need
ZEND_BEGIN_ARG_INFO_EX() here.

[1] <https://github.com/php/php-src/blob/php-7.1.4/ext/reflection/php_reflection.c#L6421-L6424>

------------------------------------------------------------------------
[2016-12-22 17:51:01] rquadling@php.net

Reopening.

------------------------------------------------------------------------
[2016-12-22 17:46:43] rquadling@php.net

The reflection of the ReflectionMethod::invoke is certainly NOT in keeping with the documentation.

Running:

php --rc ReflectionMethod

and then looking at the invoke() method shows ...

    Method [ <internal:Reflection> public method invoke ] {

      - Parameters [2] {
        Parameter #0 [ <required> $object ]
        Parameter #1 [ <required> $args ]
      }
    }

Not HHVM. Not any PHP script. Just PHP.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=71416


--
Edit this bug report at https://bugs.php.net/bug.php?id=71416&edit=1


Thread (10 messages)

« previous php.bugs (#219467) next »