wphooks.info - xmlrpc_chunk_parsing_size

xmlrpc_chunk_parsing_size

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/IXR/class-IXR-message.php:
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
        // 256Kb, parse in chunks to avoid the RAM usage on very large messages
        $chunk_size = 262144;

        /**
         * Filters the chunk size that can be used to parse an XML-RPC reponse message.
         *
         * @since 4.4.0
         *
         * @param int $chunk_size Chunk size to parse in bytes.
         */
        $chunk_size = apply_filters( 'xmlrpc_chunk_parsing_size', $chunk_size );

        $final = false;
        do {
            if (strlen($this->message) <= $chunk_size) {
                $final = true;
            }
            $part = substr($this->message, 0, $chunk_size);
            $this->message = substr($this->message, $chunk_size);
            if (!xml_parse($this->_parser, $part, $final)) {