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

From: Date: Fri, 01 Dec 2017 02:03:01 +0000
Subject: Bug #75608 [NEW]: Narrowing occurred during type inference
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212851@lists.php.net to get a copy of this message
From: anatoly dot pashin at gmail dot com Operating system: centos PHP version: 7.1.12 Package: *General Issues Bug Type: Bug Bug description:Narrowing occurred during type inference Description: ------------ Today we updated php to 7.1.12 and saw some errors during deploy. Deploy algo: 1. get new files in /www/versions/795.17 directory 2. change symbolic link so it points to it 3. call php-fpm reload. Error is thrown for some requests after 1-2 minute after reload. You can see source of YiiBase.php at https://github.com/yiisoft/yii/blob/master/framework/YiiBase.php Please tell me email which I can send SpDelivery.php privately. Test script: --------------- System_PhpException: Uncaught exception 'System_PhpException' with message 'Narrowing occurred during type inference. Please file a bug report on bugs.php.net' in /www/versions/795.17/vendor/yiisoft/yii/framework/YiiBase.php:421 in System_Global::{closure} called at /www/versions/795.17/vendor/yiisoft/yii/framework/YiiBase.php (421) in include called at /www/versions/795.17/vendor/yiisoft/yii/framework/YiiBase.php (421) in YiiBase::autoload called at ? (?) in spl_autoload_call called at /www/versions/795.17/src/DeliveryCalculator/SpDelivery.php (67) in Sp\DeliveryCalculator\SpDelivery::detectTariffs called at /www/versions/795.17/src/DeliveryCalculator/SpDelivery.php (21) in Sp\DeliveryCalculator\SpDelivery::getCalculation called at /www/versions/795.17/protected/models/Distributors.php (982) in Distributors::getMinimalDeliveryCalculation called at /www/versions/795.17/protected/components/SHtml.php (1618) in SHtml::getDeliverySummary called at /www/versions/795.17/public_html/includes/classes/Widgets/Layout.php (65) in Widgets_Layout::getHeader called at /www/versions/795.17/public_html/includes/classes/Widgets/HtmlPage.php (213) in Widgets_HtmlPage::printHeader called at /www/versions/795.17/public_html/ui/megaorder.php (103) -- Edit bug report at https://bugs.php.net/bug.php?id=75608&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75608&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75608&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75608&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75608&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75608&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75608&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75608&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75608&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75608&r=support Expected behavior: https://bugs.php.net/fix.php?id=75608&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75608&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75608&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75608&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75608&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75608&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75608&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75608&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75608&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75608&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75608&r=mysqlcfg

« previous php.bugs (#212851) next »