OSDN Git Service

convert recursive_unserialize_replace() function to a class
authorscribu <mail@scribu.net>
Sat, 11 Jan 2014 10:05:53 +0000 (12:05 +0200)
committerscribu <mail@scribu.net>
Sat, 11 Jan 2014 10:23:09 +0000 (12:23 +0200)
commit95d97b4c729a10518151ee6e60869b949d838603
tree0bb1b91dd28ade3ccfa3f5ee2613a9550d4b6be0
parentb23962ae8b94a9f6b0bd45ccca97c2e26e648d51
convert recursive_unserialize_replace() function to a class

benefits:

- avoids exposing intermediate recursion variables, such as
  $recursion_level
- clearer which elements are constant and which change

see #951
php/WP_CLI/SearchReplacer.php [new file with mode: 0644]
php/commands/search-replace.php
php/utils.php
tests/test-search-replace.php