Bug #70303 [Csd]: Incorrect constructor reflection for ArrayObject

From: Date: Wed, 19 Aug 2015 14:36:44 +0000
Subject: Bug #70303 [Csd]: Incorrect constructor reflection for ArrayObject
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195343@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: Closed Type: Bug Package: Reflection related PHP Version: 5.6.12 Assigned To: cmb Block user comment: N Private report: N New Comment: The fix for this bug has been committed. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2015-08-19 14:35:52] cmb@php.net Automatic comment on behalf of cmb Revision: http://git.php.net/?p=php-src.git;a=commit;h=484b92919bd3b06f3eae845bc1a592da58bef64e Log: Fix #70303: Incorrect constructor reflection for ArrayObject ------------------------------------------------------------------------ [2015-08-19 13:58:51] cmb@php.net Confirmed: <https://3v4l.org/07FU2> and <https://3v4l.org/gAh5F>. ------------------------------------------------------------------------ [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 (#195343) next »