Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The usage of create_function() has been deprecated as of PHP 7.2. It should be replaced with an alternative solution. This module uses it on line 1007 of the main module file.
Comment | File | Size | Author |
---|---|---|---|
#4 | node_export-support_php_72-2946171-4.patch | 1.84 KB | oadaeh |
Comments
Comment #2
mmjvb CreditAttribution: mmjvb as a volunteer commentedSee #2931464: Features PHP 7.2 Function create_function() is deprecated
Comment #3
oadaeh CreditAttribution: oadaeh at Hook 42 commentedI'm working on this.
Comment #4
oadaeh CreditAttribution: oadaeh at Hook 42 commentedAttached is a patch that addresses this issue.
I did not entirely follow the example provided in the similar patch for Features, as that requires specifying a higher PHP version than core specifies.
Also, I could not figure out how to create a situation where the code in question would get triggered, so I could not verify the results were the same. So, I will need someone who knows the module better to verify that.
Comment #5
herved CreditAttribution: herved commented+1 The patch looks good to me, thanks.
I tested it by adding
$o->reference_test = $o;
at the top ofnode_export_remove_recursion()
.It produces the same output as the original.
Comment #6
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedComment #8
gaurav.kapoor CreditAttribution: gaurav.kapoor commentedComment #10
web226 CreditAttribution: web226 commentedThank you, the patch in #4 worked for me on PHP 8.0.28