Skip to content

Commit

Permalink
Merge pull request #1613 from PHPCompatibility/php-8.2/newinidirectiv…
Browse files Browse the repository at this point in the history
…es-various-updates

PHP 8.2 | NewIniDirectives: various updates
  • Loading branch information
wimg committed Aug 10, 2023
2 parents 42298de + dc6c71f commit 142c204
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions PHPCompatibility/Sniffs/IniDirectives/NewIniDirectivesSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,16 @@ class NewIniDirectivesSniff extends AbstractFunctionCallParameterSniff
'8.1' => true,
'extension' => 'fpm',
],

'error_log_mode' => [
'8.1' => false,
'8.2' => true,
],
'oci8.prefetch_lob_size' => [
'8.1' => false,
'8.2' => true,
'extension' => 'oci8',
],
];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,3 +611,9 @@ $test = ini_get('opcache.jit_max_recursive_returns');

ini_set('opcache.jit_max_polymorphic_calls', 10);
$test = ini_get('opcache.jit_max_polymorphic_calls');

ini_set('error_log_mode', 10);
$test = ini_get('error_log_mode');

ini_set('oci8.prefetch_lob_size', 10);
$test = ini_get('oci8.prefetch_lob_size');
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ public static function dataNewIniDirectives()
['fiber.stack_size', '8.1', [539, 540], '8.0'],
['mysqli.local_infile_directory', '8.1', [542, 543], '8.0'],
['pm.max_spawn_rate', '8.1', [545, 546], '8.0'],

['error_log_mode', '8.2', [615, 616], '8.1'],
['oci8.prefetch_lob_size', '8.2', [618, 619], '8.1'],
];
}

Expand Down

0 comments on commit 142c204

Please sign in to comment.