.. _must-not-contain-empty-strings: must not contain empty strings ------------------------------ .. meta:: :description: must not contain empty strings: The deflate_init() function accepts options. :og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png :og:type: article :og:title: must not contain empty strings :og:description: The deflate_init() function accepts options :og:url: https://php-errors.readthedocs.io/en/latest/messages/must-not-contain-empty-strings.html :og:locale: en :twitter:card: summary_large_image :twitter:site: @exakat :twitter:title: must not contain empty strings :twitter:description: must not contain empty strings: The deflate_init() function accepts options :twitter:creator: @exakat :twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png .. raw:: html Description ___________ The deflate_init() function accepts options. Among the options, there is a dictionary, with a dictionary of preset strings. Theses strings cannot be left empty. Before PHP 8.2, this bug would crash PHP. Example _______ .. code-block:: php [, ]]); } catch (ValueError $ex) { echo $ex->getMessage(), \n; } ?> Solutions _________ + Remove the 2nd argument. + Remove the 'dictionary' entry in the 2nd argument. + Put an actual value in the values of the 'dictionary' entry in the 2nd argument.