Bug #75698 [Opn->Csd]: Using @ crashes php7.2-fpm

From: Date: Sat, 16 Dec 2017 21:04:46 +0000
Subject: Bug #75698 [Opn->Csd]: Using @ crashes php7.2-fpm
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213135@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75698&edit=1 ID: 75698 Updated by: nikic@php.net Reported by: aruggirello at tiscali dot it Summary: Using @ crashes php7.2-fpm -Status: Open +Status: Closed Type: Bug Package: Reproducible crash Operating System: Ubuntu 16.04/amd64 PHP Version: 7.2.0 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=ee45104dbafc937d944995733f93fd4f160a6922 Log: Fixed bug #75698 Previous Comments: ------------------------------------------------------------------------ [2017-12-16 20:30:56] aruggirello at tiscali dot it 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 this bug report at https://bugs.php.net/bug.php?id=75698&edit=1

« previous php.bugs (#213135) next »