drupflare/worker - v1.0.4
    Preparing search index...

    Function serializedInt

    • Reads one integer out of a PHP-serialized array, without unserializing it.

      Not a general unserializer: it finds s:9:"row_limit";i:<n>; in dblog.settings. The length prefix and the preceding ;, { or } stop a key name inside another key's string value from matching; a value holding the exact serialized bytes could still fool it, so every caller has a fallback and an env override.

      Parameters

      • blob: unknown

        the serialized array

      • key: string

        top-level key to read

      Returns number | undefined

      the integer, or undefined if it is absent or not an integer