Bug #79193 [Asn->Csd]: Incorrect type inference for self::$field =& $field

From: Date: Thu, 30 Jan 2020 13:56:55 +0000
Subject: Bug #79193 [Asn->Csd]: Incorrect type inference for self::$field =& $field
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225253@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79193&edit=1 ID: 79193 Updated by: nikic@php.net Reported by: leho at conversionready dot com Summary: Incorrect type inference for self::$field =& $field -Status: Assigned +Status: Closed Type: Bug Package: opcache Operating System: Linux PHP Version: 7.4.2 Assigned To: nikic Block user comment: N Private report: N New Comment: Automatic comment on behalf of nikita.ppv@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=f70b552326e5242655d6ac2c55ca220e89afef34 Log: Fixed bug #79193 Previous Comments: ------------------------------------------------------------------------ [2020-01-30 13:49:56] nikic@php.net Looks like a type inference bug. ------------------------------------------------------------------------ [2020-01-29 22:04:19] requinix@php.net Yup. ------------------------------------------------------------------------ [2020-01-29 21:44:43] leho at conversionready dot com Good call! opcache.enable = 0 also makes this problem disappear. Time to reassign Package -> Opcache? ------------------------------------------------------------------------ [2020-01-29 21:33:59] requinix@php.net Any difference if you disable opcache? ------------------------------------------------------------------------ [2020-01-29 20:45:14] leho at conversionready dot com Interestingly, isset( self::$field['name'] ); // true ------------------------------------------------------------------------ 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=79193 -- Edit this bug report at https://bugs.php.net/bug.php?id=79193&edit=1

« previous php.bugs (#225253) next »