Bug #66461 [Asn->Csd]: PHP crashes if opcache.interned_strings_buffer=0

From: Date: Mon, 13 Jan 2014 14:07:38 +0000
Subject: Bug #66461 [Asn->Csd]: PHP crashes if opcache.interned_strings_buffer=0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183768@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66461&edit=1 ID: 66461 Updated by: dmitry@php.net Reported by: Terry at ellisons dot org dot uk Summary: PHP crashes if opcache.interned_strings_buffer=0 -Status: Assigned +Status: Closed Type: Bug Package: opcache Operating System: N/A PHP Version: master-Git-2014-01-10 (Git) Assigned To: dmitry Block user comment: N Private report: N New Comment: Automatic comment on behalf of dmitry@zend.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=ce2f024e9ff4283d22b30d0c20f83c976fb7d3ed Log: Fixed bug #66461 (PHP crashes if opcache.interned_strings_buffer=0) Previous Comments: ------------------------------------------------------------------------ [2014-01-10 18:45:44] Terry at ellisons dot org dot uk Description: ------------ On non-ZTS builds, PHP segfaults if opcache.interned_strings_buffer=0. This is because bult-in initialisation assumes that the PHP interned_string pool can be succcessfully copied to SHM. As with the opcache.memory_consumption and opcache.max_accelerated_files INI parameters, opcache.interned_strings_buffer should have a validated minimum. In this case of 1 (Mb). Test script: --------------- php56 -d opcache.enable=1 -d opcache.enable_cli=1 -d opcache.interned_strings_buffer=0 -r '' Expected result: ---------------- PHP should gracefully handle any valid INI parameter Actual result: -------------- You get a Segfault. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66461&edit=1

« previous php.bugs (#183768) next »