-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix high opcache.interned_strings_buffer causing shm corruption
- Loading branch information
Showing
7 changed files
with
104 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--TEST-- | ||
Bug GH-9259 001 (Setting opcache.interned_strings_buffer to a very high value leads to corruption of shm) | ||
--EXTENSIONS-- | ||
opcache | ||
--INI-- | ||
opcache.interned_strings_buffer=131072 | ||
opcache.log_verbosity_level=2 | ||
opcache.enable_cli=1 | ||
--FILE-- | ||
<?php | ||
|
||
echo 'OK'; | ||
|
||
?> | ||
--EXPECTF-- | ||
%sWarning opcache.interned_strings_buffer must be less than or equal to 4095, 131072 given%s | ||
|
||
%sWarning Not enough free shared space to allocate %d bytes (%d bytes free) | ||
%sFatal Error Insufficient shared memory for interned strings buffer! (tried to allocate %d bytes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--TEST-- | ||
Bug GH-9259 002 (Setting opcache.interned_strings_buffer to a very high value leads to corruption of shm) | ||
--EXTENSIONS-- | ||
opcache | ||
--INI-- | ||
opcache.interned_strings_buffer=-1 | ||
opcache.log_verbosity_level=2 | ||
opcache.enable_cli=1 | ||
--FILE-- | ||
<?php | ||
|
||
echo 'OK'; | ||
|
||
?> | ||
--EXPECTF-- | ||
%sWarning opcache.interned_strings_buffer must be higher than or equal to 0, -1 given%s | ||
|
||
OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--TEST-- | ||
Bug GH-9259 003 (Setting opcache.interned_strings_buffer to a very high value leads to corruption of shm) | ||
--EXTENSIONS-- | ||
opcache | ||
--INI-- | ||
opcache.interned_strings_buffer=0xFFFFFFFF | ||
opcache.log_verbosity_level=2 | ||
opcache.enable_cli=1 | ||
--FILE-- | ||
<?php | ||
|
||
echo 'OK'; | ||
|
||
?> | ||
--EXPECTF-- | ||
%sWarning opcache.interned_strings_buffer must be less than or equal to 4095, 4294967295 given%s | ||
|
||
%sWarning Not enough free shared space to allocate %d bytes (%d bytes free) | ||
%sFatal Error Insufficient shared memory for interned strings buffer! (tried to allocate %d bytes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--TEST-- | ||
Bug GH-9259 004 (Setting opcache.interned_strings_buffer to a very high value leads to corruption of shm) | ||
--EXTENSIONS-- | ||
opcache | ||
--INI-- | ||
opcache.interned_strings_buffer=500 | ||
opcache.enable_cli=1 | ||
--FILE-- | ||
<?php | ||
|
||
echo 'OK'; | ||
|
||
?> | ||
--EXPECTF-- | ||
%sFatal Error Insufficient shared memory for interned strings buffer! (tried to allocate %d bytes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters