Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with PHP 7 :( #137

Open
MrPeteH opened this issue Jul 7, 2020 · 0 comments
Open

Incompatible with PHP 7 :( #137

MrPeteH opened this issue Jul 7, 2020 · 0 comments
Labels

Comments

@MrPeteH
Copy link

MrPeteH commented Jul 7, 2020

This is apparently a common issue. For me, a hard hard fail. :(

No matter what I try, if PHP 7.* is loaded, S&R causes a crash (see below.) I'm told this is a known bug in PHP 7 :(
https://www.php.net/manual/en/function.get-object-vars.php#47075
This comment explains that there are VALID reasons for a property name to begin with \0:

  • Public members: member_name
  • Protected members: \0*\0member_name
  • Private members: \0Class_name\0member_name

Of course a "rough" workaround would be to trim() all member names... ;)

An error of type E_ERROR was caused in line 355 of the file /wp-content/plugins/search-and-replace/inc/Database/Replace.php. Error message: Uncaught Error: Cannot access property started with '\0' in /wp-content/plugins/search-and-replace/inc/Database/Replace.php:355
Stack trace:
#0 /wp-content/plugins/search-and-replace/inc/Database/Replace.php(355): Inpsyde\SearchReplace\Database\Replace->recursive_unserialize_replace('http://slty', '', Object(DUP_Database), false)
#1 /wp-content/plugins/search-and-replace/inc/Database/Replace.php(341): Inpsyde\SearchReplace\Database\Replace->recursive_unserialize_replace('http://slty', '', Object(DUP_Package), false)
#2 /wp-content/plugins/search-and-replace/inc/Database/Replace.php(222): Inpsyde\SearchReplace\Database\Replace->recursive_unserialize_replace('http://slty', '', 'O:11:"DUP_Packa...')
#3 /wp-content/plugins/search-and-replace/inc/Database/Replace.php(93): Inpsyde\SearchReplace\Database\Replace->replace_values('http://slty', '', 'wp_duplicator_p...', NULL)
@bueltge bueltge added the bug label Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants