Bug #75698 [NEW]: Using @ crashes php7.2-fpm
| From: | aruggirello at tiscali dot it | Date: | Sat, 16 Dec 2017 20:30:58 +0000 |
| Subject: | Bug #75698 [NEW]: Using @ crashes php7.2-fpm | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-213134@lists.php.net to get a copy of this message | ||
From: aruggirello at tiscali dot it
Operating system: Ubuntu 16.04/amd64
PHP version: 7.2.0
Package: Reproducible crash
Bug Type: Bug
Bug description:Using @ crashes php7.2-fpm
Description:
------------
Serving the test script via php7.2-fpm results in php worker process
always crashing. Removing the @ fixes the problem, but logs undesided
warnings. The actual code being used is rather complex, the test script
has just the minimum statements required to reproduce the crash.
Note that PHP <= 7.1 handles the test code correctly - it does not
crash.
Test script:
---------------
<?php
error_reporting(E_ALL|E_STRICT);
function test() {
$a = array("a","b","c","b");
$b = array();
foreach ($a as $c)
@$b[$c]++; // the @ is required to crash PHP 7.2.0
var_dump($b);
}
test();
--
Edit bug report at https://bugs.php.net/bug.php?id=75698&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75698&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75698&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75698&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75698&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75698&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75698&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75698&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75698&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75698&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75698&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75698&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75698&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75698&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75698&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75698&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75698&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75698&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75698&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75698&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75698&r=mysqlcfg