• Resolved Ryan Neudorf

    (@ohryan)


    The ralouphie/getallheaders package is a polyfill that defines the global getallheaders() PHP function. When php-scoper renames it to ameliavendor_getallheaders(), the global function is never defined, but the Composer autoload file guard (hash 7b11c4dc42b3b3023073cb14e519683c) is still set. This prevents other plugins that depend on the same polyfill from loading their copy, leaving no getallheaders() function available at all.

    This causes fatal errors in any plugin that calls getallheaders() and loads its Composer autoloader after Amelia.

    getallheaders should be excluded from php-scoper.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.