|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-12-05 10:04 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2017-12-05 10:04 UTC] requinix@php.net
[2017-12-05 10:40 UTC] m dot sevastyanov at s7 dot ru
[2017-12-05 10:41 UTC] requinix@php.net
-Status: Feedback
+Status: Duplicate
[2017-12-05 10:41 UTC] requinix@php.net
[2017-12-06 02:33 UTC] m dot sevastyanov at s7 dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
Description: ------------ We get these strange errors when trying to require() or include() some classes. I managed to extract some script part enough to reproduce it. Test script: --------------- php.ini: opcache.enable_cli=1 narrowing.php: <?php class TestClass { public function test() { $seqs = []; foreach ([] as $row) { foreach ($seqs as $i => $seq) $seqs[$i][] = 0; $seqs[] = 0; } } } php -c php.ini narrowing.php Expected result: ---------------- no warning/error Actual result: -------------- Warning: Narrowing occurred during type inference. Please file a bug report on bugs.php.net in Unknown on line 0