Bug #74980 [NEW]: Narrowing occurred during type inference

From: Date: Mon, 24 Jul 2017 12:46:39 +0000
Subject: Bug #74980 [NEW]: Narrowing occurred during type inference
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210271@lists.php.net to get a copy of this message
From: cschneid Operating system: openSUSE 42.2 (x86_64) PHP version: 7.2.0beta1 Package: opcache Bug Type: Bug Bug description:Narrowing occurred during type inference Description: ------------ Our codebase triggered "E_WARNING: Narrowing occurred during type inference. Please file a bug report on bugs.php.net" in our class loader which is installed using spl_autoload_register(). When trying to fetch the page a second time it reports "Fatal error: Cannot declare class xy, because the name is already in use in xy.class on line 3" Doing sudo apachectl graceful to clear the opcache and reloading bring the Narrowing warning again. I don't have a short reproduction script but I still reported the bug as the warning says so :-) -- Edit bug report at https://bugs.php.net/bug.php?id=74980&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74980&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74980&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74980&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74980&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74980&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74980&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74980&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74980&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74980&r=support Expected behavior: https://bugs.php.net/fix.php?id=74980&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74980&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74980&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74980&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74980&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74980&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74980&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74980&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74980&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74980&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74980&r=mysqlcfg

« previous php.bugs (#210271) next »