Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

PHP 7.2 - Method create_function is deprecated in UrlRewritingHook #43

Open
JBlocks opened this issue May 24, 2018 · 1 comment
Open

Comments

@JBlocks
Copy link

JBlocks commented May 24, 2018

In the class UrlRewritingHook, line 1127, the deprecated php method create_function() is used. Should be replaced with a compatible definition for the latest php versions.

If you are running TYPO3 v8.7 LTS with PHP 7.2. an exception with the deprecation warning is thrown.

Warning: This function has been DEPRECATED as of PHP 7.2.0. Relying on this function is highly discouraged. see: http://php.net/manual/en/function.create-function.php

Classes/Hooks/UrlRewritingHook
array_walk($pathParts, create_function('&$value', '$value = rawurldecode($value);'));

@akiessling
Copy link

akiessling commented Jul 30, 2018

Seems already to be fixed in master 343b174
How about a new release?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants