Bug #70303 [Opn->Ver]: Incorrect constructor reflection for ArrayObject

From: Date: Wed, 19 Aug 2015 13:58:52 +0000
Subject: Bug #70303 [Opn->Ver]: Incorrect constructor reflection for ArrayObject
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195341@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70303&edit=1 ID: 70303 Updated by: cmb@php.net Reported by: rasmus at mindplay dot dk Summary: Incorrect constructor reflection for ArrayObject -Status: Open +Status: Verified Type: Bug Package: Reflection related PHP Version: 5.6.12 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Confirmed: <https://3v4l.org/07FU2> and <https://3v4l.org/gAh5F>. Previous Comments: ------------------------------------------------------------------------ [2015-08-19 13:15:06] rasmus at mindplay dot dk Description: ------------ The constructor reflection for ArrayObject is wrong - the first parameter is optional, yet is reflected as non-optional. Test script: --------------- $f = new ReflectionClass('ArrayObject'); $c = $f->getConstructor(); $params = $c->getParameters(); $param = $params[0]; var_dump($param->isOptional()); Expected result: ---------------- bool(true) Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70303&edit=1

« previous php.bugs (#195341) next »